This commit is contained in:
ge
2026-04-01 00:53:36 +03:00
commit b27f835d33
24 changed files with 1106 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
module netio
/*
Well defined socket types.
*/
pub const sock_stream = SocketType(C.SOCK_STREAM)
pub const sock_dgram = SocketType(C.SOCK_DGRAM)
pub const sock_seqpacket = SocketType(C.SOCK_SEQPACKET)
pub const sock_raw = SocketType(C.SOCK_RAW)
pub const sock_rdm = SocketType(C.SOCK_RDM)