MCPcopy Create free account
hub / github.com/ElementsProject/lightning / msg_dequeue

Function msg_dequeue

common/msg_queue.c:85–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85const u8 *msg_dequeue(struct msg_queue *q)
86{
87 size_t n = msg_queue_length(q);
88
89 if (!n)
90 return NULL;
91
92 return membuf_consume(&q->mb, 1)[0];
93}
94
95int msg_extract_fd(const struct msg_queue *q, const u8 *msg)
96{

Callers 6

next_msg_for_peerFunction · 0.85
write_to_subdFunction · 0.85
mainFunction · 0.85
msg_send_nextFunction · 0.85
daemon_conn_write_nextFunction · 0.85
daemon_conn_sync_flushFunction · 0.85

Calls 1

msg_queue_lengthFunction · 0.85

Tested by

no test coverage detected