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

Function simple_read

devtools/gossipwith.c:125–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125static struct io_plan *simple_read(struct io_conn *conn,
126 void *data, size_t len,
127 struct io_plan *(*next)(struct io_conn *, void *),
128 void *next_arg)
129{
130 if (!read_all(conn->fd, data, len))
131 err(1, "Reading data");
132 return next(conn, next_arg);
133}
134
135static void sync_crypto_write(int peer_fd, struct crypto_state *cs, const void *msg TAKES)
136{

Callers

nothing calls this directly

Calls 3

read_allFunction · 0.85
errFunction · 0.85
nextFunction · 0.85

Tested by

no test coverage detected