aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@gmail.com>2011-06-14 04:28:36 +0200
committerGeorge Kadianakis <desnacked@gmail.com>2011-06-14 04:28:36 +0200
commit5b050a9b08fa81421d7e923ef04d06b569f5f742 (patch)
tree7bdd37e73c28e398187a5cbdd532f7047d42e2db /src/or/connection.h
parentabe03f494321c985f5909558b5b476269982a894 (diff)
downloadtor-5b050a9b08fa81421d7e923ef04d06b569f5f742.tar.gz
tor-5b050a9b08fa81421d7e923ef04d06b569f5f742.zip
This commit is an attempt to beautify the previous commit.
It creates some helper functions that return the proxy type, proxy addr/port, etc.
Diffstat (limited to 'src/or/connection.h')
-rw-r--r--src/or/connection.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/connection.h b/src/or/connection.h
index ba6a258af3..544e9392d0 100644
--- a/src/or/connection.h
+++ b/src/or/connection.h
@@ -58,6 +58,9 @@ int connection_connect(connection_t *conn, const char *address,
int connection_proxy_connect(connection_t *conn, int type);
int connection_read_proxy_handshake(connection_t *conn);
void log_failed_proxy_connection(connection_t *conn);
+int get_proxy_addrport(int proxy_type, tor_addr_t *addr, uint16_t *port, connection_t *conn);
+int get_proxy_type(void);
+
int retry_all_listeners(smartlist_t *replaced_conns,
smartlist_t *new_conns);