* | 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_config.h"
-#ifndef CONFIG_USE_IOCP
#include "inspircd.h"
-#ifndef WINDOWS
-#include <sys/select.h>
-#endif // WINDOWS
-
-#ifndef __SOCKETENGINE_SELECT__
-#define __SOCKETENGINE_SELECT__
+#include "socketengine.h"
-#include <vector>
-#include <string>
-#include <map>
#ifndef WINDOWS
#include <sys/select.h>
#endif // WINDOWS
-#include "inspircd.h"
-#include "socketengine.h"
/** A specialisation of the SocketEngine class, designed to use traditional select().
*/
virtual std::string GetName();
};
-#endif
-
-
-
SelectEngine::SelectEngine()
{
MAX_DESCRIPTORS = FD_SETSIZE;
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];
{
return new SelectEngine;
}
-#endif
\ No newline at end of file