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>
Please login to continue.