diff options
author | Phil Vachon <phil@cowpig.ca> | 2014-10-08 10:30:11 -0400 |
---|---|---|
committer | Phil Vachon <phil@cowpig.ca> | 2014-10-20 14:12:07 -0400 |
commit | f2e7804280eed9859f628b21652f523cf851c56e (patch) | |
tree | 4f581ba04d79753412ad3c705dcb1babd9d7d92a /src/sys/socket.rs | |
parent | b52a5f6a4ebf0f8c10767d117d6ef27fd156a9b1 (diff) | |
download | nix-f2e7804280eed9859f628b21652f523cf851c56e.zip |
Add SO_REUSEPORT to list of available sock options
Add the ability to use SO_REUSEPORT for multiple applications listening
on the same port for TCP accepting sockets and UDP listening sockets.
Diffstat (limited to 'src/sys/socket.rs')
-rw-r--r-- | src/sys/socket.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sys/socket.rs b/src/sys/socket.rs index 4885795e..a375b017 100644 --- a/src/sys/socket.rs +++ b/src/sys/socket.rs @@ -65,6 +65,7 @@ mod consts { pub type SockOpt = c_int; +<<<<<<< HEAD pub const SO_ACCEPTCONN: SockOpt = 30; pub const SO_BINDTODEVICE: SockOpt = 25; pub const SO_BROADCAST: SockOpt = 6; @@ -89,6 +90,7 @@ mod consts { pub const SO_RCVTIMEO: SockOpt = 20; pub const SO_SNDTIMEO: SockOpt = 21; pub const SO_REUSEADDR: SockOpt = 2; + pub const SO_REUSEPORT: SockOpt = 15; pub const SO_RXQ_OVFL: SockOpt = 40; pub const SO_SNDBUF: SockOpt = 7; pub const SO_SNDBUFFORCE: SockOpt = 32; |