pub fn connect<Fd: AsFd>(sockfd: Fd, addr: &impl SocketAddrArg) -> Result<()>Expand description
connect(sockfd, addr)—Initiates a connection to an IP address.
On Windows, a non-blocking socket returns Errno::WOULDBLOCK if the
connection cannot be completed immediately, rather than
Errno::INPROGRESS.