|
|||
|
|||
|


Public Member Functions | |
| RequestTimeout (unsigned long n, InspIRCd *SI, DNSRequest *watching, int id) | |
| void | Tick (time_t TIME) |
| Called when the timer ticks. | |
Private Attributes | |
| InspIRCd * | ServerInstance |
| DNSRequest * | watch |
| int | watchid |
Definition at line 126 of file dns.cpp.
|
||||||||||||||||||||
|
Definition at line 132 of file dns.cpp. 00132 : InspTimer(n, time(NULL)), ServerInstance(SI), watch(watching), watchid(id) 00133 { 00134 }
|
|
|
Called when the timer ticks. You should override this method with some useful code to handle the tick event. Implements InspTimer. Definition at line 136 of file dns.cpp. References DNS::Classes, DELETE(), Resolver::OnError(), DNS::requests, InspIRCd::Res, RESOLVER_TIMEOUT, ServerInstance, watch, and watchid. 00137 { 00138 if (ServerInstance->Res->requests[watchid] == watch) 00139 { 00140 /* Still exists, whack it */ 00141 if (ServerInstance->Res->Classes[watchid]) 00142 { 00143 ServerInstance->Res->Classes[watchid]->OnError(RESOLVER_TIMEOUT, "Request timed out"); 00144 delete ServerInstance->Res->Classes[watchid]; 00145 ServerInstance->Res->Classes[watchid] = NULL; 00146 } 00147 ServerInstance->Res->requests[watchid] = NULL; 00148 DELETE(watch); 00149 return; 00150 } 00151 }
|
|
|
Definition at line 128 of file dns.cpp. Referenced by Tick(). |
|
|
Definition at line 129 of file dns.cpp. Referenced by Tick(). |
|
|
Definition at line 130 of file dns.cpp. Referenced by Tick(). |