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

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

Instance Attribute Summary

Attributes inherited from Sender

#queue

Instance Method Summary collapse

Methods inherited from Sender

#recv

Constructor Details

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

Returns a new instance of Sender.



611
612
613
614
615
# File 'lib/logmerge/resolv.rb', line 611

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

Instance Method Details

#sendObject



617
618
619
# File 'lib/logmerge/resolv.rb', line 617

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