16 #include "asyncdnshandler.h"
59 void resolve(
AsyncDNSHandler* adh,
const std::string& service,
const std::string& proto,
60 const std::string& domain,
const LogSink& logInstance,
void* context );
71 const LogSink& logInstance,
void* context )
72 {
resolve( adh,
"xmpp-client",
"tcp", domain, logInstance, context ); }
83 const LogSink& logInstance,
void* context );
95 const LogSink& logInstance,
void* context );
99 virtual void handleAsyncResolveResult(
const DNS::HostMap& hosts,
void* context );
102 virtual void handleAsyncConnectResult(
int fd,
void* context );
107 AsyncContext(
AsyncDNSHandler* adh,
void* ctx ) : handler( adh ), context( ctx ) {}
108 AsyncDNSHandler* handler;
112 typedef std::map<AsyncDNSWorker*, AsyncContext> WorkerMap;
113 typedef std::list<AsyncDNSWorker*> WorkerList;
115 WorkerList m_obsoleteWorkers;
117 util::Mutex m_workerMutex;
118 util::Mutex m_obsoleteWorkerMutex;
124 #endif // ASYNCDNS_H__