diff options
author | teor <teor@torproject.org> | 2019-01-08 14:45:17 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-01-08 14:45:17 +1000 |
commit | 671c34d9b496ecdde67527cc10b657ff6bd35c9e (patch) | |
tree | 2d3d4347f71f091a31cdd9cef353d80983d67845 /src/lib/net/socket.c | |
parent | ae578981b6c43fbf9e13d0e74806ca6153edf7a9 (diff) | |
download | tor-671c34d9b496ecdde67527cc10b657ff6bd35c9e.tar.gz tor-671c34d9b496ecdde67527cc10b657ff6bd35c9e.zip |
lib/net: improve the docs for tor_{ersatz_,}socketpair()
Add some details about IP family support, and point to
tor_socketpair() from tor_ersatz_socketpair().
Closes ticket 29015.
Diffstat (limited to 'src/lib/net/socket.c')
-rw-r--r-- | src/lib/net/socket.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/net/socket.c b/src/lib/net/socket.c index 8940e00591..385c987e68 100644 --- a/src/lib/net/socket.c +++ b/src/lib/net/socket.c @@ -458,7 +458,9 @@ get_n_open_sockets(void) * localhost is inaccessible (for example, if the networking * stack is down). And even if it succeeds, the socket pair will not * be able to read while localhost is down later (the socket pair may - * even close, depending on OS-specific timeouts). + * even close, depending on OS-specific timeouts). The socket pair + * should work on IPv4-only, IPv6-only, and dual-stack systems, as long + * as they have the standard localhost addresses. * * Returns 0 on success and -errno on failure; do not rely on the value * of errno or WSAGetLastError(). |