Merge pull request #3648 from FedericoCeratto/reuse_port

Add SO_REUSEPORT support
This commit is contained in:
Andreas Rumpf 2016-05-29 22:21:56 +02:00
commit 380524caa8
4 changed files with 10 additions and 3 deletions

View file

@ -1575,6 +1575,8 @@ var
## Receive timeout.
SO_REUSEADDR* {.importc, header: "<sys/socket.h>".}: cint
## Reuse of local addresses is supported.
SO_REUSEPORT* {.importc, header: "<sys/socket.h>".}: cint
## Multiple binding: load balancing on incoming TCP connections or UDP packets. (Requires Linux kernel > 3.9)
SO_SNDBUF* {.importc, header: "<sys/socket.h>".}: cint
## Send buffer size.
SO_SNDLOWAT* {.importc, header: "<sys/socket.h>".}: cint