rustix::net::sockopt

Function set_tcp_keepidle

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

setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, value)

TCP_KEEPALIVE on Apple platforms.

See the module-level documentation for more.