Class: Resolv::DNS::Requester::UnconnectedUDP::Sender
- Defined in:
- lib/resolv.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(msg, data, sock, host, port) ⇒ Sender
constructor
A new instance of Sender.
- #send ⇒ Object
Constructor Details
#initialize(msg, data, sock, host, port) ⇒ Sender
Returns a new instance of Sender.
830 831 832 833 834 |
# File 'lib/resolv.rb', line 830 def initialize(msg, data, sock, host, port) super(msg, data, sock) @host = host @port = port end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
835 836 837 |
# File 'lib/resolv.rb', line 835 def data @data end |
Instance Method Details
#send ⇒ Object
837 838 839 840 |
# File 'lib/resolv.rb', line 837 def send raise "@sock is nil." if @sock.nil? @sock.send(@msg, 0, @host, @port) end |