pub fn connect_v4<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrV4) -> Result<()>
Expand description

connect(sockfd, addr, sizeof(struct sockaddr_in))—Initiates a connection to an IPv4 address.

References