Class: Resolv::DNS::Requester::UnconnectedUDP::Sender

Inherits:
Sender
  • Object
show all
Defined in:
lib/net/dns/resolv.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from Sender

#queue

Instance Method Summary collapse

Methods inherited from Sender

#recv

Constructor Details

#initialize(msg, data, sock, host, port, queue) ⇒ Sender

Returns a new instance of Sender.



654
655
656
657
658
# File 'lib/net/dns/resolv.rb', line 654

def initialize(msg, data, sock, host, port, queue)
  super(msg, data, sock, queue)
  @host = host
  @port = port
end

Instance Method Details

#sendObject



660
661
662
# File 'lib/net/dns/resolv.rb', line 660

def send
  @sock.send(@msg, 0, @host, @port)
end