MCPcopy Create free account
hub / github.com/ElementsProject/lightning / io_tor_connect

Function io_tor_connect

connectd/tor.c:229–243  ·  view source on GitHub ↗

called when we want to connect to TOR SOCKS5 */

Source from the content-addressed store, hash-verified

227
228/* called when we want to connect to TOR SOCKS5 */
229struct io_plan *io_tor_connect(struct io_conn *conn,
230 const struct addrinfo *tor_proxyaddr,
231 const char *host, u16 port,
232 struct connecting *connect)
233{
234 struct connecting_socks *connect_tor = tal(connect,
235 struct connecting_socks);
236
237 connect_tor->port = htons(port);
238 connect_tor->host = tal_strdup(connect_tor, host);
239 connect_tor->connect = connect;
240
241 return io_connect(conn, tor_proxyaddr,
242 &io_tor_connect_do_req, connect_tor);
243}

Callers 1

conn_proxy_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected