2018-09-03 05:40:00 +02:00
|
|
|
#ifndef LIGHTNING_CONNECTD_CONNECTD_H
|
|
|
|
#define LIGHTNING_CONNECTD_CONNECTD_H
|
2018-05-10 01:18:23 +02:00
|
|
|
#include "config.h"
|
2018-09-27 23:04:19 +02:00
|
|
|
#include <bitcoin/pubkey.h>
|
|
|
|
#include <common/crypto_state.h>
|
2018-05-10 01:18:23 +02:00
|
|
|
|
|
|
|
struct io_conn;
|
2018-09-27 23:04:19 +02:00
|
|
|
struct peer;
|
2018-05-10 01:18:23 +02:00
|
|
|
struct reaching;
|
2018-09-27 23:04:19 +02:00
|
|
|
struct daemon;
|
2018-05-10 01:18:23 +02:00
|
|
|
|
2018-09-27 23:04:19 +02:00
|
|
|
/* Called by io_tor_connect once it has a connection out. */
|
2018-05-10 01:18:23 +02:00
|
|
|
struct io_plan *connection_out(struct io_conn *conn, struct reaching *reach);
|
|
|
|
|
2018-09-27 23:04:19 +02:00
|
|
|
/* 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);
|
|
|
|
|
2018-09-03 05:40:00 +02:00
|
|
|
#endif /* LIGHTNING_CONNECTD_CONNECTD_H */
|