Function rustix::net::sockopt::set_socket_linger
source · pub fn set_socket_linger<Fd: AsFd>(
fd: Fd,
linger: Option<Duration>
) -> Result<()>
Available on crate feature
net
only.Expand description
setsockopt(fd, SOL_SOCKET, SO_LINGER, linger)