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

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

Overview

:nodoc:

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Sender) initialize(msg, data, sock, host, port)

A new instance of Sender



719
720
721
722
723
# File 'lib/resolv.rb', line 719

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

Instance Attribute Details

- (Object) data (readonly)

Returns the value of attribute data



724
725
726
# File 'lib/resolv.rb', line 724

def data
  @data
end

Instance Method Details

- (Object) send



726
727
728
# File 'lib/resolv.rb', line 726

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