diff options
Diffstat (limited to 'include/socketengines/socketengine_select.h')
-rw-r--r-- | include/socketengines/socketengine_select.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/include/socketengines/socketengine_select.h b/include/socketengines/socketengine_select.h deleted file mode 100644 index 5a4aee86b..000000000 --- a/include/socketengines/socketengine_select.h +++ /dev/null @@ -1,55 +0,0 @@ -/* +------------------------------------+ - * | 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. - * - * --------------------------------------------------- - */ - -#ifndef __SOCKETENGINE_SELECT__ -#define __SOCKETENGINE_SELECT__ - -#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(). - */ -class SelectEngine : public SocketEngine -{ -public: - /** Create a new SelectEngine - */ - SelectEngine(); - /** Delete a SelectEngine - */ - virtual ~SelectEngine(); - virtual bool AddFd(EventHandler* eh, int event_mask); - virtual bool DelFd(EventHandler* eh, bool force = false); - void OnSetEvent(EventHandler* eh, int, int); - virtual int DispatchEvents(); - virtual std::string GetName(); -}; - -/** Creates a SocketEngine - */ -class SocketEngineFactory -{ -public: - /** Create a new instance of SocketEngine based on SelectEngine - */ - SocketEngine* Create() { return new SelectEngine; } -}; - -#endif |