* and returns true if the lookup was successfully initiated.
*/
bool ForwardLookup(std::string host);
+ /** Used by modules to perform a dns lookup but have the socket engine poll a module, instead of the dns object directly.
+ */
+ bool ForwardLookupWithFD(std::string host, int &fd);
/** This method will return true when the lookup is completed. It uses poll internally
* to determine the status of the socket.
*/
void SetNS(std::string dnsserver);
};
+/** This is the handler function for multi-threaded DNS.
+ * It cannot be a class member as pthread will not let us
+ * create a thread whos handler function is a member of
+ * a class (ugh).
+ */
+void* dns_task(void* arg);
+
#endif