Retrieves the address of the peer this socket is connected to, if any.
impl Socket {
fn get_peer_addr(&self, buf: &'a mut [u8]) -> Result<&'a mut SockAddr, Errno>
}| Name | Description |
|---|---|
| buf | The buffer in which the address will be stored. |
Returns the address of the peer this socket is connected to, if any.