Name Description Size
addr.rs Socket address utilities. 7115
ext.rs 3111
mod.rs 436
msghdr.rs Utilities for dealing with message headers. These take closures rather than returning a `c::msghdr` directly because the message headers may reference stack-local data. 5281
netdevice.rs 1603
read_sockaddr.rs The BSD sockets API requires us to read the `ss_family` field before we can interpret the rest of a `sockaddr` produced by the kernel. 11655
send_recv.rs /bitflags/#externally-defined-flags> const _ = !0; } } bitflags! { /// `MSG_*` flags for use with [`recv`], [`recvfrom`], and related /// functions. /// /// [`recv`]: crate::net::recv /// [`recvfrom`]: crate::net::recvfrom #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] pub struct RecvFlags: u32 { #[cfg(not(any( apple, solarish, windows, target_os = "aix", target_os = "espidf", target_os = "haiku", target_os = "nto", target_os = "vita", )))] /// `MSG_CMSG_CLOEXEC` const CMSG_CLOEXEC = bitcast!(c::MSG_CMSG_CLOEXEC); /// `MSG_DONTWAIT` #[cfg(not(windows))] const DONTWAIT = bitcast!(c::MSG_DONTWAIT); /// `MSG_ERRQUEUE` #[cfg(not(any( bsd, solarish, windows, target_os = "aix", target_os = "espidf", target_os = "haiku", target_os = "nto", target_os = "vita", )))] const ERRQUEUE = bitcast!(c::MSG_ERRQUEUE); /// `MSG_OOB` const OOB = bitcast!(c::MSG_OOB); /// `MSG_PEEK` const PEEK = bitcast!(c::MSG_PEEK); /// `MSG_TRUNC` const TRUNC = bitcast!(c::MSG_TRUNC); /// `MSG_WAITALL` const WAITALL = bitcast!(c::MSG_WAITALL); /// <https://docs.rs/bitflags/ 3039
sockopt.rs libc syscalls supporting `rustix::net::sockopt`. 37783
syscalls.rs libc syscalls supporting `rustix::net`. 17561
write_sockaddr.rs The BSD sockets API requires us to read the `ss_family` field before we can interpret the rest of a `sockaddr` produced by the kernel. 3859