Perl Programming/Keywords/getsockopt
The getsockopt keyword
The getsockopt function queries the option named OPTIONNAME that is associated with the SOCKET at a given LEVEL. Although they may exist several options, at least the uppermost socket level SOL_SOCKET will exist.
Syntax
getsockopt SOCKET, LEVEL, OPTIONNAME