method

int

v1_9_2_180 - Show latest stable - Class: Socket::Option
int()
public

Returns the data in sockopt as an int.

The size and endian is dependent on the platform.

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