Flowdock
method

int

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: Option

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_2_180) is shown here.

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>
Show source
Register or log in to add new notes.