getsockopt - get socket options on a given socket
getsockopt SOCKET,LEVEL,OPTNAME
Returns the socket option requested, or undefined if there is an error.