You are viewing the version of this documentation from Perl 5.7.1. This is a development version of Perl.
getsockopt SOCKET,LEVEL,OPTNAME

Returns the socket option requested, or undef if there is an error.