Yate
Public Member Functions | Static Public Member Functions | Protected Attributes
DnsRecord Class Reference

A DNS record. More...

#include <yateclass.h>

Inheritance diagram for DnsRecord:
GenObject NaptrRecord SrvRecord

List of all members.

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

Detailed Description

A DNS record.

This class holds a DNS (resolver) record


Constructor & Destructor Documentation

DnsRecord ( int  order,
int  pref 
) [inline]

Build a DNS record

Parameters:
orderRecord order (priority)
prefRecord preference
DnsRecord ( ) [inline]

Default constructor


Member Function Documentation

virtual void dump ( String buf,
const char *  sep = " " 
) [virtual]

Dump a record for debug purposes

Parameters:
bufDestination buffer
sepFields separator

Reimplemented in NaptrRecord, and SrvRecord.

static bool insert ( ObjList list,
DnsRecord rec,
bool  ascPref 
) [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 order ( ) const [inline]

Retrieve the record order

Returns:
Record order
int pref ( ) const [inline]

Retrieve the record preference

Returns:
Record preference

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