Class: Resolv::DNS::Requester::UnconnectedUDP::Sender

Inherits:
Sender
  • Object
show all
Defined in:
lib/fresolv.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, data, sock, host, port) ⇒ Sender

Returns a new instance of Sender.



742
743
744
745
746
# File 'lib/fresolv.rb', line 742

def initialize(msg, data, sock, host, port)
  super(msg, data, sock)
  @host = host
  @port = port
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



747
748
749
# File 'lib/fresolv.rb', line 747

def data
  @data
end

Instance Method Details

#sendObject



749
750
751
# File 'lib/fresolv.rb', line 749

def send
  @sock.send(@msg, 0, @host, @port)
end