Class: Resolv::DNS::Requester::UnconnectedUDP::Sender
- Defined in:
- lib/resolv.rb
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.
661 662 663 664 665 |
# File 'lib/resolv.rb', line 661 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
666 667 668 |
# File 'lib/resolv.rb', line 666 def data @data end |
Instance Method Details
#send ⇒ Object
668 669 670 |
# File 'lib/resolv.rb', line 668 def send @sock.send(@msg, 0, @host, @port) end |