Class: Gem::Resolv::DNS::Requester::UnconnectedUDP::Sender
- Defined in:
- lib/rubygems/vendor/resolv/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.
797 798 799 800 801 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 797 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.
802 803 804 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 802 def data @data end |
Instance Method Details
#send ⇒ Object
804 805 806 807 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 804 def send raise "@sock is nil." if @sock.nil? @sock.send(@msg, 0, @host, @port) end |