Class: ResolvFiber::DNS::Requester::UnconnectedUDP::Sender
- Defined in:
- lib/resolv_fiber.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.
816 817 818 819 820 |
# File 'lib/resolv_fiber.rb', line 816 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.
821 822 823 |
# File 'lib/resolv_fiber.rb', line 821 def data @data end |
Instance Method Details
#send ⇒ Object
823 824 825 826 |
# File 'lib/resolv_fiber.rb', line 823 def send raise "@sock is nil." if @sock.nil? @sock.send(@msg, 0, @host, @port) end |