EpcTools
An event based multi-threaded C++ development framework.
Public Member Functions | List of all members
DNS::Question Class Reference

Represents the question for the name server. More...

#include <dnsrecord.h>

Public Member Functions

 Question (const std::string &qname, ns_type qtype, ns_class qclass)
 Class constructor. More...
 
EStringgetQName ()
 Retrieves the query name of the requested resource. More...
 
ns_type getQType ()
 Retrieves the query type for the requested resource. More...
 
ns_class getQClass ()
 Retrieves the class of the query. More...
 
Void dump ()
 Prints the contents the stdout. More...
 

Detailed Description

Represents the question for the name server.

Constructor & Destructor Documentation

◆ Question()

DNS::Question::Question ( const std::string &  qname,
ns_type  qtype,
ns_class  qclass 
)
inline

Class constructor.

Parameters
qnamethe query name of the requested resource.
qtypethe query type for the requested resource.
qclassspecifies the class of the query.

Member Function Documentation

◆ dump()

Void DNS::Question::dump ( )
inline

Prints the contents the stdout.

◆ getQClass()

ns_class DNS::Question::getQClass ( )
inline

Retrieves the class of the query.

Returns
the class of the query.

◆ getQName()

EString& DNS::Question::getQName ( )
inline

Retrieves the query name of the requested resource.

Returns
the query name of the requested resource.

◆ getQType()

ns_type DNS::Question::getQType ( )
inline

Retrieves the query type for the requested resource.

Returns
the query type for the requested resource.

The documentation for this class was generated from the following file: