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

Function subd_conn_init

connectd/multiplex.c:1722–1733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1720}
1721
1722static struct io_plan *subd_conn_init(struct io_conn *subd_conn,
1723 struct subd *subd)
1724{
1725 subd->conn = subd_conn;
1726
1727 /* subd is a child of the conn: free when it closes! */
1728 tal_steal(subd->conn, subd);
1729 tal_add_destructor(subd, destroy_connected_subd);
1730 return io_duplex(subd_conn,
1731 read_from_subd(subd_conn, subd),
1732 write_to_subd(subd_conn, subd));
1733}
1734
1735/* Peer disconnected (we remove this if *we* close). */
1736static void destroy_peer_conn(struct io_conn *peer_conn, struct peer *peer)

Callers

nothing calls this directly

Calls 3

io_duplexFunction · 0.85
read_from_subdFunction · 0.85
write_to_subdFunction · 0.85

Tested by

no test coverage detected