Class: Resolv::DNS::Requester::UnconnectedUDP::Sender
- Defined in:
- lib/resolv.rb
Instance Attribute Summary
Attributes inherited from Sender
Instance Method Summary collapse
-
#initialize(msg, data, sock, host, port, queue) ⇒ Sender
constructor
A new instance of Sender.
- #send ⇒ Object
Methods inherited from Sender
Constructor Details
#initialize(msg, data, sock, host, port, queue) ⇒ Sender
Returns a new instance of Sender.
607 608 609 610 611 |
# File 'lib/resolv.rb', line 607 def initialize(msg, data, sock, host, port, queue) super(msg, data, sock, queue) @host = host @port = port end |
Instance Method Details
#send ⇒ Object
613 614 615 |
# File 'lib/resolv.rb', line 613 def send @sock.send(@msg, 0, @host, @port) end |