method

int

v1_9_2_180 - Show latest stable - Class: Socket::Option
int(p1, p2, p3, p4)
public

Creates a new Socket::Option object which contains an int as data.

The size and endian is dependent on the platform.

p Socket::Option.int(:INET, :SOCKET, :KEEPALIVE, 1)
#=> #<Socket::Option: INET SOCKET KEEPALIVE 1>