summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e7db308d..ac45dee2 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -22,6 +22,8 @@
*/
#include "netsession.h"
+#include "connectionhandler.h"
+#include "accounthandler.h"
#include <SDL.h>
#include <SDL_net.h>
@@ -90,6 +92,13 @@ int main(int argc, char *argv[])
ConnectionHandler *connectionHandler = new ConnectionHandler();
NetSession *session = new NetSession();
+ // Note: This is just an idea, we could also pass the connection handler
+ // to the constructor of the account handler, upon which is would register
+ // itself for the messages it handles.
+ //
+ //AccountHandler *accountHandler = new AccountHandler();
+ //connectionHandler->registerHandler(C2S_LOGIN, accountHandler);
+
session->startListen(connectionHandler, SERVER_PORT);
SDL_Event event;