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