Method lrs::socket::Socket::set_keep_alive

Sets whether this socket sends keep-alive messages.

Syntax

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

Arguments

NameDescription
val

Whether this socket sends keep-alive messages.

Remarks

This option only makes sense for connection-oriented protocols.

See also