Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class method

Socket::UDPSource.new

new(remote_address, local_address, &reply_proc)

remote_address is an Addrinfo object.

local_address is an Addrinfo object.

reply_proc is a Proc used to send reply back to the source.

See also #reply also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0