reSIProcate/rutil  9694
Classes | Namespaces | Defines | Functions
AresDns.cxx File Reference
#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>
Include dependency graph for AresDns.cxx:

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 Documentation

#define RESIPROCATE_SUBSYSTEM   resip::Subsystem::DNS

Definition at line 31 of file AresDns.cxx.


Function Documentation

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

Here is the call graph for this function:

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

Here is the call graph for this function: