std: add windows socket constants
Taken from https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsasocketwmaster
parent
be86e41d97
commit
a832b35c19
|
@ -226,3 +226,17 @@ pub const AF_TCNMESSAGE = 30;
|
|||
pub const AF_ICLFXBM = 31;
|
||||
pub const AF_BTH = 32;
|
||||
pub const AF_MAX = 33;
|
||||
|
||||
pub const SOCK_STREAM = 1;
|
||||
pub const SOCK_DGRAM = 2;
|
||||
pub const SOCK_RAW = 3;
|
||||
pub const SOCK_RDM = 4;
|
||||
pub const SOCK_SEQPACKET = 5;
|
||||
|
||||
pub const IPPROTO_ICMP = 1;
|
||||
pub const IPPROTO_IGMP = 2;
|
||||
pub const BTHPROTO_RFCOMM = 3;
|
||||
pub const IPPROTO_TCP = 6;
|
||||
pub const IPPROTO_UDP = 17;
|
||||
pub const IPPROTO_ICMPV6 = 58;
|
||||
pub const IPPROTO_RM = 113;
|
||||
|
|
Loading…
Reference in New Issue