Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

DnsQuestion Class Reference

DNS question object. More...

List of all members.


Public Member Functions

  DnsQuestion ()
  constructor

  DnsQuestion (const DnsQuestion &q)
  copy constructor

DnsQuestion operator= (const DnsQuestion &q)
  assignment

  DnsQuestion (domainname QNAME, u_int16 QTYPE, u_int16 QCLASS=CLASS_IN)
  constructor

  ~DnsQuestion ()
  destructor


Public Attributes

domainname  QNAME
  query domain name

u_int16  QTYPE
  query type

u_int16  QCLASS
  query class


Detailed Description

DNS question object.

This object holds a DNS question object - an entry in the question section of a DNS message.

Definition at line 124 of file dnsmessage.h.


Constructor & Destructor Documentation

DnsQuestion::DnsQuestion  ) 
 

constructor

This is the default constructor.

DnsQuestion::DnsQuestion const DnsQuestion q  ) 
 

copy constructor

This constructor copies the given question.

Parameters:
q  Question to copy

DnsQuestion::DnsQuestion domainname  QNAME,
u_int16  QTYPE,
u_int16  QCLASS = CLASS_IN
 

constructor

This constructor takes values for the various fields of the question structure.

Parameters:
QNAME  Domain name to query
QTYPE  Type to query
QCLASS  Class the data is in (or CLASS_IN if none specified)

DnsQuestion::~DnsQuestion  ) 
 

destructor

Frees data associated with the object.


Member Function Documentation

DnsQuestion& DnsQuestion::operator= const DnsQuestion q  ) 
 

assignment

This is the assignment operator. It works in the same way as the copy constructor.


Member Data Documentation

u_int16 DnsQuestion::QCLASS
 

query class

The class to query. This is mainly historical, the only class that is used nowadays is CLASS_IN (the internet). Other values as CLASS_HS for Hesiod, CLASS_CH for chaos, and CLASS_CS for CSNET. The QCLASS_ANY constant means you don't care what class, but this is usually not supported. The list of constants can be found in the dnsdefs.h header.

Definition at line 189 of file dnsmessage.h.

domainname DnsQuestion::QNAME
 

query domain name

Domain name to query for.

Definition at line 170 of file dnsmessage.h.

u_int16 DnsQuestion::QTYPE
 

query type

The type of data to query for. This can be a RR type constant (for example, DNS_TYPE_A), or a QTYPE_* constant (for example, QTYPE_ANY). These constants can be found in the dnsdefs.h header.

Definition at line 179 of file dnsmessage.h.


The documentation for this class was generated from the following file:
Generated on Fri Dec 24 19:55:16 2004 for Poslib by doxygen 1.3.7