Function socket2::sys::set_timeout_opt

source ยท
pub(crate) fn set_timeout_opt(
    fd: c_int,
    opt: c_int,
    val: c_int,
    duration: Option<Duration>,
) -> Result<()>
Expand description

Wrapper around setsockopt to deal with platform specific timeouts.