mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Comment-only changes to connection_connect
port is in host order (addr is tor_addr_t, endianness is abstracted). addr and port can be different to conn->addr and conn->port if connecting via a proxy.
This commit is contained in:
parent
3461bcb10e
commit
b7525c39bf
@ -1708,10 +1708,13 @@ connection_connect_sockaddr(connection_t *conn,
|
||||
}
|
||||
|
||||
/** Take conn, make a nonblocking socket; try to connect to
|
||||
* addr:port (they arrive in *host order*). If fail, return -1 and if
|
||||
* addr:port (port arrives in *host order*). If fail, return -1 and if
|
||||
* applicable put your best guess about errno into *<b>socket_error</b>.
|
||||
* Else assign s to conn-\>s: if connected return 1, if EAGAIN return 0.
|
||||
*
|
||||
* addr:port can be different to conn->addr:conn->port if connecting through
|
||||
* a proxy.
|
||||
*
|
||||
* address is used to make the logs useful.
|
||||
*
|
||||
* On success, add conn to the list of polled connections.
|
||||
|
Loading…
Reference in New Issue
Block a user