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

Function io_tor_connect_do_req

connectd/tor.c:215–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215static struct io_plan *io_tor_connect_do_req(struct io_conn *conn,
216 struct connecting_socks *connect)
217{
218 /* make the init request */
219 connect->buffer[0] = SOCKS_V5;
220 connect->buffer[1] = 1;
221 connect->buffer[2] = SOCKS_NOAUTH;
222
223 status_io(LOG_IO_OUT, NULL, "proxy", connect->buffer, SOCK_REQ_METH_LEN);
224 return io_write(conn, connect->buffer, SOCK_REQ_METH_LEN,
225 &io_tor_connect_after_req_to_connect, connect);
226}
227
228/* called when we want to connect to TOR SOCKS5 */
229struct 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