mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
b0d6996ed6
This matters: if we connected, the address is probably usable for future connections. But if they connected, the port is probably not (but the IP address may be). Changelog-Added: JSON-RPC: `connect` returns "direction" ("in": they iniatated, or "out": we initiated) Changelog-Added: plugins: `peer_connected` hook and `connect` notifications have "direction" field. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
21 lines
701 B
C
21 lines
701 B
C
#ifndef LIGHTNING_LIGHTNINGD_CONNECT_CONTROL_H
|
|
#define LIGHTNING_LIGHTNINGD_CONNECT_CONTROL_H
|
|
#include "config.h"
|
|
|
|
struct lightningd;
|
|
struct pubkey;
|
|
struct wireaddr_internal;
|
|
|
|
/* Returns fd for gossipd to talk to connectd */
|
|
int connectd_init(struct lightningd *ld);
|
|
void connectd_activate(struct lightningd *ld);
|
|
|
|
void delay_then_reconnect(struct channel *channel, u32 seconds_delay,
|
|
const struct wireaddr_internal *addrhint TAKES);
|
|
void connect_succeeded(struct lightningd *ld, const struct peer *peer,
|
|
bool incoming,
|
|
const struct wireaddr_internal *addr);
|
|
void gossip_connect_result(struct lightningd *ld, const u8 *msg);
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_CONNECT_CONTROL_H */
|