diff options
author | Andrea Shepard <andrea@torproject.org> | 2015-01-24 17:31:12 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-01-28 14:30:23 -0500 |
commit | ca5ba2956bcd4b5ee1e526ccf5914f52fe6e6d51 (patch) | |
tree | a064fa582c6081c7a9e25a944b5cb85b7b3d3373 /src/or/connection.h | |
parent | 6564291601540bf61c1ca3294b6c22f0c5021a20 (diff) | |
download | tor-ca5ba2956bcd4b5ee1e526ccf5914f52fe6e6d51.tar.gz tor-ca5ba2956bcd4b5ee1e526ccf5914f52fe6e6d51.zip |
Support connection_exit_connect() to AF_UNIX sockets
Diffstat (limited to 'src/or/connection.h')
-rw-r--r-- | src/or/connection.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/connection.h b/src/or/connection.h index ce6ed284c1..50bea51e5b 100644 --- a/src/or/connection.h +++ b/src/or/connection.h @@ -89,6 +89,13 @@ int connection_connect(connection_t *conn, const char *address, const tor_addr_t *addr, uint16_t port, int *socket_error); +#ifdef HAVE_SYS_UN_H + +int connection_connect_unix(connection_t *conn, const char *socket_path, + int *socket_error); + +#endif /* defined(HAVE_SYS_UN_H) */ + /** Maximum size of information that we can fit into SOCKS5 username or password fields. */ #define MAX_SOCKS5_AUTH_FIELD_SIZE 255 |