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