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

Function connection_in

connectd/connectd.c:458–468  ·  view source on GitHub ↗

~ When we get a direct connection in we set up its network address * then call handshake.c to set up the crypto state. */

Source from the content-addressed store, hash-verified

456/*~ When we get a direct connection in we set up its network address
457 * then call handshake.c to set up the crypto state. */
458static struct io_plan *connection_in(struct io_conn *conn,
459 struct daemon *daemon)
460{
461 struct conn_in conn_in_arg;
462
463 if (!get_remote_address(conn, &conn_in_arg.addr))
464 return io_close(conn);
465
466 conn_in_arg.daemon = daemon;
467 return conn_in(conn, &conn_in_arg);
468}
469
470/*~ <hello>I speak web socket</hello>.
471 *

Callers

nothing calls this directly

Calls 3

get_remote_addressFunction · 0.85
io_closeFunction · 0.85
conn_inFunction · 0.70

Tested by

no test coverage detected