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

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



813
814
815
816
817
# File 'lib/logstash/patches/resolv_9270.rb', line 813

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.



818
819
820
# File 'lib/logstash/patches/resolv_9270.rb', line 818

def data
  @data
end

Instance Method Details

#sendObject



820
821
822
823
# File 'lib/logstash/patches/resolv_9270.rb', line 820

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