Function rustix::net::sockopt::set_socket_keepalive
source · pub fn set_socket_keepalive<Fd: AsFd>(fd: Fd, keepalive: bool) -> Result<()>
Available on crate feature
net
only.Expand description
setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, keepalive)