Anope IRC Services  Version 2.0
socketengine.h
Go to the documentation of this file.
1 /*
2  *
3  * (C) 2003-2014 Anope Team
4  * Contact us at team@anope.org
5  *
6  * Please read COPYING and README for further details.
7  *
8  * Based on the original code of Epona by Lara.
9  * Based on the original code of Services by Andy Church.
10  *
11  */
12 
13 #ifndef SOCKETENGINE_H
14 #define SOCKETENGINE_H
15 
16 #include "services.h"
17 #include "sockets.h"
18 
20 {
21  static const int DefaultSize = 2; // Uplink, mode stacker
22  public:
23  /* Map of sockets */
24  static std::map<int, Socket *> Sockets;
25 
28  static void Init();
29 
32  static void Shutdown();
33 
39  static void Change(Socket *s, bool set, SocketFlag flag);
40 
43  static void Process();
44 
45  static int GetLastError();
46  static void SetLastError(int);
47 
48  static bool IgnoreErrno();
49 };
50 
51 #endif // SOCKETENGINE_H
SocketFlag
Definition: sockets.h:124
void Init(int ac, char **av)
Definition: init.cpp:284
static std::map< int, Socket * > Sockets
Definition: socketengine.h:24
#define CoreExport
Definition: services.h:62
void Process(const Anope::string &)
Definition: process.cpp:19