method

linger

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

Returns the linger data in sockopt as a pair of boolean and integer.

sockopt = Socket::Option.linger(true, 10)
p sockopt.linger => [true, 10]