Sets whether this socket sends keep-alive messages.
impl Socket {
fn set_keep_alive(&self, val: bool) -> Result<(), Errno>
}| Name | Description |
|---|---|
| val | Whether this socket sends keep-alive messages. |
This option only makes sense for connection-oriented protocols.
socket(7) and SO_KEEPALIVE therein