Function rustix::net::getsockname

pub fn getsockname<Fd: AsFd>(sockfd: &Fd) -> io::Result<SocketAddrAny>
Documentation

getsockname(fd, addr, len)—Returns the address a socket is bound to.

References