CL_DNSResourceRecord Class Reference
[clanNetwork Socket]

DNS resource record. More...

#include <dns_resource_record.h>

List of all members.

Public Member Functions

Construction

 CL_DNSResourceRecord ()
 ~CL_DNSResourceRecord ()
Attributes

CL_String get_name () const
 Get Name.
CL_String get_type () const
 Get Type.
CL_String get_class () const
 Get Class.
int get_ttl () const
 Get Ttl.
const CL_DNSPacketget_packet () const
int get_record_offset () const
 Get Record offset.
int get_rdata_offset () const
 Get Rdata offset.
int get_rdata_length () const
 Get Rdata length.
CL_String get_cname_cname () const
 Get Cname cname.
int get_mx_preference () const
 Get Mx preference.
CL_String get_mx_exchange () const
 Get Mx exchange.
CL_String get_ns_nsdname () const
 Get Ns nsdname.
CL_String get_ptr_ptrdname () const
 Get Ptr ptrdname.
CL_String get_soa_mname () const
 Get Soa mname.
CL_String get_soa_rname () const
 Get Soa rname.
unsigned int get_soa_serial () const
int get_soa_refresh () const
 Get Soa refresh.
int get_soa_retry () const
 Get Soa retry.
int get_soa_expire () const
 Get Soa expire.
unsigned int get_soa_minimum () const
unsigned int get_a_address () const
CL_String get_a_address_str () const
 Get A address str.
unsigned int get_wks_address () const
CL_String get_wks_address_str () const
 Get Wks address str.
unsigned char get_wks_protocol () const
CL_DataBuffer get_wks_bit_map () const
 Get Wks bit map.

Operation



void set_record (CL_DNSPacket packet, int record_offset)
 Set record.
static int type_to_int (const CL_String &qtype)
 Type to int.
static CL_String type_from_int (int qtype)
 Type from int.
static CL_String type_description (const CL_String &qtype)
 Type description.
static CL_String type_description (int qtype)
 Type description.
static int class_to_int (const CL_String &qclass)
 Class to int.
static CL_String class_from_int (int qclass)
 Class from int.
static CL_String class_description (const CL_String &qclass)
 Class description.
static CL_String class_description (int qclass)
 Class description.
static int find_domain_name_end (const CL_DataBuffer &packet, int offset)
 Find domain name end.
static CL_String read_domain_name (const CL_DataBuffer &packet, int offset)
 Read domain name.

Detailed Description

DNS resource record.


Constructor & Destructor Documentation

CL_DNSResourceRecord::CL_DNSResourceRecord (  ) 
CL_DNSResourceRecord::~CL_DNSResourceRecord (  ) 

Member Function Documentation

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

Class description.

Parameters:
qclass = String
Returns:
String
static CL_String CL_DNSResourceRecord::class_description ( int  qclass  )  [static]

Class description.

Parameters:
qclass = value
Returns:
String
static CL_String CL_DNSResourceRecord::class_from_int ( int  qclass  )  [static]

Class from int.

Parameters:
qclass = value
Returns:
String
static int CL_DNSResourceRecord::class_to_int ( const CL_String qclass  )  [static]

Class to int.

Parameters:
qclass = String
Returns:
int
static int CL_DNSResourceRecord::find_domain_name_end ( const CL_DataBuffer packet,
int  offset 
) [static]

Find domain name end.

Parameters:
packet = Data Buffer
offset = value
Returns:
int
unsigned int CL_DNSResourceRecord::get_a_address (  )  const
CL_String CL_DNSResourceRecord::get_a_address_str (  )  const

Get A address str.

Returns:
a_address_str
CL_String CL_DNSResourceRecord::get_class (  )  const

Get Class.

Returns:
class
CL_String CL_DNSResourceRecord::get_cname_cname (  )  const

Get Cname cname.

Returns:
cname_cname
CL_String CL_DNSResourceRecord::get_mx_exchange (  )  const

Get Mx exchange.

Returns:
mx_exchange
int CL_DNSResourceRecord::get_mx_preference (  )  const

Get Mx preference.

Returns:
mx_preference
CL_String CL_DNSResourceRecord::get_name (  )  const

Get Name.

Returns:
name
CL_String CL_DNSResourceRecord::get_ns_nsdname (  )  const

Get Ns nsdname.

Returns:
ns_nsdname
const CL_DNSPacket& CL_DNSResourceRecord::get_packet (  )  const
CL_String CL_DNSResourceRecord::get_ptr_ptrdname (  )  const

Get Ptr ptrdname.

Returns:
ptr_ptrdname
int CL_DNSResourceRecord::get_rdata_length (  )  const

Get Rdata length.

Returns:
rdata_length
int CL_DNSResourceRecord::get_rdata_offset (  )  const

Get Rdata offset.

Returns:
rdata_offset
int CL_DNSResourceRecord::get_record_offset (  )  const

Get Record offset.

Returns:
record_offset
int CL_DNSResourceRecord::get_soa_expire (  )  const

Get Soa expire.

Returns:
soa_expire
unsigned int CL_DNSResourceRecord::get_soa_minimum (  )  const
CL_String CL_DNSResourceRecord::get_soa_mname (  )  const

Get Soa mname.

Returns:
soa_mname
int CL_DNSResourceRecord::get_soa_refresh (  )  const

Get Soa refresh.

Returns:
soa_refresh
int CL_DNSResourceRecord::get_soa_retry (  )  const

Get Soa retry.

Returns:
soa_retry
CL_String CL_DNSResourceRecord::get_soa_rname (  )  const

Get Soa rname.

Returns:
soa_rname
unsigned int CL_DNSResourceRecord::get_soa_serial (  )  const
int CL_DNSResourceRecord::get_ttl (  )  const

Get Ttl.

Returns:
ttl
CL_String CL_DNSResourceRecord::get_type (  )  const

Get Type.

Returns:
type
unsigned int CL_DNSResourceRecord::get_wks_address (  )  const
CL_String CL_DNSResourceRecord::get_wks_address_str (  )  const

Get Wks address str.

Returns:
wks_address_str
CL_DataBuffer CL_DNSResourceRecord::get_wks_bit_map (  )  const

Get Wks bit map.

Returns:
wks_bit_map
unsigned char CL_DNSResourceRecord::get_wks_protocol (  )  const
static CL_String CL_DNSResourceRecord::read_domain_name ( const CL_DataBuffer packet,
int  offset 
) [static]

Read domain name.

Parameters:
packet = Data Buffer
offset = value
Returns:
String
void CL_DNSResourceRecord::set_record ( CL_DNSPacket  packet,
int  record_offset 
)

Set record.

Parameters:
packet = DNSPacket
record_offset = value
static CL_String CL_DNSResourceRecord::type_description ( int  qtype  )  [static]

Type description.

Parameters:
qtype = value
Returns:
String
static CL_String CL_DNSResourceRecord::type_description ( const CL_String qtype  )  [static]

Type description.

Parameters:
qtype = String
Returns:
String
static CL_String CL_DNSResourceRecord::type_from_int ( int  qtype  )  [static]

Type from int.

Parameters:
qtype = value
Returns:
String
static int CL_DNSResourceRecord::type_to_int ( const CL_String qtype  )  [static]

Type to int.

Parameters:
qtype = String
Returns:
int

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