]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspircd.cpp
Add 'no such server' on remote stats to invalid name
[user/henk/code/inspircd.git] / src / inspircd.cpp
index 7b298418ef2e92c230c69fd002357bcbca08a54e..a34f438f9d0bb8d7b13be62353193a2df72b6ec6 100644 (file)
@@ -56,7 +56,6 @@
 #include "commands.h"
 #include "xline.h"
 #include "inspstring.h"
-#include "dnsqueue.h"
 #include "helperfuncs.h"
 #include "hashcomp.h"
 #include "socketengine.h"
@@ -818,11 +817,10 @@ void InspIRCd::DoOneIteration(bool process_module_sockets)
 
                        case X_ESTAB_DNS:
                                /* Handles instances of the Resolver class,
-                                * a simple class extended by modules for
+                                * a simple class extended by modules and the core for
                                 * nonblocking resolving of addresses.
                                 */
-
-                               dns_deal_with_classes(activefds[activefd]);
+                               this->Res->MarshallReads(activefds[activefd]);
                        break;
 
                        case X_LISTEN:
@@ -864,15 +862,17 @@ void InspIRCd::DoOneIteration(bool process_module_sockets)
                                        }
                                        stats->statsAccept++;
 #ifdef IPV6
+                                       log(DEBUG,"Add ipv6 client");
                                        AddClient(incomingSockfd, in_port, false, client.sin6_addr);
 #else
+                                       log(DEBUG,"Add ipv4 client");
                                        AddClient(incomingSockfd, in_port, false, client.sin_addr);
 #endif
-                                       log(DEBUG,"Adding client on port %lu fd=%lu",(unsigned long)in_port,(unsigned long)incomingSockfd);
+                                       log(DEBUG,"Adding client on port %d fd=%d",in_port,incomingSockfd);
                                }
                                else
                                {
-                                       log(DEBUG,"Accept failed on fd %lu: %s",(unsigned long)incomingSockfd,strerror(errno));
+                                       log(DEBUG,"Accept failed on fd %d: %s",incomingSockfd,strerror(errno));
                                        shutdown(incomingSockfd,2);
                                        close(incomingSockfd);
                                        stats->statsRefused++;
@@ -896,7 +896,7 @@ int InspIRCd::Run()
 {
        /* Until THIS point, ServerInstance == NULL */
        
-       init_dns();
+       this->Res = new DNS();
 
        LoadAllModules(this);