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

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Sender.



571
572
573
574
575
576
# File 'lib/resolv.rb', line 571

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

Instance Attribute Details

#queueObject (readonly)

Returns the value of attribute queue.



577
578
579
# File 'lib/resolv.rb', line 577

def queue
  @queue
end

Instance Method Details

#recv(msg) ⇒ Object



579
580
581
# File 'lib/resolv.rb', line 579

def recv(msg)
  @queue.push([msg, @data])
end