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

Function peer_read

common/peer_io.c:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26u8 *peer_read(const tal_t *ctx, struct per_peer_state *pps)
27{
28 u8 *msg = wire_sync_read(ctx, pps->peer_fd);
29 if (!msg)
30 peer_failed_connection_lost();
31
32 status_peer_io(LOG_IO_IN, NULL, msg);
33
34 return msg;
35}

Callers 8

closing_read_peer_msgFunction · 0.85
peer_reconnectFunction · 0.85
mainFunction · 0.85
opening_negotiate_msgFunction · 0.85
handle_peer_inFunction · 0.85
opening_negotiate_msgFunction · 0.85
do_reconnect_danceFunction · 0.85
handle_peer_inFunction · 0.85

Calls 3

status_peer_ioFunction · 0.70
wire_sync_readFunction · 0.50

Tested by

no test coverage detected