setsockopt

Function setsockopt 

Source
pub unsafe fn setsockopt<T>(
    sock: &Socket,
    level: c_int,
    option_name: c_int,
    option_value: T,
) -> Result<()>
Expand description

Sets the value of a socket option.

§Safety

T must be the type associated with the given socket option.