Created empty TCPNetworkManager; needs work, I don't even like the name

This commit is contained in:
Kayne Ruse
2013-05-02 01:17:56 +10:00
parent 95f2d212ef
commit b935fcf1d1
7 changed files with 147 additions and 16 deletions
+26
View File
@@ -0,0 +1,26 @@
#include "server.hpp"
#include <stdexcept>
#include <iostream>
using namespace std;
int main(int, char**) {
#ifdef DEBUG
cout << "Beginning server" << endl;
#endif
Server app;
try {
app.Init();
app.Proc();
app.Quit();
}
catch(exception& e) {
cerr << "Fatal error: " << e.what() << endl;
return 1;
}
#ifdef DEBUG
cout << "Clean exit" << endl;
#endif
return 0;
}