Name Description Size
addr.rs Socket address utilities. # Safety This file uses `CStr::from_bytes_with_nul_unchecked` on a string it knows to be NUL-terminated. 5165
mod.rs 206
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. 5205
netdevice.rs 2219
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. 8313
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 { /// `MSG_CMSG_CLOEXEC` const CMSG_CLOEXEC = c::MSG_CMSG_CLOEXEC; /// `MSG_DONTWAIT` const DONTWAIT = c::MSG_DONTWAIT; /// `MSG_ERRQUEUE` const ERRQUEUE = c::MSG_ERRQUEUE; /// `MSG_OOB` const OOB = c::MSG_OOB; /// `MSG_PEEK` const PEEK = c::MSG_PEEK; /// `MSG_TRUNC` const TRUNC = c::MSG_TRUNC; /// `MSG_WAITALL` const WAITALL = c::MSG_WAITALL; /// <https://docs.rs/bitflags/ 1755
sockopt.rs linux_raw syscalls supporting `rustix::net::sockopt`. # Safety See the `rustix::backend` module documentation for details. 33791
syscalls.rs linux_raw syscalls supporting `rustix::net`. # Safety See the `rustix::backend` module documentation for details. 29021
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. 2758