2018-02-21 07:29:09 +10:30
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_CONNECT_CONTROL_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_CONNECT_CONTROL_H
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
struct lightningd;
|
|
|
|
struct pubkey;
|
2018-08-09 09:55:29 +09:30
|
|
|
struct wireaddr_internal;
|
2018-02-21 07:29:09 +10:30
|
|
|
|
2018-07-24 15:48:58 +09:30
|
|
|
/* Returns fd for gossipd to talk to connectd */
|
|
|
|
int connectd_init(struct lightningd *ld);
|
2018-07-24 15:48:58 +09:30
|
|
|
void connectd_activate(struct lightningd *ld);
|
|
|
|
|
2018-08-09 09:55:29 +09:30
|
|
|
void delay_then_reconnect(struct channel *channel, u32 seconds_delay,
|
|
|
|
const struct wireaddr_internal *addrhint TAKES);
|
2019-04-08 19:28:32 +09:30
|
|
|
void connect_succeeded(struct lightningd *ld, const struct node_id *id);
|
2018-04-26 14:20:58 +09:30
|
|
|
void gossip_connect_result(struct lightningd *ld, const u8 *msg);
|
2018-02-21 07:29:09 +10:30
|
|
|
|
2018-02-21 07:29:09 +10:30
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_CONNECT_CONTROL_H */
|