@@ -1611,6 +1611,10 @@ pub mod consts {
1611
1611
pub static SO_KEEPALIVE : c_int = 8 ;
1612
1612
pub static SO_BROADCAST : c_int = 32 ;
1613
1613
pub static SO_REUSEADDR : c_int = 4 ;
1614
+
1615
+ pub static SHUT_RD : c_int = 0 ;
1616
+ pub static SHUT_WR : c_int = 1 ;
1617
+ pub static SHUT_RDWR : c_int = 2 ;
1614
1618
}
1615
1619
pub mod extra {
1616
1620
use libc:: types:: os:: arch:: c95:: c_int;
@@ -2391,6 +2395,10 @@ pub mod consts {
2391
2395
pub static SO_KEEPALIVE : c_int = 9 ;
2392
2396
pub static SO_BROADCAST : c_int = 6 ;
2393
2397
pub static SO_REUSEADDR : c_int = 2 ;
2398
+
2399
+ pub static SHUT_RD : c_int = 0 ;
2400
+ pub static SHUT_WR : c_int = 1 ;
2401
+ pub static SHUT_RDWR : c_int = 2 ;
2394
2402
}
2395
2403
#[ cfg( target_arch = "x86" ) ]
2396
2404
#[ cfg( target_arch = "x86_64" ) ]
@@ -2842,6 +2850,10 @@ pub mod consts {
2842
2850
pub static SO_KEEPALIVE : c_int = 0x0008 ;
2843
2851
pub static SO_BROADCAST : c_int = 0x0020 ;
2844
2852
pub static SO_REUSEADDR : c_int = 0x0004 ;
2853
+
2854
+ pub static SHUT_RD : c_int = 0 ;
2855
+ pub static SHUT_WR : c_int = 1 ;
2856
+ pub static SHUT_RDWR : c_int = 2 ;
2845
2857
}
2846
2858
pub mod extra {
2847
2859
use libc:: types:: os:: arch:: c95:: c_int;
@@ -3221,6 +3233,10 @@ pub mod consts {
3221
3233
pub static SO_KEEPALIVE : c_int = 0x0008 ;
3222
3234
pub static SO_BROADCAST : c_int = 0x0020 ;
3223
3235
pub static SO_REUSEADDR : c_int = 0x0004 ;
3236
+
3237
+ pub static SHUT_RD : c_int = 0 ;
3238
+ pub static SHUT_WR : c_int = 1 ;
3239
+ pub static SHUT_RDWR : c_int = 2 ;
3224
3240
}
3225
3241
pub mod extra {
3226
3242
use libc:: types:: os:: arch:: c95:: c_int;
@@ -3939,6 +3955,7 @@ pub mod funcs {
3939
3955
pub fn sendto ( socket : c_int , buf : * c_void , len : size_t ,
3940
3956
flags : c_int , addr : * sockaddr ,
3941
3957
addrlen : socklen_t ) -> ssize_t ;
3958
+ pub fn shutdown ( socket : c_int , how : c_int ) -> c_int ;
3942
3959
}
3943
3960
}
3944
3961
@@ -3975,6 +3992,7 @@ pub mod funcs {
3975
3992
pub fn sendto ( socket : SOCKET , buf : * c_void , len : c_int ,
3976
3993
flags : c_int , addr : * sockaddr ,
3977
3994
addrlen : c_int ) -> c_int ;
3995
+ pub fn shutdown ( socket : SOCKET , how : c_int ) -> c_int ;
3978
3996
}
3979
3997
}
3980
3998
0 commit comments