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)
ext/socket/lib/socket.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/ext/socket/lib/socket.rb, line 1039
def initialize(remote_address, local_address, &reply_proc)
@remote_address = remote_address
@local_address = local_address
@reply_proc = reply_proc
end
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.