Method lrs::socket::Socket::protocol

Retrieves the protocol of this socket.

Syntax

impl Socket {
    fn protocol(&self) -> Result<i32, Errno>
}

Return value

Returns the protocol of this socket.

See also