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

Function simple_write

devtools/gossipwith.c:115–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115static struct io_plan *simple_write(struct io_conn *conn,
116 const void *data, size_t len,
117 struct io_plan *(*next)(struct io_conn *, void *),
118 void *arg)
119{
120 if (!write_all(conn->fd, data, len))
121 err(1, "Writing data");
122 return next(conn, arg);
123}
124
125static struct io_plan *simple_read(struct io_conn *conn,
126 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