2018-09-28 06:34:19 +09:30
|
|
|
#ifndef LIGHTNING_CONNECTD_PEER_EXCHANGE_INITMSG_H
|
|
|
|
#define LIGHTNING_CONNECTD_PEER_EXCHANGE_INITMSG_H
|
|
|
|
#include "config.h"
|
2020-01-30 22:26:57 +01:00
|
|
|
#include <ccan/short_types/short_types.h>
|
2018-09-28 06:34:19 +09:30
|
|
|
|
|
|
|
struct crypto_state;
|
|
|
|
struct daemon;
|
|
|
|
struct io_conn;
|
2019-04-08 19:28:32 +09:30
|
|
|
struct node_id;
|
2018-09-28 06:34:19 +09:30
|
|
|
struct wireaddr_internal;
|
2022-01-08 23:47:29 +10:30
|
|
|
struct oneshot;
|
2018-09-28 06:34:19 +09:30
|
|
|
|
|
|
|
/* If successful, calls peer_connected() */
|
|
|
|
struct io_plan *peer_exchange_initmsg(struct io_conn *conn,
|
|
|
|
struct daemon *daemon,
|
2020-04-03 10:33:59 +10:30
|
|
|
const struct feature_set *our_features,
|
2018-09-28 06:34:19 +09:30
|
|
|
const struct crypto_state *cs,
|
2019-04-08 19:28:32 +09:30
|
|
|
const struct node_id *id,
|
2021-03-24 15:07:50 +10:30
|
|
|
const struct wireaddr_internal *addr,
|
2022-01-08 23:47:29 +10:30
|
|
|
struct oneshot *timeout,
|
2021-03-24 15:07:50 +10:30
|
|
|
bool incoming);
|
2018-09-28 06:34:19 +09:30
|
|
|
|
|
|
|
#endif /* LIGHTNING_CONNECTD_PEER_EXCHANGE_INITMSG_H */
|