(sockfd: Fd)
| 265 | /// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Accepting-Connections.html |
| 266 | #[inline] |
| 267 | pub fn accept<Fd: AsFd>(sockfd: Fd) -> io::Result<OwnedFd> { |
| 268 | backend::net::syscalls::accept(sockfd.as_fd()) |
| 269 | } |
| 270 | |
| 271 | /// `accept4(fd, NULL, NULL, flags)`—Accepts an incoming connection, with |
| 272 | /// flags. |