Class
UDP/IP address information used by Socket.udp_server_loop
.
Attributes
Read
Address of the source
Read
Local address
Class Methods
ext/socket/lib/socket.rb
View on GitHub
# File tmp/rubies/ruby-2.6.10/ext/socket/lib/socket.rb, line 1038
def initialize(remote_address, local_address, &reply_proc)
@remote_address = remote_address
@local_address = local_address
@reply_proc = reply_proc
end
Instance Methods
ext/socket/lib/socket.rb
View on GitHub
# File tmp/rubies/ruby-2.6.10/ext/socket/lib/socket.rb, line 1055
def reply(msg)
@reply_proc.call msg
end
Sends the String
msg
to the source