reSIProcate/rutil  9694
Public Member Functions | Private Attributes
resip::DnsAAAARecord Class Reference

#include <DnsAAAARecord.hxx>

Inheritance diagram for resip::DnsAAAARecord:
Inheritance graph
[legend]
Collaboration diagram for resip::DnsAAAARecord:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DnsAAAARecord (const RROverlay &overlay)
virtual ~DnsAAAARecord ()
virtual const Dataname () const
virtual bool isSameValue (const Data &value) const
EncodeStream & dump (EncodeStream &strm) const

Private Attributes

union {
   char   pad [28]
}; 
Data mName

Detailed Description

Definition at line 19 of file DnsAAAARecord.hxx.


Constructor & Destructor Documentation

DnsAAAARecord::DnsAAAARecord ( const RROverlay overlay)

Definition at line 28 of file DnsAAAARecord.cxx.

References resip::RROverlay::data(), mName, resip::RROverlay::msg(), resip::RROverlay::msgLength(), name(), resip::RROverlay::nameLength(), and RRFIXEDSZ.

{
#ifdef USE_IPV6
   char* name = 0;
   long len = 0;
   ares_expand_name(overlay.data()-overlay.nameLength()-RRFIXEDSZ, overlay.msg(), overlay.msgLength(), &name, &len);
   mName = name;
   free(name);
   memcpy(&mAddr, overlay.data(), sizeof(in6_addr));
#else
   assert(0);
#endif
}

Here is the call graph for this function:

virtual resip::DnsAAAARecord::~DnsAAAARecord ( ) [inline, virtual]

Definition at line 23 of file DnsAAAARecord.hxx.

{}

Member Function Documentation

EncodeStream & DnsAAAARecord::dump ( EncodeStream &  strm) const [virtual]

Implements resip::DnsResourceRecord.

Definition at line 53 of file DnsAAAARecord.cxx.

References resip::DnsUtil::inet_ntop(), and mName.

{
#ifdef USE_IPV6
   strm << mName << " (AAAA) --> " << DnsUtil::inet_ntop(mAddr);
   return strm;
#else
   assert(0);
   strm <<  " (AAAA) --> ? (IPV6 is disabled in this library, what "
                                    "happened here?)";
   return strm;
#endif
}

Here is the call graph for this function:

bool DnsAAAARecord::isSameValue ( const Data value) const [virtual]

Implements resip::DnsResourceRecord.

Definition at line 42 of file DnsAAAARecord.cxx.

References resip::DnsUtil::inet_ntop().

{
#ifdef USE_IPV6
   return DnsUtil::inet_ntop(mAddr) == value;
#else
   assert(0);
   return false;
#endif
}

Here is the call graph for this function:

virtual const Data& resip::DnsAAAARecord::name ( ) const [inline, virtual]

Implements resip::DnsResourceRecord.

Definition at line 29 of file DnsAAAARecord.hxx.

References mName.

Referenced by DnsAAAARecord(), and resip::RRList::encodeRecordItem().

{ return mName; }

Member Data Documentation

union { ... } [private]

Definition at line 41 of file DnsAAAARecord.hxx.

Referenced by DnsAAAARecord(), dump(), and name().

Definition at line 39 of file DnsAAAARecord.hxx.


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