summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-04-11 20:24:39 -0400
committerirungentoo <irungentoo@gmail.com>2015-04-11 20:24:39 -0400
commit405558258d82e8cd14bb93e5d21702af180299ef (patch)
tree27069e55d263d8c9e31b1d0d13dfd228c3c72103 /toxcore/network.h
parent11b750c7450d8a31b03380b7865f6ce6159e0b6d (diff)
Enable SO_REUSEADDR on TCP server socket.
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index c67f523d..b06c0f6a 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -334,6 +334,13 @@ int set_socket_nonblock(sock_t sock);
334 */ 334 */
335int set_socket_nosigpipe(sock_t sock); 335int set_socket_nosigpipe(sock_t sock);
336 336
337/* Enable SO_REUSEADDR on socket.
338 *
339 * return 1 on success
340 * return 0 on failure
341 */
342int set_socket_reuseaddr(sock_t sock);
343
337/* Set socket to dual (IPv4 + IPv6 socket) 344/* Set socket to dual (IPv4 + IPv6 socket)
338 * 345 *
339 * return 1 on success 346 * return 1 on success