2018-02-20 21:59:09 +01:00
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_CONNECT_CONTROL_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_CONNECT_CONTROL_H
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
struct lightningd;
|
|
|
|
struct pubkey;
|
2018-08-09 02:25:29 +02:00
|
|
|
struct wireaddr_internal;
|
2018-02-20 21:59:09 +01:00
|
|
|
|
2018-07-24 08:18:58 +02:00
|
|
|
/* Returns fd for gossipd to talk to connectd */
|
|
|
|
int connectd_init(struct lightningd *ld);
|
2018-07-24 08:18:58 +02:00
|
|
|
void connectd_activate(struct lightningd *ld);
|
|
|
|
|
2018-08-09 02:25:29 +02:00
|
|
|
void delay_then_reconnect(struct channel *channel, u32 seconds_delay,
|
|
|
|
const struct wireaddr_internal *addrhint TAKES);
|
2021-03-16 04:44:36 +01:00
|
|
|
void connect_succeeded(struct lightningd *ld, const struct peer *peer,
|
2021-03-25 04:53:31 +01:00
|
|
|
bool incoming,
|
2021-03-16 04:44:36 +01:00
|
|
|
const struct wireaddr_internal *addr);
|
2018-04-26 06:50:58 +02:00
|
|
|
void gossip_connect_result(struct lightningd *ld, const u8 *msg);
|
2018-02-20 21:59:09 +01:00
|
|
|
|
2018-02-20 21:59:09 +01:00
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_CONNECT_CONTROL_H */
|