Function rustix::net::connect

source ·
pub fn connect<Fd: AsFd>(sockfd: Fd, addr: &SocketAddr) -> 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.

§References