This commit is contained in:
ge
2026-04-12 16:30:28 +03:00
parent 5b56659d21
commit 2d2281b8cc
26 changed files with 1002 additions and 640 deletions
+10 -3
View File
@@ -4,9 +4,8 @@ module netio
// See [address_families(7)](https://www.man7.org/linux/man-pages/man7/address_families.7.html).
pub type AddrFamily = int
// The protocol number type.
// See [protocols(5)](https://man7.org/linux/man-pages/man5/protocols.5.html),
// and [getprotoent(3)](https://man7.org/linux/man-pages/man3/getprotoent.3.html) for details.
// The protocol number.
// See [protocols(5)](https://man7.org/linux/man-pages/man5/protocols.5.html).
pub type Protocol = int
// The socket type.
@@ -17,3 +16,11 @@ pub type SocketLevel = int
// The socket option type.
pub type SocketOption = int
// Flag type for `translate_addr()`.
// See [getaddrinfo(3)](https://man7.org/linux/man-pages/man3/getaddrinfo.3.html) for details.
pub type AddrInfoFlag = int
// Flag type for `translate_name()`.
// See [getnameinfo(3)](https://man7.org/linux/man-pages/man3/getnameinfo.3.html) for details.
pub type NameInfoFlag = int