devela::_dep::rustix::net

Function acceptfrom

pub fn acceptfrom<Fd>(
    sockfd: Fd,
) -> Result<(OwnedFd, Option<SocketAddrAny>), Errno> 
where Fd: AsFd,
Available on crate feature dep_rustix only.
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