Class: Resolv::DNS::Requester::UnconnectedUDP::Sender
- Defined in:
- lib/net/dns/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.
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
#send ⇒ Object
660 661 662 |
# File 'lib/net/dns/resolv.rb', line 660 def send @sock.send(@msg, 0, @host, @port) end |