new

Socket::Option.new(family, level, optname, data) => sockopt
Class Public methods

Returns a new Socket::Option object.

sockopt = Socket::Option.new(:INET, :SOCKET, :KEEPALIVE, [1].pack("i"))
p sockopt #=> #<Socket::Option: INET SOCKET KEEPALIVE 1>
doc_ruby_on_rails
2015-05-15 03:55:31
Comments
Leave a Comment

Please login to continue.