|
reSIProcate/rutil
9694
|
#include <DnsAAAARecord.hxx>


Public Member Functions | |
| DnsAAAARecord (const RROverlay &overlay) | |
| virtual | ~DnsAAAARecord () |
| virtual const Data & | name () const |
| virtual bool | isSameValue (const Data &value) const |
| EncodeStream & | dump (EncodeStream &strm) const |
Private Attributes | |
| union { | |
| char pad [28] | |
| }; | |
| Data | mName |
Definition at line 19 of file DnsAAAARecord.hxx.
| 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
}

| virtual resip::DnsAAAARecord::~DnsAAAARecord | ( | ) | [inline, virtual] |
Definition at line 23 of file DnsAAAARecord.hxx.
{}
| 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
}

| 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
}

| 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; }
union { ... } [private] |
Data resip::DnsAAAARecord::mName [private] |
Definition at line 41 of file DnsAAAARecord.hxx.
Referenced by DnsAAAARecord(), dump(), and name().
| char resip::DnsAAAARecord::pad[28] |
Definition at line 39 of file DnsAAAARecord.hxx.
1.7.5.1