Function rustix::net::socket::connect_unspec
source · pub fn connect_unspec<Fd: AsFd>(sockfd: Fd) -> Result<()>
Expand description
connect(sockfd, {.sa_family = AF_UNSPEC}, sizeof(struct sockaddr))
—
Dissolve the socket’s association.
On UDP sockets, BSD platforms report Errno::AFNOSUPPORT
or
Errno::INVAL
even if the disconnect was successful.