new

UDPSocket.new([address_family]) => socket
Class Public methods

Creates a new UDPSocket object.

address_family should be an integer, a string or a symbol: Socket::AF_INET, âAF_INETâ, :INET, etc.

UDPSocket.new                   #=> #<UDPSocket:fd 3>
UDPSocket.new(Socket::AF_INET6) #=> #<UDPSocket:fd 4>
doc_ruby_on_rails
2015-06-09 22:25:52
Comments
Leave a Comment

Please login to continue.