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

Function msg_enqueue_fd

common/msg_queue.c:40–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void msg_enqueue_fd(struct msg_queue *q, int fd)
41{
42 u8 *fdmsg = tal_arr(q, u8, 0);
43 assert(q->fd_passing);
44 towire_u16(&fdmsg, MSG_PASS_FD);
45 towire_u32(&fdmsg, fd);
46 do_enqueue(q, take(fdmsg));
47}
48
49const u8 *msg_dequeue(struct msg_queue *q)
50{

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