Add more networking constants

This commit is contained in:
Jeremy Soller
2024-02-03 13:17:40 -07:00
parent 5b78afe5be
commit a7b2294b62
2 changed files with 15 additions and 5 deletions
+3
View File
@@ -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;