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

Function msg_enqueue_fd

common/msg_queue.c:76–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void msg_enqueue_fd(struct msg_queue *q, int fd)
77{
78 u8 *fdmsg = tal_arr(q, u8, 0);
79 assert(q->fd_passing);
80 towire_u16(&fdmsg, MSG_PASS_FD);
81 towire_u32(&fdmsg, fd);
82 do_enqueue(q, take(fdmsg));
83}
84
85const u8 *msg_dequeue(struct msg_queue *q)
86{

Callers 2

subd_send_fdFunction · 0.85
daemon_conn_send_fdFunction · 0.85

Calls 3

do_enqueueFunction · 0.85
towire_u16Function · 0.50
towire_u32Function · 0.50

Tested by

no test coverage detected