Lines Matching defs:bind

72 /// `bind(sockfd, addr)`—Binds a socket to an IP address.
80 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html
81 /// [Linux]: https://man7.org/linux/man-pages/man2/bind.2.html
82 /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/bind.2.html
83 /// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-bind
84 pub fn bind<Fd: AsFd>(sockfd: Fd, addr: &SocketAddr) -> io::Result<()> {
95 /// `bind(sockfd, addr)`—Binds a socket to an address.
103 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html
104 /// [Linux]: https://man7.org/linux/man-pages/man2/bind.2.html
105 /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/bind.2.html
106 /// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-bind
107 #[doc(alias = "bind")]
121 /// `bind(sockfd, addr, sizeof(struct sockaddr_in))`—Binds a socket to an
130 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html
131 /// [Linux]: https://man7.org/linux/man-pages/man2/bind.2.html
132 /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/bind.2.html
133 /// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-bind
135 #[doc(alias = "bind")]
140 /// `bind(sockfd, addr, sizeof(struct sockaddr_in6))`—Binds a socket to an
149 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html
150 /// [Linux]: https://man7.org/linux/man-pages/man2/bind.2.html
151 /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/bind.2.html
152 /// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-bind
154 #[doc(alias = "bind")]
159 /// `bind(sockfd, addr, sizeof(struct sockaddr_un))`—Binds a socket to a
168 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html
169 /// [Linux]: https://man7.org/linux/man-pages/man2/bind.2.html
170 /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/bind.2.html
171 /// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-bind
174 #[doc(alias = "bind")]