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

Function client_read_next

hsmd/hsmd.c:183–187  ·  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

181/*~ This plan simply says: read the next packet into 'c->msg_in' (parent 'c'),
182 * and then call handle_client with argument 'c' */
183static struct io_plan *client_read_next(struct io_conn *conn, struct client *c)
184{
185 c->msg_in = tal_free(c->msg_in);
186 return io_read_wire(conn, c, &c->msg_in, handle_client, c);
187}
188
189/*~ This is the destructor on our client: we may call it manually, but
190 * 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