From 6f51fbfb06767000173647b57d0b755f4d02c247 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Mon, 15 Nov 2010 07:02:48 +0100 Subject: Added Lobby class to server, serving as the master application class. --- server/main.cpp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'server/main.cpp') diff --git a/server/main.cpp b/server/main.cpp index 3e311e5..207d6d6 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -1,18 +1,12 @@ -#include -#include +#include "lobby.h" -#include "tcpserver.h" +#include int main() { try { - boost::asio::io_service io_service; - - TCPServer server(io_service); - - std::cout << "Listening to port 12345" << std::endl; - - io_service.run(); - + Lobby lobby; + lobby.run(); + } catch(std::exception& e) { std::cerr << "Exception caught: " << e.what() << std::endl; } -- cgit v1.2.3