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-3.3.0/ext/socket/lib/socket.rb, line 1044
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-3.3.0/ext/socket/lib/socket.rb, line 1061
def reply(msg)
@reply_proc.call msg
end
Sends the String
msg
to the source