mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
4de2b362f5
It reads better, and it's accurate: it only exists while we're trying to connect to a peer. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
22 lines
661 B
C
22 lines
661 B
C
#ifndef LIGHTNING_CONNECTD_CONNECTD_H
|
|
#define LIGHTNING_CONNECTD_CONNECTD_H
|
|
#include "config.h"
|
|
#include <bitcoin/pubkey.h>
|
|
#include <common/crypto_state.h>
|
|
|
|
struct io_conn;
|
|
struct connecting;
|
|
struct daemon;
|
|
|
|
/* Called by io_tor_connect once it has a connection out. */
|
|
struct io_plan *connection_out(struct io_conn *conn, struct connecting *connect);
|
|
|
|
/* Called by peer_exchange_initmsg if successful. */
|
|
struct io_plan *peer_connected(struct io_conn *conn,
|
|
struct daemon *daemon,
|
|
const struct pubkey *id TAKES,
|
|
const u8 *peer_connected_msg TAKES,
|
|
const u8 *lfeatures TAKES);
|
|
|
|
#endif /* LIGHTNING_CONNECTD_CONNECTD_H */
|