Function acceptfrom_with
pub fn acceptfrom_with<Fd>(
sockfd: Fd,
flags: SocketFlags,
) -> Result<(OwnedFd, Option<SocketAddrAny>), Errno> ⓘwhere
Fd: AsFd,
Available on crate feature
dep_rustix
only.Expand description
accept4(fd, &addr, &len, flags)
—Accepts an incoming connection and
returns the peer address, with flags.
Use accept_with
if the peer address isn’t needed.
acceptfrom_with
is the same as acceptfrom
but adds an additional
flags operand.