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

Inherits:
Sender
  • Object
show all
Defined in:
lib/resolv.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.



701
702
703
704
705
# File 'lib/resolv.rb', line 701

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



706
707
708
# File 'lib/resolv.rb', line 706

def data
  @data
end

Instance Method Details

#sendObject



708
709
710
# File 'lib/resolv.rb', line 708

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