Class: Resolv::DNS::Requester::UnconnectedUDP::Sender
- Defined in:
- lib/resolv.rb
Overview
:nodoc:
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.
622 623 624 625 626 |
# File 'lib/resolv.rb', line 622 def initialize(msg, data, sock, host, port, queue) super(msg, data, sock, queue) @host = host @port = port end |
Instance Method Details
#send ⇒ Object
628 629 630 |
# File 'lib/resolv.rb', line 628 def send @sock.send(@msg, 0, @host, @port) end |