class Request
Manages a single DNS question message across one or more servers.
Definitions
def initialize(message, endpoint)
Create a new request for the given message and endpoint.
Encodes the message and stores it for later use.
Signature
-
parameter
message
Resolv::DNS::Message
The message to send.
-
parameter
endpoint
IO::Endpoint::Generic
The endpoint to send the message to.
Implementation
def initialize(message, endpoint)
@message = message
@packet = message.encode
@endpoint = endpoint
end
attr :message
Signature
-
attribute
Resolv::DNS::Message
The message to send.
attr :packet
Signature
-
attribute
String
The encoded message to send.