Function rustix::net::acceptfrom

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

accept(fd, &addr, &len)—Accepts an incoming connection and returns the peer address.

Use accept if the peer address isn’t needed.

References