|
Yate
|
A DNS record. More...
#include <yateclass.h>
Public Member Functions | |
| DnsRecord (int order, int pref) | |
| DnsRecord () | |
| int | order () const |
| int | pref () const |
| virtual void | dump (String &buf, const char *sep=" ") |
Static Public Member Functions | |
| static bool | insert (ObjList &list, DnsRecord *rec, bool ascPref) |
Protected Attributes | |
| int | m_order |
| int | m_pref |
A DNS record.
This class holds a DNS (resolver) record
| DnsRecord | ( | int | order, |
| int | pref | ||
| ) | [inline] |
Build a DNS record
| order | Record order (priority) |
| pref | Record preference |
| DnsRecord | ( | ) | [inline] |
Default constructor
Dump a record for debug purposes
| buf | Destination buffer |
| sep | Fields separator |
Reimplemented in NaptrRecord, and SrvRecord.
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 |
| int order | ( | ) | const [inline] |
Retrieve the record order
| int pref | ( | ) | const [inline] |
Retrieve the record preference
1.7.6.1