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

Function simple_write

devtools/gossipwith.c:103–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103static struct io_plan *simple_write(struct io_conn *conn,
104 const void *data, size_t len,
105 struct io_plan *(*next)(struct io_conn *, void *),
106 void *arg)
107{
108 if (!write_all(conn->fd, data, len))
109 err(1, "Writing data");
110 return next(conn, arg);
111}
112
113static struct io_plan *simple_read(struct io_conn *conn,
114 void *data, size_t len,

Callers

nothing calls this directly

Calls 3

errFunction · 0.85
nextFunction · 0.85
write_allFunction · 0.50

Tested by

no test coverage detected