pub fn bind_v4<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrV4) -> Result<()>
Available on crate feature
net
only.Expand description
bind(sockfd, addr, sizeof(struct sockaddr_in))
—Binds a socket to an
IPv4 address.
pub fn bind_v4<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrV4) -> Result<()>
net
only.bind(sockfd, addr, sizeof(struct sockaddr_in))
—Binds a socket to an
IPv4 address.