authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2019-11-13 16:27:33+11:00
committergravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2019-11-14 17:09:17+11:00
loga832b35c19801b02f97103bce9e86afd389a01dd
tree4eb1c99ff978f459a4bb9d1c93a2e0dc8831c5a7
parentbe86e41d975325d30145e30369912a409012b76b
signaturelock-open Commit is signed but in an unrecognized format.

std: add windows socket constants

Taken from https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsasocketw

1 files changed, 14 insertions(+), 0 deletions(-)

lib/std/os/bits/windows.zig+14
......@@ -226,3 +226,17 @@ pub const AF_TCNMESSAGE = 30;
226226pub const AF_ICLFXBM = 31;
227227pub const AF_BTH = 32;
228228pub const AF_MAX = 33;
229
230pub const SOCK_STREAM = 1;
231pub const SOCK_DGRAM = 2;
232pub const SOCK_RAW = 3;
233pub const SOCK_RDM = 4;
234pub const SOCK_SEQPACKET = 5;
235
236pub const IPPROTO_ICMP = 1;
237pub const IPPROTO_IGMP = 2;
238pub const BTHPROTO_RFCOMM = 3;
239pub const IPPROTO_TCP = 6;
240pub const IPPROTO_UDP = 17;
241pub const IPPROTO_ICMPV6 = 58;
242pub const IPPROTO_RM = 113;