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