socket2::sys

Function setsockopt

Source
pub(crate) unsafe fn setsockopt<T>(
    fd: c_int,
    opt: c_int,
    val: c_int,
    payload: T,
) -> Result<()>
Expand description

Caller must ensure T is the correct type for opt and val.