Method lrs::socket::Socket::is_keep_alive

Retrieves whether this socket sends keep-alive messages.

Syntax

impl Socket {
    fn is_keep_alive(&self) -> Result<bool, Errno>
}

Return value

Returns whether this socket sends keep-alive messages.

Remarks

This option only makes sense for connection-oriented protocols.

See also