getsockopt
See the current Perl documentation for getsockopt.
Here is our local, out-dated (pre-5.6) version:
getsockopt - get socket options on a given socket
getsockopt SOCKET,LEVEL,OPTNAME
Returns the socket option requested, or undef if there is an error.