Socket options constants for *BSD/Linux/Windows
This commit is contained in:
parent
a848ce4d38
commit
6f09dfc23a
@ -2495,10 +2495,24 @@ pub mod bsd44 {
|
||||
|
||||
pub const TCP_NODELAY: c_int = 0x0001;
|
||||
pub const SOL_SOCKET: c_int = 0xffff;
|
||||
pub const SO_KEEPALIVE: c_int = 8;
|
||||
pub const SO_BROADCAST: c_int = 32;
|
||||
pub const SO_REUSEADDR: c_int = 4;
|
||||
|
||||
pub const SO_DEBUG: c_int = 0x0001;
|
||||
pub const SO_ACCEPTCONN: c_int = 0x0002;
|
||||
pub const SO_REUSEADDR: c_int = 0x0004;
|
||||
pub const SO_KEEPALIVE: c_int = 0x0008;
|
||||
pub const SO_DONTROUTE: c_int = 0x0010;
|
||||
pub const SO_BROADCAST: c_int = 0x0020;
|
||||
pub const SO_USELOOPBACK: c_int = 0x0040;
|
||||
pub const SO_LINGER: c_int = 0x0080;
|
||||
pub const SO_OOBINLINE: c_int = 0x0100;
|
||||
pub const SO_SNDBUF: c_int = 0x1001;
|
||||
pub const SO_RCVBUF: c_int = 0x1002;
|
||||
pub const SO_SNDLOWAT: c_int = 0x1003;
|
||||
pub const SO_RCVLOWAT: c_int = 0x1004;
|
||||
pub const SO_SNDTIMEO: c_int = 0x1005;
|
||||
pub const SO_RCVTIMEO: c_int = 0x1006;
|
||||
pub const SO_ERROR: c_int = 0x1007;
|
||||
pub const SO_TYPE: c_int = 0x1008;
|
||||
|
||||
pub const IFF_LOOPBACK: c_int = 4;
|
||||
|
||||
@ -3441,10 +3455,24 @@ pub mod bsd44 {
|
||||
|
||||
pub const TCP_NODELAY: c_int = 1;
|
||||
pub const SOL_SOCKET: c_int = 1;
|
||||
pub const SO_KEEPALIVE: c_int = 9;
|
||||
pub const SO_BROADCAST: c_int = 6;
|
||||
|
||||
pub const SO_DEBUG: c_int = 1;
|
||||
pub const SO_REUSEADDR: c_int = 2;
|
||||
pub const SO_TYPE: c_int = 3;
|
||||
pub const SO_ERROR: c_int = 4;
|
||||
pub const SO_DONTROUTE: c_int = 5;
|
||||
pub const SO_BROADCAST: c_int = 6;
|
||||
pub const SO_SNDBUF: c_int = 7;
|
||||
pub const SO_RCVBUF: c_int = 8;
|
||||
pub const SO_KEEPALIVE: c_int = 9;
|
||||
pub const SO_OOBINLINE: c_int = 10;
|
||||
pub const SO_LINGER: c_int = 13;
|
||||
pub const SO_REUSEPORT: c_int = 15;
|
||||
pub const SO_RCVLOWAT: c_int = 18;
|
||||
pub const SO_SNDLOWAT: c_int = 19;
|
||||
pub const SO_RCVTIMEO: c_int = 20;
|
||||
pub const SO_SNDTIMEO: c_int = 21;
|
||||
pub const SO_ACCEPTCONN: c_int = 30;
|
||||
|
||||
pub const SHUT_RD: c_int = 0;
|
||||
pub const SHUT_WR: c_int = 1;
|
||||
@ -3487,10 +3515,24 @@ pub mod bsd44 {
|
||||
|
||||
pub const TCP_NODELAY: c_int = 1;
|
||||
pub const SOL_SOCKET: c_int = 65535;
|
||||
pub const SO_KEEPALIVE: c_int = 8;
|
||||
pub const SO_BROADCAST: c_int = 32;
|
||||
pub const SO_REUSEADDR: c_int = 4;
|
||||
pub const SO_ERROR: c_int = 4103;
|
||||
|
||||
pub const SO_DEBUG: c_int = 0x0001;
|
||||
pub const SO_REUSEADDR: c_int = 0x0004;
|
||||
pub const SO_KEEPALIVE: c_int = 0x0008;
|
||||
pub const SO_DONTROUTE: c_int = 0x0010;
|
||||
pub const SO_BROADCAST: c_int = 0x0020;
|
||||
pub const SO_LINGER: c_int = 0x0080;
|
||||
pub const SO_OOBINLINE: c_int = 0x100;
|
||||
pub const SO_REUSEPORT: c_int = 0x0200;
|
||||
pub const SO_SNDBUF: c_int = 0x1001;
|
||||
pub const SO_RCVBUF: c_int = 0x1002;
|
||||
pub const SO_SNDLOWAT: c_int = 0x1003;
|
||||
pub const SO_RCVLOWAT: c_int = 0x1004;
|
||||
pub const SO_SNDTIMEO: c_int = 0x1005;
|
||||
pub const SO_RCVTIMEO: c_int = 0x1006;
|
||||
pub const SO_ERROR: c_int = 0x1007;
|
||||
pub const SO_TYPE: c_int = 0x1008;
|
||||
pub const SO_ACCEPTCONN: c_int = 0x1009;
|
||||
|
||||
pub const SHUT_RD: c_int = 0;
|
||||
pub const SHUT_WR: c_int = 1;
|
||||
@ -4002,10 +4044,24 @@ pub mod bsd44 {
|
||||
pub const TCP_NODELAY: c_int = 1;
|
||||
pub const TCP_KEEPIDLE: c_int = 256;
|
||||
pub const SOL_SOCKET: c_int = 0xffff;
|
||||
pub const SO_KEEPALIVE: c_int = 0x0008;
|
||||
pub const SO_BROADCAST: c_int = 0x0020;
|
||||
pub const SO_DEBUG: c_int = 0x01;
|
||||
pub const SO_ACCEPTCONN: c_int = 0x0002;
|
||||
pub const SO_REUSEADDR: c_int = 0x0004;
|
||||
pub const SO_KEEPALIVE: c_int = 0x0008;
|
||||
pub const SO_DONTROUTE: c_int = 0x0010;
|
||||
pub const SO_BROADCAST: c_int = 0x0020;
|
||||
pub const SO_USELOOPBACK: c_int = 0x0040;
|
||||
pub const SO_LINGER: c_int = 0x0080;
|
||||
pub const SO_OOBINLINE: c_int = 0x0100;
|
||||
pub const SO_REUSEPORT: c_int = 0x0200;
|
||||
pub const SO_SNDBUF: c_int = 0x1001;
|
||||
pub const SO_RCVBUF: c_int = 0x1002;
|
||||
pub const SO_SNDLOWAT: c_int = 0x1003;
|
||||
pub const SO_RCVLOWAT: c_int = 0x1004;
|
||||
pub const SO_SNDTIMEO: c_int = 0x1005;
|
||||
pub const SO_RCVTIMEO: c_int = 0x1006;
|
||||
pub const SO_ERROR: c_int = 0x1007;
|
||||
pub const SO_TYPE: c_int = 0x1008;
|
||||
|
||||
pub const IFF_LOOPBACK: c_int = 0x8;
|
||||
|
||||
@ -4403,10 +4459,24 @@ pub mod bsd44 {
|
||||
|
||||
pub const TCP_NODELAY: c_int = 0x01;
|
||||
pub const SOL_SOCKET: c_int = 0xffff;
|
||||
pub const SO_KEEPALIVE: c_int = 0x0008;
|
||||
pub const SO_BROADCAST: c_int = 0x0020;
|
||||
pub const SO_DEBUG: c_int = 0x01;
|
||||
pub const SO_ACCEPTCONN: c_int = 0x0002;
|
||||
pub const SO_REUSEADDR: c_int = 0x0004;
|
||||
pub const SO_KEEPALIVE: c_int = 0x0008;
|
||||
pub const SO_DONTROUTE: c_int = 0x0010;
|
||||
pub const SO_BROADCAST: c_int = 0x0020;
|
||||
pub const SO_USELOOPBACK: c_int = 0x0040;
|
||||
pub const SO_LINGER: c_int = 0x0080;
|
||||
pub const SO_OOBINLINE: c_int = 0x0100;
|
||||
pub const SO_REUSEPORT: c_int = 0x0200;
|
||||
pub const SO_SNDBUF: c_int = 0x1001;
|
||||
pub const SO_RCVBUF: c_int = 0x1002;
|
||||
pub const SO_SNDLOWAT: c_int = 0x1003;
|
||||
pub const SO_RCVLOWAT: c_int = 0x1004;
|
||||
pub const SO_SNDTIMEO: c_int = 0x1005;
|
||||
pub const SO_RCVTIMEO: c_int = 0x1006;
|
||||
pub const SO_ERROR: c_int = 0x1007;
|
||||
pub const SO_TYPE: c_int = 0x1008;
|
||||
|
||||
pub const IFF_LOOPBACK: c_int = 0x8;
|
||||
|
||||
@ -4820,7 +4890,7 @@ pub mod bsd44 {
|
||||
pub const TCP_NODELAY: c_int = 0x01;
|
||||
pub const TCP_KEEPALIVE: c_int = 0x10;
|
||||
pub const SOL_SOCKET: c_int = 0xffff;
|
||||
|
||||
|
||||
pub const SO_DEBUG: c_int = 0x01;
|
||||
pub const SO_ACCEPTCONN: c_int = 0x0002;
|
||||
pub const SO_REUSEADDR: c_int = 0x0004;
|
||||
@ -4864,6 +4934,15 @@ pub mod extra {
|
||||
pub const MAP_STACK : c_int = 0;
|
||||
|
||||
pub const IPPROTO_RAW : c_int = 255;
|
||||
|
||||
pub const SO_NREAD: c_int = 0x1020;
|
||||
pub const SO_NKE: c_int = 0x1021;
|
||||
pub const SO_NOSIGPIPE: c_int = 0x1022;
|
||||
pub const SO_NOADDRERR: c_int = 0x1023;
|
||||
pub const SO_NWRITE: c_int = 0x1024;
|
||||
pub const SO_DONTTRUNC: c_int = 0x2000;
|
||||
pub const SO_WANTMORE: c_int = 0x4000;
|
||||
pub const SO_WANTOOBFLAG: c_int = 0x8000;
|
||||
}
|
||||
pub mod sysconf {
|
||||
use types::os::arch::c95::c_int;
|
||||
|
Loading…
Reference in New Issue
Block a user