#include <arpa/inet.h>
#include <string>
#include <deque>
+#include <sstream>
#include "inspircd_io.h"
#include "users.h"
#include "command_parse.h"
// some misc defines
-
#define ERROR -1
-#define TRUE 1
-#define FALSE 0
-#define MAXSOCKS 64
#define MAXCOMMAND 32
// crucial defines
// addition.
#define IS_SINGLE(x,y) ( (*x == y) && (*(x+1) == 0) )
+template<typename T> inline std::string ConvToStr(const T &in)
+{
+ std::stringstream tmp;
+ if (!(tmp << in)) return std::string();
+ return tmp.str();
+}
+
+
class serverstats
{
public:
};
+/* Miscellaneous stuff here, moved from inspircd_io.h */
+void Exit(int status);
+void Start();
+void SetSignals();
+bool DaemonSeed();
+void WritePID(const std::string &filename);
+
/* userrec optimization stuff */
void AddServerName(std::string servername);
const char* FindServerNamePtr(std::string servername);