]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/socketengines/socketengine_select.cpp
Change more modules to VF_OPTCOMMON and assert identical charsets in m_nationalchars
[user/henk/code/inspircd.git] / src / socketengines / socketengine_select.cpp
index 98030d9c1007db5a7caf44a10eaac865cbf42730..7bff4ff6d08faede3f31a59d5dcad748490e6990 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  * ---------------------------------------------------
  */
 
-#include "inspircd.h"
-#ifndef WINDOWS
-#include <sys/select.h>
-#endif // WINDOWS
-/*       +------------------------------------+
- *       | Inspire Internet Relay Chat Daemon |
- *       +------------------------------------+
- *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://wiki.inspircd.org/Credits
- *
- * This program is free but copyrighted software; see
- *            the file COPYING for details.
- *
- * ---------------------------------------------------
- */
+#include "inspircd_config.h"
 
-#ifndef __SOCKETENGINE_SELECT__
-#define __SOCKETENGINE_SELECT__
+#include "inspircd.h"
+#include "socketengine.h"
 
-#include <vector>
-#include <string>
-#include <map>
 #ifndef WINDOWS
 #include <sys/select.h>
 #endif // WINDOWS
-#include "inspircd_config.h"
-#include "inspircd.h"
-#include "socketengine.h"
 
 /** A specialisation of the SocketEngine class, designed to use traditional select().
  */
@@ -59,10 +38,6 @@ public:
        virtual std::string GetName();
 };
 
-#endif
-
-
-
 SelectEngine::SelectEngine()
 {
        MAX_DESCRIPTORS = FD_SETSIZE;
@@ -125,7 +100,7 @@ int SelectEngine::DispatchEvents()
        FD_ZERO(&rfdset);
        FD_ZERO(&errfdset);
 
-       /* Populate the select FD sets (this is why select sucks compared to epoll, kqueue, IOCP) */
+       /* Populate the select FD sets (this is why select sucks compared to epoll, kqueue) */
        for (unsigned int i = 0; i < FD_SETSIZE; i++)
        {
                EventHandler* eh = ref[i];