Socket::Option.int(family, level, optname, integer) => sockopt
Class Public methods
Creates a new Socket::Option object which contains an int as data.
The size and endian is dependent on the platform.
1 2 | p Socket::Option.int(: INET , : SOCKET , : KEEPALIVE , 1 ) #=> #<Socket::Option: INET SOCKET KEEPALIVE 1> |
Please login to continue.