123456789_123456789_123456789_123456789_123456789_

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

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Resolv::DNS::Requester::Sender
Defined in: lib/resolv.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(msg, data, sock, host, port) ⇒ Sender

[ GitHub ]

  
# File 'lib/resolv.rb', line 804

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

Instance Attribute Details

#data (readonly)

[ GitHub ]

  
# File 'lib/resolv.rb', line 809

attr_reader :data

Instance Method Details

#send

[ GitHub ]

  
# File 'lib/resolv.rb', line 811

def send
  raise "@sock is nil." if @sock.nil?
  @sock.send(@msg, 0, @host, @port)
end