UDP/IP address information used by Socket.udp_server_loop.
Local address
Address of the source
remote_adress
is an Addrinfo
object.
local_adress
is an Addrinfo
object.
reply_proc
is a Proc used to send
reply back to the source.
# File ext/socket/lib/socket.rb, line 651 def initialize(remote_address, local_address, &reply_proc) @remote_address = remote_address @local_address = local_address @reply_proc = reply_proc end
Sends the String msg
to the
source
# File ext/socket/lib/socket.rb, line 668 def reply(msg) @reply_proc.call msg end