Add more networking constants
This commit is contained in:
@@ -2,6 +2,7 @@ use crate::platform::types::*;
|
||||
|
||||
pub const SOCK_STREAM: c_int = 1;
|
||||
pub const SOCK_DGRAM: c_int = 2;
|
||||
pub const SOCK_RAW: c_int = 3;
|
||||
pub const SOCK_NONBLOCK: c_int = 0o4_000;
|
||||
pub const SOCK_CLOEXEC: c_int = 0o2_000_000;
|
||||
|
||||
@@ -52,11 +53,13 @@ pub const MSG_WAITALL: c_int = 256;
|
||||
|
||||
pub const AF_INET: c_int = 2;
|
||||
pub const AF_INET6: c_int = 10;
|
||||
pub const AF_LOCAL: c_int = AF_UNIX;
|
||||
pub const AF_UNIX: c_int = 1;
|
||||
pub const AF_UNSPEC: c_int = 0;
|
||||
|
||||
pub const PF_INET: c_int = 2;
|
||||
pub const PF_INET6: c_int = 10;
|
||||
pub const PF_LOCAL: c_int = PF_UNIX;
|
||||
pub const PF_UNIX: c_int = 1;
|
||||
pub const PF_UNSPEC: c_int = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user