devela::_dep::rustix::net

Function connect

pub fn connect<Fd>(sockfd: Fd, addr: &SocketAddr) -> Result<(), Errno> 
where Fd: AsFd,
Available on crate feature dep_rustix only.
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