Function socket2::sys::timeout_opt

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

Wrapper around getsockopt to deal with platform specific timeouts.