pub unsafe fn getsockopt<T: Copy>( sock: &Socket, level: c_int, option_name: c_int, ) -> Result<T>
Gets the value of a socket option.
T must be the type associated with the given socket option.
T