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

Function client_read_next

hsmd/hsmd.c:168–172  ·  view source on GitHub ↗

~ This plan simply says: read the next packet into 'c->msg_in' (parent 'c'), * and then call handle_client with argument 'c' */

Source from the content-addressed store, hash-verified

166/*~ This plan simply says: read the next packet into 'c->msg_in' (parent 'c'),
167 * and then call handle_client with argument 'c' */
168static struct io_plan *client_read_next(struct io_conn *conn, struct client *c)
169{
170 c->msg_in = tal_free(c->msg_in);
171 return io_read_wire(conn, c, &c->msg_in, handle_client, c);
172}
173
174/*~ This is the destructor on our client: we may call it manually, but
175 * generally it's called because the io_conn associated with the client is

Callers 1

preinit_hsmFunction · 0.85

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected