method
sender
sender(msg, data, host, port=Port)
public
Hide source
# File lib/resolv.rb, line 660 def sender(msg, data, host, port=Port) service = [host, port] id = DNS.allocate_request_id(host, port) request = msg.encode request[0,2] = [id].pack('n') return @senders[[service, id]] = Sender.new(request, data, @sock, host, port) end