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

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



603
604
605
606
607
608
# File 'lib/net/dns/resolv.rb', line 603

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.



609
610
611
# File 'lib/net/dns/resolv.rb', line 609

def queue
  @queue
end

Instance Method Details

#recv(msg) ⇒ Object



611
612
613
# File 'lib/net/dns/resolv.rb', line 611

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