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

Function peer_write

common/peer_io.c:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include <wire/wire_sync.h>
16
17void peer_write(struct per_peer_state *pps, const void *msg TAKES)
18{
19 status_peer_io(LOG_IO_OUT, NULL, msg);
20
21 /* We ignore write errors; we might still have something to read,
22 * so we'd rather fail there. */
23 wire_sync_write(pps->peer_fd, msg);
24}
25
26u8 *peer_read(const tal_t *ctx, struct per_peer_state *pps)
27{

Callers 15

send_offerFunction · 0.85
maybe_send_stfuFunction · 0.85
maybe_send_shutdownFunction · 0.85
send_commitFunction · 0.85
send_revocationFunction · 0.85
resend_revokeFunction · 0.85
send_fail_or_fulfillFunction · 0.85
resend_commitmentFunction · 0.85
peer_reconnectFunction · 0.85
handle_funding_depthFunction · 0.85
handle_offer_htlcFunction · 0.85

Calls 2

status_peer_ioFunction · 0.70
wire_sync_writeFunction · 0.50

Tested by

no test coverage detected