socketengine.h

Go to the documentation of this file.
00001 /*
00002  *
00003  * (C) 2003-2013 Anope Team
00004  * Contact us at team@anope.org
00005  *
00006  * Please read COPYING and README for further details.
00007  *
00008  * Based on the original code of Epona by Lara.
00009  * Based on the original code of Services by Andy Church.
00010  *
00011  */
00012 
00013 #ifndef SOCKETENGINE_H
00014 #define SOCKETENGINE_H
00015 
00016 #include "services.h"
00017 #include "sockets.h"
00018 
00019 class CoreExport SocketEngine
00020 {
00021         static const int DefaultSize = 2; // Uplink, mode stacker
00022  public:
00023         /* Map of sockets */
00024         static std::map<int, Socket *> Sockets;
00025 
00028         static void Init();
00029 
00032         static void Shutdown();
00033 
00039         static void Change(Socket *s, bool set, SocketFlag flag);
00040 
00043         static void Process();
00044 };
00045 
00046 #endif // SOCKETENGINE_H