setsockopt(level, optname, optval)setsockopt(socketoption)
Instance Public methods
Sets a socket option. These are protocol and system specific, see your
local system documentation for details.
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, such
as Socket::SO_REUSEADDR. A string or