|
reSIProcate/rutil
9694
|
#include <sys/types.h>#include <time.h>#include "rutil/dns/AresDns.hxx"#include "rutil/GenericIPAddress.hxx"#include "AresCompat.hxx"#include "ares_private.h"#include "rutil/Logger.hxx"#include "rutil/DnsUtil.hxx"#include "rutil/WinLeakCheck.hxx"#include "rutil/FdPoll.hxx"#include <arpa/nameser.h>
Go to the source code of this file.
Classes | |
| class | resip::AresDnsPollItem |
Namespaces | |
| namespace | resip |
dcm! -- add UnusedChecking(_enum) below; | |
Defines | |
| #define | RESIPROCATE_SUBSYSTEM resip::Subsystem::DNS |
Functions | |
| void | resip_AresDns_aresCallback (void *arg, int status, unsigned char *abuf, int alen) |
| void | resip_AresDns_caresCallback (void *arg, int status, int timeouts, unsigned char *abuf, int alen) |
| #define RESIPROCATE_SUBSYSTEM resip::Subsystem::DNS |
Definition at line 31 of file AresDns.cxx.
| void resip_AresDns_aresCallback | ( | void * | arg, |
| int | status, | ||
| unsigned char * | abuf, | ||
| int | alen | ||
| ) |
Definition at line 657 of file AresDns.cxx.
References resip::AresDns::getHandler(), resip::ExternalDnsHandler::handleDnsRaw(), and resip::AresDns::makeRawResult().
Referenced by resip::AresDns::lookup(), and resip_AresDns_caresCallback().
{
#if defined(USE_CARES)
// If this is destruction, skip it. We do this here for completeness.
if(status == ARES_EDESTRUCTION)
{
return;
}
#endif
resip::AresDns::getHandler(arg)->handleDnsRaw(resip::AresDns::makeRawResult(arg, status, abuf, alen));
resip::AresDns::Payload* p = reinterpret_cast<resip::AresDns::Payload*>(arg);
delete p;
}

| void resip_AresDns_caresCallback | ( | void * | arg, |
| int | status, | ||
| int | timeouts, | ||
| unsigned char * | abuf, | ||
| int | alen | ||
| ) |
Definition at line 673 of file AresDns.cxx.
References resip_AresDns_aresCallback().
Referenced by resip::AresDns::lookup().
{
// Simply ignore the timeouts argument
return ::resip_AresDns_aresCallback(arg, status, abuf, alen);
}

1.7.5.1