summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-12-07 15:59:34 +1100
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-12-07 16:10:37 +1100
commitb7525c39bff1f43b1437960d7030693942e33274 (patch)
tree7ddac8982ec1655602e7351db49cea0b4d1025db /src/or/connection.c
parent3461bcb10e1910d1bd46a887abe5bf3bd139f0d2 (diff)
downloadtor-b7525c39bff1f43b1437960d7030693942e33274.tar.gz
tor-b7525c39bff1f43b1437960d7030693942e33274.zip
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.
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index b31b99c2e7..5ac0cb6cc5 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -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.