aboutsummaryrefslogtreecommitdiff
path: root/src/lib/net/socket.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-20 12:46:47 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-20 12:46:47 -0400
commit1c1e84281db6a5a8cd2a66c63481e4df316c44d5 (patch)
treeca83484d16d9420122a5803e6a0d7709dcf2776b /src/lib/net/socket.h
parentbd6007d8986d851bb9e76fc2d9a72143a03f04ac (diff)
downloadtor-1c1e84281db6a5a8cd2a66c63481e4df316c44d5.tar.gz
tor-1c1e84281db6a5a8cd2a66c63481e4df316c44d5.zip
Add a tor_release_socket_ownership() function.
Diffstat (limited to 'src/lib/net/socket.h')
-rw-r--r--src/lib/net/socket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/net/socket.h b/src/lib/net/socket.h
index 5b7d6dbbc6..2b87441fc6 100644
--- a/src/lib/net/socket.h
+++ b/src/lib/net/socket.h
@@ -23,6 +23,7 @@ struct sockaddr;
int tor_close_socket_simple(tor_socket_t s);
MOCK_DECL(int, tor_close_socket, (tor_socket_t s));
void tor_take_socket_ownership(tor_socket_t s);
+void tor_release_socket_ownership(tor_socket_t s);
tor_socket_t tor_open_socket_with_extensions(
int domain, int type, int protocol,
int cloexec, int nonblock);