to_s

sockopt.data => string
Instance Public methods

returns the socket option data as a string.

p Socket::Option.new(:INET6, :IPV6, :RECVPKTINFO, [1].pack("i!")).data
#=> "\x01\x00\x00\x00"
doc_ruby_on_rails
2015-05-15 04:29:41
Comments
Leave a Comment

Please login to continue.