a client to send data : UDP Client « Network « Ruby






a client to send data



require 'socket'

s = UDPSocket.new
s.send("hello", 0, 'localhost', 1234)

 

Related examples in the same category