Lines Matching defs:accept
303 /// `accept(fd, NULL, NULL)`—Accepts an incoming connection.
307 /// POSIX guarantees that `accept` will use the lowest unused file descriptor,
317 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/accept.html
318 /// [Linux]: https://man7.org/linux/man-pages/man2/accept.2.html
319 /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/accept.2.html
320 /// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-accept
323 pub fn accept<Fd: AsFd>(sockfd: Fd) -> io::Result<OwnedFd> {
324 backend::net::syscalls::accept(sockfd.as_fd())
336 /// `accept_with` is the same as [`accept`] but adds an additional flags
349 /// `accept(fd, &addr, &len)`—Accepts an incoming connection and returns the
352 /// Use [`accept`] if the peer address isn't needed.
360 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/accept.html
361 /// [Linux]: https://man7.org/linux/man-pages/man2/accept.2.html
362 /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/accept.2.html
363 /// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-accept