Created server shell

This commit is contained in:
Kayne Ruse
2013-06-08 01:52:19 +10:00
parent a1b248d1d7
commit 253e9ec8fc
5 changed files with 101 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
#include "server_application.hpp"
#include <stdexcept>
#include <iostream>
using namespace std;
int main(int, char**) {
#ifdef DEBUG
cout << "Beginning server" << endl;
#endif
try {
ServerApplication app;
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;
}