rustix::net::sockopt

Function set_socket_keepalive

source
pub fn set_socket_keepalive<Fd: AsFd>(fd: Fd, value: bool) -> Result<()>
Expand description

setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, value)

See the module-level documentation for more.