diff options
Diffstat (limited to 'toxcore/network.h')
-rw-r--r-- | toxcore/network.h | 7 |
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 | */ |
335 | int set_socket_nosigpipe(sock_t sock); | 335 | int 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 | */ | ||
342 | int 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 |