getsockopt(level, optname) => socketoption
Instance Public methods
Gets a socket option. These are protocol and system specific, see your
local system documentation for details. The option is returned as a Socket::Option object.
Parameters
level is an integer, usually one of the SOL_ constants such as
Socket::SOL_SOCKET, or a protocol level. A string or symbol of the name,
possibly without prefix, is also accepted.
optname is an integer, usually one of the SO_ constants, suc