getsockopt function

Get socket options on a given socket Returns the socket option requested, or undef if there is an error.