Yate
|
A DNS record. More...
#include <yateclass.h>
Public Member Functions | |
DnsRecord (int ttl, int order, int pref) | |
DnsRecord () | |
int | ttl () const |
int | order () const |
int | pref () const |
virtual void | dump (String &buf, const char *sep=" ") |
![]() | |
GenObject () | |
virtual | ~GenObject () |
virtual bool | alive () const |
virtual void | destruct () |
virtual const String & | toString () const |
virtual const String & | traceId () const |
virtual void * | getObject (const String &name) const |
NamedCounter * | getObjCounter () const |
NamedCounter * | setObjCounter (NamedCounter *counter) |
Static Public Member Functions | |
static bool | insert (ObjList &list, DnsRecord *rec, bool ascPref) |
![]() | |
static void * | getObject (const String &name, const GenObject *obj) |
static bool | getObjCounting () |
static void | setObjCounting (bool enable) |
static NamedCounter * | getObjCounter (const String &name, bool create=true) |
static ObjList & | getObjCounters () |
Protected Attributes | |
int | m_ttl |
int | m_order |
int | m_pref |
A DNS record.
This class holds a DNS (resolver) record
|
inline |
Build a DNS record
ttl | Record Time To Live |
order | Record order (priority) |
pref | Record preference |
|
inline |
Default constructor
|
virtual |
Dump a record for debug purposes
buf | Destination buffer |
sep | Fields separator |
Reimplemented in NaptrRecord, SrvRecord, and TxtRecord.
Insert a DnsRecord into a list in the proper location given by order and preference
list | Destination list |
rec | The item to insert |
ascPref | Order preference ascending |
|
inline |
Retrieve the record order
|
inline |
Retrieve the record preference
|
inline |
Retrieve the Time To Live