2018-05-10 01:18:23 +02:00
|
|
|
#ifndef LIGHTNING_GOSSIPD_TOR_H
|
|
|
|
#define LIGHTNING_GOSSIPD_TOR_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2018-05-10 01:18:24 +02:00
|
|
|
struct addrinfo;
|
2018-05-10 01:18:23 +02:00
|
|
|
struct wireaddr;
|
|
|
|
struct io_conn;
|
|
|
|
struct reaching;
|
|
|
|
|
2018-05-10 01:18:24 +02:00
|
|
|
bool all_tor_addresses(const struct wireaddr *wireaddr);
|
2018-05-10 01:18:23 +02:00
|
|
|
|
|
|
|
struct io_plan *io_tor_connect(struct io_conn *conn,
|
2018-05-10 01:18:24 +02:00
|
|
|
const struct addrinfo *tor_proxyaddr,
|
2018-05-10 01:18:23 +02:00
|
|
|
const struct wireaddr *addr,
|
|
|
|
struct reaching *reach);
|
|
|
|
|
|
|
|
#endif /* LIGHTNING_GOSSIPD_TOR_H */
|