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

Function peer_write

common/peer_io.c:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include <wire/wire_sync.h>
8
9void peer_write(struct per_peer_state *pps, const void *msg TAKES)
10{
11 status_peer_io(LOG_IO_OUT, NULL, msg);
12
13 /* We ignore write errors; we might still have something to read,
14 * so we'd rather fail there. */
15 wire_sync_write(pps->peer_fd, msg);
16}
17
18u8 *peer_read(const tal_t *ctx, struct per_peer_state *pps)
19{

Callers 15

send_offerFunction · 0.85
maybe_send_stfuFunction · 0.85
maybe_send_shutdownFunction · 0.85
send_message_batchFunction · 0.85
send_commitFunction · 0.85
send_revocationFunction · 0.85
check_tx_abortFunction · 0.85
splice_abortFunction · 0.85
splice_accepterFunction · 0.85

Calls 2

status_peer_ioFunction · 0.70
wire_sync_writeFunction · 0.50

Tested by

no test coverage detected