Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CL_DNSResourceRecord Class Reference

#include <dns_resource_record.h>

List of all members.

Public Member Functions

 CL_DNSResourceRecord ()
 Construction:.
 CL_DNSResourceRecord (const CL_DNSResourceRecord &other)
 ~CL_DNSResourceRecord ()
CL_String get_name () const
 Attributes:.
CL_String get_type () const
CL_String get_class () const
int get_ttl () const
const CL_ByteArrayget_packet () const
int get_record_offset () const
int get_rdata_offset () const
int get_rdata_length () const
CL_String get_cname_cname () const
int get_mx_preference () const
CL_String get_mx_exchange () const
CL_String get_ns_nsdname () const
CL_String get_ptr_ptrdname () const
CL_String get_soa_mname () const
CL_String get_soa_rname () const
unsigned int get_soa_serial () const
int get_soa_refresh () const
int get_soa_retry () const
int get_soa_expire () const
unsigned int get_soa_minimum () const
unsigned int get_wks_address () const
unsigned char get_wks_protocol () const
CL_ByteArray get_wks_bit_map () const
CL_DNSResourceRecordoperator= (const CL_DNSResourceRecord &other)
 Operation:.
void set_record (const CL_ByteArray &packet, int record_offset)

Static Public Member Functions

static int type_to_int (const CL_String &qtype)
static CL_String type_from_int (int qtype)
static CL_String type_description (const CL_String &qtype)
static CL_String type_description (int qtype)
static int class_to_int (const CL_String &qclass)
static CL_String class_from_int (int qclass)
static CL_String class_description (const CL_String &qclass)
static CL_String class_description (int qclass)
static int find_domain_name_end (const CL_ByteArray &packet, int offset)
static CL_String read_domain_name (const CL_ByteArray &packet, int offset)

Private Attributes

CL_ByteArray packet
 Implementation:.
int record_offset
int rdata_offset
int rdata_length


Constructor & Destructor Documentation

CL_DNSResourceRecord::CL_DNSResourceRecord  ) 
 

Construction:.

Definition at line 43 of file dns_resource_record.cpp.

CL_DNSResourceRecord::CL_DNSResourceRecord const CL_DNSResourceRecord other  ) 
 

Definition at line 48 of file dns_resource_record.cpp.

References packet, rdata_length, rdata_offset, and record_offset.

CL_DNSResourceRecord::~CL_DNSResourceRecord  ) 
 

Definition at line 57 of file dns_resource_record.cpp.


Member Function Documentation

CL_String CL_DNSResourceRecord::class_description int  qclass  )  [static]
 

Definition at line 411 of file dns_resource_record.cpp.

References CL_String, class_types, CL_StringHelp::int_to_text(), CL_StringHelp::local8_to_text(), and TEXT.

CL_String CL_DNSResourceRecord::class_description const CL_String &  qclass  )  [static]
 

Definition at line 400 of file dns_resource_record.cpp.

References CL_String, class_types, CL_StringHelp::local8_to_text(), TEXT, and CL_StringHelp::text_to_local8().

CL_String CL_DNSResourceRecord::class_from_int int  qclass  )  [static]
 

Definition at line 390 of file dns_resource_record.cpp.

References CL_String, class_types, CL_StringHelp::int_to_text(), and CL_StringHelp::local8_to_text().

Referenced by get_class().

int CL_DNSResourceRecord::class_to_int const CL_String &  qclass  )  [static]
 

Definition at line 375 of file dns_resource_record.cpp.

References class_types, CL_StringHelp::local8_to_int(), TEXT, CL_StringHelp::text_to_local8(), and ClassType::value.

int CL_DNSResourceRecord::find_domain_name_end const CL_ByteArray packet,
int  offset
[static]
 

Definition at line 424 of file dns_resource_record.cpp.

References CL_ByteArray::get_data(), CL_ByteArray::get_size(), packet, and TEXT.

Referenced by get_class(), get_soa_expire(), get_soa_minimum(), get_soa_refresh(), get_soa_retry(), get_soa_rname(), get_soa_serial(), get_ttl(), get_type(), CL_DNSResolver::perform_query(), and set_record().

CL_String CL_DNSResourceRecord::get_class  )  const
 

Definition at line 82 of file dns_resource_record.cpp.

References CL_String, class_from_int(), find_domain_name_end(), CL_ByteArray::get_data(), CL_ByteArray::get_size(), packet, record_offset, and TEXT.

CL_String CL_DNSResourceRecord::get_cname_cname  )  const
 

Definition at line 128 of file dns_resource_record.cpp.

References CL_String, packet, rdata_offset, and read_domain_name().

CL_String CL_DNSResourceRecord::get_mx_exchange  )  const
 

Definition at line 141 of file dns_resource_record.cpp.

References CL_String, packet, rdata_offset, and read_domain_name().

int CL_DNSResourceRecord::get_mx_preference  )  const
 

Definition at line 133 of file dns_resource_record.cpp.

References CL_ByteArray::get_data(), CL_ByteArray::get_size(), packet, rdata_offset, and TEXT.

CL_String CL_DNSResourceRecord::get_name  )  const
 

Attributes:.

Definition at line 64 of file dns_resource_record.cpp.

References CL_String, packet, read_domain_name(), and record_offset.

CL_String CL_DNSResourceRecord::get_ns_nsdname  )  const
 

Definition at line 146 of file dns_resource_record.cpp.

References CL_String, packet, rdata_offset, and read_domain_name().

const CL_ByteArray & CL_DNSResourceRecord::get_packet  )  const
 

Definition at line 108 of file dns_resource_record.cpp.

References packet.

CL_String CL_DNSResourceRecord::get_ptr_ptrdname  )  const
 

Definition at line 151 of file dns_resource_record.cpp.

References CL_String, packet, rdata_offset, and read_domain_name().

int CL_DNSResourceRecord::get_rdata_length  )  const
 

Definition at line 123 of file dns_resource_record.cpp.

References rdata_length.

int CL_DNSResourceRecord::get_rdata_offset  )  const
 

Definition at line 118 of file dns_resource_record.cpp.

References rdata_offset.

int CL_DNSResourceRecord::get_record_offset  )  const
 

Definition at line 113 of file dns_resource_record.cpp.

References record_offset.

int CL_DNSResourceRecord::get_soa_expire  )  const
 

Definition at line 197 of file dns_resource_record.cpp.

References find_domain_name_end(), CL_ByteArray::get_data(), CL_ByteArray::get_size(), packet, rdata_offset, and TEXT.

unsigned int CL_DNSResourceRecord::get_soa_minimum  )  const
 

Definition at line 207 of file dns_resource_record.cpp.

References find_domain_name_end(), CL_ByteArray::get_data(), CL_ByteArray::get_size(), packet, rdata_offset, and TEXT.

CL_String CL_DNSResourceRecord::get_soa_mname  )  const
 

Definition at line 156 of file dns_resource_record.cpp.

References CL_String, packet, rdata_offset, and read_domain_name().

int CL_DNSResourceRecord::get_soa_refresh  )  const
 

Definition at line 177 of file dns_resource_record.cpp.

References find_domain_name_end(), CL_ByteArray::get_data(), CL_ByteArray::get_size(), packet, rdata_offset, and TEXT.

int CL_DNSResourceRecord::get_soa_retry  )  const
 

Definition at line 187 of file dns_resource_record.cpp.

References find_domain_name_end(), CL_ByteArray::get_data(), CL_ByteArray::get_size(), packet, rdata_offset, and TEXT.

CL_String CL_DNSResourceRecord::get_soa_rname  )  const
 

Definition at line 161 of file dns_resource_record.cpp.

References CL_String, find_domain_name_end(), packet, rdata_offset, and read_domain_name().

unsigned int CL_DNSResourceRecord::get_soa_serial  )  const
 

Definition at line 167 of file dns_resource_record.cpp.

References find_domain_name_end(), CL_ByteArray::get_data(), CL_ByteArray::get_size(), packet, rdata_offset, and TEXT.

int CL_DNSResourceRecord::get_ttl  )  const
 

Definition at line 95 of file dns_resource_record.cpp.

References find_domain_name_end(), CL_ByteArray::get_data(), CL_ByteArray::get_size(), packet, record_offset, and TEXT.

CL_String CL_DNSResourceRecord::get_type  )  const
 

Definition at line 69 of file dns_resource_record.cpp.

References CL_String, find_domain_name_end(), CL_ByteArray::get_data(), CL_ByteArray::get_size(), packet, record_offset, TEXT, and type_from_int().

unsigned int CL_DNSResourceRecord::get_wks_address  )  const
 

Definition at line 217 of file dns_resource_record.cpp.

References CL_ByteArray::get_data(), CL_ByteArray::get_size(), packet, rdata_offset, and TEXT.

CL_ByteArray CL_DNSResourceRecord::get_wks_bit_map  )  const
 

Definition at line 233 of file dns_resource_record.cpp.

References CL_ByteArray::get_data(), packet, rdata_length, rdata_offset, and TEXT.

unsigned char CL_DNSResourceRecord::get_wks_protocol  )  const
 

Definition at line 225 of file dns_resource_record.cpp.

References CL_ByteArray::get_data(), CL_ByteArray::get_size(), packet, rdata_offset, and TEXT.

CL_DNSResourceRecord & CL_DNSResourceRecord::operator= const CL_DNSResourceRecord other  ) 
 

Operation:.

Definition at line 246 of file dns_resource_record.cpp.

References packet, rdata_length, rdata_offset, and record_offset.

CL_String CL_DNSResourceRecord::read_domain_name const CL_ByteArray packet,
int  offset
[static]
 

Definition at line 454 of file dns_resource_record.cpp.

References CL_String, CL_ByteArray::get_data(), CL_ByteArray::get_size(), packet, and TEXT.

Referenced by get_cname_cname(), get_mx_exchange(), get_name(), get_ns_nsdname(), get_ptr_ptrdname(), get_soa_mname(), and get_soa_rname().

void CL_DNSResourceRecord::set_record const CL_ByteArray packet,
int  record_offset
 

Definition at line 255 of file dns_resource_record.cpp.

References find_domain_name_end(), packet, rdata_length, rdata_offset, record_offset, and TEXT.

CL_String CL_DNSResourceRecord::type_description int  qtype  )  [static]
 

Definition at line 365 of file dns_resource_record.cpp.

References CL_String, CL_StringHelp::int_to_text(), CL_StringHelp::local8_to_text(), rr_types, and TEXT.

CL_String CL_DNSResourceRecord::type_description const CL_String &  qtype  )  [static]
 

Definition at line 354 of file dns_resource_record.cpp.

References CL_String, CL_StringHelp::local8_to_text(), rr_types, TEXT, and CL_StringHelp::text_to_local8().

CL_String CL_DNSResourceRecord::type_from_int int  qtype  )  [static]
 

Definition at line 344 of file dns_resource_record.cpp.

References CL_String, CL_StringHelp::int_to_text(), CL_StringHelp::local8_to_text(), and rr_types.

Referenced by get_type().

int CL_DNSResourceRecord::type_to_int const CL_String &  qtype  )  [static]
 

Definition at line 329 of file dns_resource_record.cpp.

References CL_StringHelp::local8_to_int(), rr_types, TEXT, CL_StringHelp::text_to_local8(), and RRType::value.


Member Data Documentation

CL_ByteArray CL_DNSResourceRecord::packet [private]
 

Implementation:.

Definition at line 120 of file dns_resource_record.h.

Referenced by CL_DNSResourceRecord(), find_domain_name_end(), get_class(), get_cname_cname(), get_mx_exchange(), get_mx_preference(), get_name(), get_ns_nsdname(), get_packet(), get_ptr_ptrdname(), get_soa_expire(), get_soa_minimum(), get_soa_mname(), get_soa_refresh(), get_soa_retry(), get_soa_rname(), get_soa_serial(), get_ttl(), get_type(), get_wks_address(), get_wks_bit_map(), get_wks_protocol(), operator=(), read_domain_name(), and set_record().

int CL_DNSResourceRecord::rdata_length [private]
 

Definition at line 126 of file dns_resource_record.h.

Referenced by CL_DNSResourceRecord(), get_rdata_length(), get_wks_bit_map(), operator=(), and set_record().

int CL_DNSResourceRecord::rdata_offset [private]
 

Definition at line 124 of file dns_resource_record.h.

Referenced by CL_DNSResourceRecord(), get_cname_cname(), get_mx_exchange(), get_mx_preference(), get_ns_nsdname(), get_ptr_ptrdname(), get_rdata_offset(), get_soa_expire(), get_soa_minimum(), get_soa_mname(), get_soa_refresh(), get_soa_retry(), get_soa_rname(), get_soa_serial(), get_wks_address(), get_wks_bit_map(), get_wks_protocol(), operator=(), and set_record().

int CL_DNSResourceRecord::record_offset [private]
 

Definition at line 122 of file dns_resource_record.h.

Referenced by CL_DNSResourceRecord(), get_class(), get_name(), get_record_offset(), get_ttl(), get_type(), operator=(), and set_record().


The documentation for this class was generated from the following files:
Generated on Sat Feb 19 22:51:17 2005 for npcore by  doxygen 1.4.1