rustix::net::sockopt

Function set_socket_linger

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

setsockopt(fd, SOL_SOCKET, SO_LINGER, value)

See the module-level documentation for more.