File tree Expand file tree Collapse file tree 4 files changed +29
-9
lines changed Expand file tree Collapse file tree 4 files changed +29
-9
lines changed Original file line number Diff line number Diff line change 30
30
}
31
31
}
32
32
33
+ pub const AF_INET6 : :: c_int = 23 ;
34
+
33
35
pub const FIONBIO : :: c_ulong = 1 ;
34
36
35
37
pub const POLLIN : :: c_short = 0x1 ;
@@ -40,3 +42,11 @@ pub const POLLHUP: ::c_short = 0x10;
40
42
pub const POLLNVAL : :: c_short = 0x20 ;
41
43
42
44
pub const SOL_SOCKET : :: c_int = 65535 ;
45
+
46
+ pub const MSG_OOB : :: c_int = 1 ;
47
+ pub const MSG_PEEK : :: c_int = 2 ;
48
+ pub const MSG_DONTWAIT : :: c_int = 4 ;
49
+ pub const MSG_DONTROUTE : :: c_int = 0 ;
50
+ pub const MSG_WAITALL : :: c_int = 0 ;
51
+ pub const MSG_MORE : :: c_int = 0 ;
52
+ pub const MSG_NOSIGNAL : :: c_int = 0 ;
Original file line number Diff line number Diff line change 32
32
}
33
33
}
34
34
35
+ pub const AF_INET6 : :: c_int = 23 ;
36
+
35
37
pub const FIONBIO : :: c_ulong = 1 ;
36
38
37
39
pub const POLLIN : :: c_short = 0x1 ;
@@ -42,3 +44,11 @@ pub const POLLOUT: ::c_short = 0x10;
42
44
pub const POLLNVAL : :: c_short = 0x20 ;
43
45
44
46
pub const SOL_SOCKET : :: c_int = 65535 ;
47
+
48
+ pub const MSG_OOB : :: c_int = 1 ;
49
+ pub const MSG_PEEK : :: c_int = 2 ;
50
+ pub const MSG_DONTWAIT : :: c_int = 4 ;
51
+ pub const MSG_DONTROUTE : :: c_int = 0 ;
52
+ pub const MSG_WAITALL : :: c_int = 0 ;
53
+ pub const MSG_MORE : :: c_int = 0 ;
54
+ pub const MSG_NOSIGNAL : :: c_int = 0 ;
Original file line number Diff line number Diff line change @@ -416,7 +416,6 @@ pub const PF_INET6: ::c_int = 23;
416
416
417
417
pub const AF_UNSPEC : :: c_int = 0 ;
418
418
pub const AF_INET : :: c_int = 2 ;
419
- pub const AF_INET6 : :: c_int = 23 ;
420
419
421
420
pub const CLOCK_REALTIME : :: clockid_t = 1 ;
422
421
pub const CLOCK_MONOTONIC : :: clockid_t = 4 ;
@@ -425,14 +424,6 @@ pub const CLOCK_BOOTTIME: ::clockid_t = 4;
425
424
pub const SOCK_STREAM : :: c_int = 1 ;
426
425
pub const SOCK_DGRAM : :: c_int = 2 ;
427
426
428
- pub const MSG_OOB : :: c_int = 1 ;
429
- pub const MSG_PEEK : :: c_int = 2 ;
430
- pub const MSG_DONTWAIT : :: c_int = 4 ;
431
- pub const MSG_DONTROUTE : :: c_int = 0 ;
432
- pub const MSG_WAITALL : :: c_int = 0 ;
433
- pub const MSG_MORE : :: c_int = 0 ;
434
- pub const MSG_NOSIGNAL : :: c_int = 0 ;
435
-
436
427
pub const SHUT_RD : :: c_int = 0 ;
437
428
pub const SHUT_WR : :: c_int = 1 ;
438
429
pub const SHUT_RDWR : :: c_int = 2 ;
Original file line number Diff line number Diff line change 60
60
}
61
61
62
62
pub const AF_UNIX : :: c_int = 1 ;
63
+ pub const AF_INET6 : :: c_int = 10 ;
63
64
64
65
pub const FIONBIO : :: c_ulong = 2147772030 ;
65
66
@@ -75,6 +76,14 @@ pub const POLLHUP: ::c_short = 1 << 6;
75
76
76
77
pub const SOL_SOCKET : :: c_int = 0xfff ;
77
78
79
+ pub const MSG_OOB : :: c_int = 0x04 ;
80
+ pub const MSG_PEEK : :: c_int = 0x01 ;
81
+ pub const MSG_DONTWAIT : :: c_int = 0x08 ;
82
+ pub const MSG_DONTROUTE : :: c_int = 0x4 ;
83
+ pub const MSG_WAITALL : :: c_int = 0x02 ;
84
+ pub const MSG_MORE : :: c_int = 0x10 ;
85
+ pub const MSG_NOSIGNAL : :: c_int = 0x20 ;
86
+
78
87
extern "C" {
79
88
pub fn sendmsg (
80
89
s : :: c_int ,
You can’t perform that action at this time.
0 commit comments