class DnsRecord

A DNS record. More...

Full nameTelEngine::DnsRecord
Definition#include <yateclass.h>
InheritsTelEngine::GenObject [public ]
Inherited byNaptrRecord, SrvRecord
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods

Protected Members


Detailed Description

This class holds a DNS (resolver) record

inline  DnsRecord (int order, int pref)

DnsRecord

Build a DNS record

Parameters:
orderRecord order (priority)
prefRecord preference

inline  DnsRecord ()

DnsRecord

Default constructor

inline int  order ()

order

[const]

Retrieve the record order

Returns: Record order

inline int  pref ()

pref

[const]

Retrieve the record preference

Returns: Record preference

void  dump (String& buf, const char* sep = " ")

dump

[virtual]

Dump a record for debug purposes

Parameters:
bufDestination buffer
sepFields separator

bool  insert (ObjList& list, DnsRecord* rec, bool ascPref)

insert

[static]

Insert a DnsRecord into a list in the proper location given by order and preference

Parameters:
listDestination list
recThe item to insert
ascPrefOrder preference ascending

Returns: True on success, false on failure (already in the list)

int m_order

m_order

[protected]

int m_pref

m_pref

[protected]


Generated by: paulc on bussard on Fri Dec 21 16:28:34 2012, using kdoc 2.0a54.