X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fmodules%2Fdns.h;h=aa6092788e35a55e87e466875c7b7346e2af5836;hb=b4a174ee9c32d62ea6bf010e837e8c5b1c3d36a3;hp=141951fd30911187ed16a69449f34a114df1ebdc;hpb=1bf7ca389426e196697eba9a8b60277db03fbedb;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/modules/dns.h b/include/modules/dns.h index 141951fd3..aa6092788 100644 --- a/include/modules/dns.h +++ b/include/modules/dns.h @@ -162,12 +162,12 @@ namespace DNS /* Use result cache if available */ bool use_cache; /* Request id */ - RequestId id; - /* Creator of this request */ + RequestId id; + /* Creator of this request */ Module* const creator; - Request(Manager* mgr, Module* mod, const std::string& addr, QueryType qt, bool usecache = true) - : Timer(ServerInstance->Config->ConfValue("dns")->getDuration("timeout", 5, 1)) + Request(Manager* mgr, Module* mod, const std::string& addr, QueryType qt, bool usecache = true, unsigned int timeout = 0) + : Timer(timeout ? timeout : ServerInstance->Config->ConfValue("dns")->getDuration("timeout", 5, 1)) , manager(mgr) , question(addr, qt) , use_cache(usecache) @@ -182,12 +182,12 @@ namespace DNS } /** Called when this request succeeds - * @param r The query sent back from the nameserver + * @param req The query sent back from the nameserver */ virtual void OnLookupComplete(const Query* req) = 0; /** Called when this request fails or times out. - * @param r The query sent back from the nameserver, check the error code. + * @param req The query sent back from the nameserver, check the error code. */ virtual void OnError(const Query* req) { }