getsockopt

Function getsockopt 

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

Gets the value of a socket option.

§Safety

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