pub fn getsockname(fd: RawFd) -> Result<SockAddr>
Get the current address to which the socket fd is bound.
fd
Further reading