bool 2

sockopt.bool => true or false
Instance Public methods

Returns the data in sockopt as an boolean value.

sockopt = Socket::Option.int(:INET, :SOCKET, :KEEPALIVE, 1)
p sockopt.bool => true
doc_ruby_on_rails
2015-05-15 03:58:07
Comments
Leave a Comment

Please login to continue.