diff options
author | Adam <Adam@anope.org> | 2011-04-26 19:13:51 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-05-16 04:08:47 -0400 |
commit | e7887c1f013248274574ab8e3167f742ccb3d69b (patch) | |
tree | f9f5959512b7129711f03156320ae0e46cabaec3 /include/socketengine.h | |
parent | 076ebafa1b4cc935c466c615b94eaac415af9a67 (diff) |
Unmodularized the socket engine because its causing problems and really is unnecessary
Diffstat (limited to 'include/socketengine.h')
-rw-r--r-- | include/socketengine.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/socketengine.h b/include/socketengine.h index 9ee94f399..05859eedb 100644 --- a/include/socketengine.h +++ b/include/socketengine.h @@ -12,47 +12,47 @@ #ifndef SOCKETENGINE_H #define SOCKETENGINE_H -class CoreExport SocketEngineBase +class CoreExport SocketEngine { - public: #ifdef _WIN32 /* Windows crap */ - WSADATA wsa; + static WSADATA wsa; #endif + public: /* Map of sockets */ - std::map<int, Socket *> Sockets; + static std::map<int, Socket *> Sockets; - /** Default constructor + /** Called to initialize the socket engine */ - SocketEngineBase(); + static void Init(); - /** Default destructor + /** Called to shutdown the socket engine */ - virtual ~SocketEngineBase(); + static void Shutdown(); /** Add a socket to the internal list * @param s The socket */ - virtual void AddSocket(Socket *s) { } + static void AddSocket(Socket *s); /** Delete a socket from the internal list * @param s The socket */ - virtual void DelSocket(Socket *s) { } + static void DelSocket(Socket *s); /** Mark a socket as writeable * @param s The socket */ - virtual void MarkWritable(Socket *s) { } + static void MarkWritable(Socket *s); /** Unmark a socket as writeable * @param s The socket */ - virtual void ClearWritable(Socket *s) { } + static void ClearWritable(Socket *s); /** Read from sockets and do things */ - virtual void Process() { } + static void Process(); }; #endif // SOCKETENGINE_H |