2018-09-27 23:04:19 +02:00
|
|
|
#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-27 23:04:19 +02:00
|
|
|
|
|
|
|
struct crypto_state;
|
|
|
|
struct daemon;
|
|
|
|
struct io_conn;
|
2019-04-08 11:58:32 +02:00
|
|
|
struct node_id;
|
2018-09-27 23:04:19 +02:00
|
|
|
struct wireaddr_internal;
|
2022-01-08 14:17:29 +01:00
|
|
|
struct oneshot;
|
2018-09-27 23:04:19 +02:00
|
|
|
|
|
|
|
/* If successful, calls peer_connected() */
|
|
|
|
struct io_plan *peer_exchange_initmsg(struct io_conn *conn,
|
|
|
|
struct daemon *daemon,
|
2020-04-03 02:03:59 +02:00
|
|
|
const struct feature_set *our_features,
|
2018-09-27 23:04:19 +02:00
|
|
|
const struct crypto_state *cs,
|
2019-04-08 11:58:32 +02:00
|
|
|
const struct node_id *id,
|
2021-03-24 05:37:50 +01:00
|
|
|
const struct wireaddr_internal *addr,
|
2022-01-08 14:17:29 +01:00
|
|
|
struct oneshot *timeout,
|
2021-03-24 05:37:50 +01:00
|
|
|
bool incoming);
|
2018-09-27 23:04:19 +02:00
|
|
|
|
|
|
|
#endif /* LIGHTNING_CONNECTD_PEER_EXCHANGE_INITMSG_H */
|