Method lrs::socket::Socket::get_addr

Retrieves the address the socket is bound to.

Syntax

impl Socket {
    fn get_addr(&self, buf: &'a mut [u8]) -> Result<&'a mut SockAddr, Errno>
}

Arguments

NameDescription
buf

The buffer in which the address will be stored.

Return value

Returns the address the socket is bound to.

See also