2 #include "../acl_cpp_define.hpp" 4 #include "../ipc/ipc_service.hpp" 5 #include "../stream/aio_handle.hpp" 6 #include "../stream/aio_delay_free.hpp" 15 dns_res(
const char* domain) : domain_(domain) {}
46 virtual void on_result(
const char* domain,
const dns_res& res) = 0;
73 dns_service(
int nthread = 1,
bool win32_gui =
false);
88 void on_result(
const dns_res& res);
96 #if defined(_WIN32) || defined(_WIN64) 104 virtual void win32_proc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
107 std::list<dns_result_callback*> callbacks_;
dns_result_callback(const char *domain)
dns_res(const char *domain)
virtual void destroy(void)
const string & get_domain() const
virtual ~dns_result_callback()