connect(host, port)
public
Connects udpsocket to host:port.
This makes possible to send without
destination address.
u1 = UDPSocket.new
u1.bind("127.0.0.1", 4913)
u2 = UDPSocket.new
u2.connect("127.0.0.1", 4913)
u2.send "uuuu", 0
p u1.recvfrom(10)
Show source
def connect(host, port)
original_resolv_connect(IPSocket.getaddress(host), port)
end