optname

sockopt.optname => integer
Instance Public methods

returns the socket option name as an integer.

p Socket::Option.new(:INET6, :IPV6, :RECVPKTINFO, [1].pack("i!")).optname
#=> 2
doc_ruby_on_rails
2015-05-15 04:22:18
Comments
Leave a Comment

Please login to continue.