rustix::net

Function acceptfrom

source
pub fn acceptfrom<Fd: AsFd>(
    sockfd: Fd,
) -> Result<(OwnedFd, Option<SocketAddrAny>)>
Expand description

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

Use accept if the peer address isn’t needed.

§References