| Public Member Functions | |
| DnsRR () | |
| constructor | |
| DnsRR (domainname NAME, u_int16 TYPE, u_int16 CLASS, u_int32 TTL) | |
| constructor taking some fields | |
| DnsRR (domainname NAME, u_int16 TYPE, u_int16 CLASS, u_int32 TTL, uint16_t RDLENGTH, const char *RDATA) | |
| constructor taking some fields | |
| DnsRR (const DnsRR &rr) | |
| copy constructor | |
| DnsRR & | operator= (const DnsRR &rr) | 
| assignment operator | |
| ~DnsRR () | |
| destructor | |
| Public Attributes | |
| domainname | NAME | 
| domain name | |
| u_int16 | TYPE | 
| RR type. | |
| u_int16 | CLASS | 
| class | |
| u_int32 | TTL | 
| time to live | |
| u_int16 | RDLENGTH | 
| length of RR data | |
| char * | RDATA | 
| RR data. | |
This class represents a resource record (RR), the fundamental building block of the DNS. A RR contains type-dependent information in its RDATA field, as well as some general information on the RR itself, such as its TTL.
Definition at line 199 of file dnsmessage.h.
| 
 | 
| constructor This is the default constructor. | 
| 
 | ||||||||||||||||||||
| constructor taking some fields This constructor sets the values of many of the class members, but not for the RR data. 
 | 
| 
 | ||||||||||||||||||||||||||||
| constructor taking some fields This constructor sets the values of all class members, including the RR data. 
 | 
| 
 | 
| copy constructor This constructor copies the given RR. It dynamically allocates its own copy of the RRs RDATA field. 
 | 
| 
 | 
| destructor Frees all memory associated with the RR, including the RDATA. | 
| 
 | 
| assignment operator The assignment operator works the same as the copy constructor. 
 | 
| 
 | 
| class The DNS class the RR is in. See DnsQuestion::QCLASS for a list, except that it can not be QCLASS_ALL in this case. Defaults to CLASS_IN. Definition at line 280 of file dnsmessage.h. | 
| 
 | 
| domain name The domain name the Resource Record is bound to. Defaults to the root domain. Definition at line 264 of file dnsmessage.h. | 
| 
 | 
| RR data. Binary data for the RR. Use the RR functions from rr.h to interpret this field. Automatically freed upon destruction. 
 Definition at line 304 of file dnsmessage.h. | 
| 
 | 
| length of RR data The length in bytes of the data pointed to by RDATA. Definition at line 295 of file dnsmessage.h. | 
| 
 | 
| time to live The time to live for the RR - that is, the time in seconds it may be stored in cache. Definition at line 288 of file dnsmessage.h. | 
| 
 | 
| RR type. The type of the RR. One of the constants defined in dnsdefs.h, for example DNS_TYPE_A or DNS_TYPE_MX (or the value of the rr_type.type field). Definition at line 272 of file dnsmessage.h. | 
 1.3.7
 1.3.7