Function rustix::net::acceptfrom_with

pub fn acceptfrom_with<Fd: AsFd>(sockfd: &Fd, flags: AcceptFlags) -> io::Result<(OwnedFd, SocketAddrAny)>
Documentation

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.

References