Class: Resolv::DNS::Requester::UnconnectedUDP::Sender
Overview
:nodoc:
Instance Attribute Summary (collapse)
-
- (Object) data
readonly
Returns the value of attribute data.
Instance Method Summary (collapse)
-
- (Sender) initialize(msg, data, sock, host, port)
constructor
A new instance of Sender.
- - (Object) send
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 |