From b864f69ce98841fd54e2328b49e34b5be49525b8 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 12 Jul 2006 12:20:36 +0000 Subject: Added class Resolver (needs testing) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4353 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 61c59a6b5..66f15e872 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -240,6 +240,7 @@ InspIRCd::InspIRCd(int argc, char** argv) { this->Start(); module_sockets.clear(); + init_dns(); this->startup_time = time(NULL); srand(time(NULL)); log(DEBUG,"*** InspIRCd starting up!"); @@ -836,6 +837,15 @@ void InspIRCd::DoOneIteration(bool process_module_sockets) #endif break; + case X_ESTAB_CLASSDNS: + /* Handles instances of the Resolver class, + * a simple class extended by modules for + * nonblocking resolving of addresses. + */ + + dns_deal_with_classes(activefds[activefd]); + break; + case X_LISTEN: log(DEBUG,"Type: X_LISTEN_MODULE: fd=%d",activefds[activefd]); -- cgit v1.2.3