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

Function io_tor_connect_do_req

connectd/tor.c:193–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193static struct io_plan *io_tor_connect_do_req(struct io_conn *conn,
194 struct connecting_socks *connect)
195{
196 /* make the init request */
197 connect->buffer[0] = SOCKS_V5;
198 connect->buffer[1] = 1;
199 connect->buffer[2] = SOCKS_NOAUTH;
200
201 status_io(LOG_IO_OUT, NULL, "proxy", connect->buffer, SOCK_REQ_METH_LEN);
202 return io_write(conn, connect->buffer, SOCK_REQ_METH_LEN,
203 &io_tor_connect_after_req_to_connect, connect);
204}
205
206/* called when we want to connect to TOR SOCKS5 */
207struct io_plan *io_tor_connect(struct io_conn *conn,

Callers

nothing calls this directly

Calls 1

status_ioFunction · 0.85

Tested by

no test coverage detected