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

Function responder_handshake_

connectd/handshake.c:963–985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

961}
962
963struct io_plan *responder_handshake_(struct io_conn *conn,
964 const struct pubkey *my_id,
965 const struct wireaddr_internal *addr,
966 struct oneshot *timeout,
967 struct io_plan *(*cb)(struct io_conn *,
968 const struct pubkey *,
969 const struct wireaddr_internal *,
970 struct crypto_state *,
971 struct oneshot *,
972 void *cbarg),
973 void *cbarg)
974{
975 struct handshake *h = new_handshake(conn, my_id);
976
977 h->side = RESPONDER;
978 h->my_id = *my_id;
979 h->addr = *addr;
980 h->cbarg = cbarg;
981 h->cb = cb;
982 h->timeout = timeout;
983
984 return act_one_responder(conn, h);
985}
986
987struct io_plan *initiator_handshake_(struct io_conn *conn,
988 const struct pubkey *my_id,

Callers

nothing calls this directly

Calls 2

new_handshakeFunction · 0.85
act_one_responderFunction · 0.85

Tested by

no test coverage detected