diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-11-15 07:02:48 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-11-15 07:02:48 +0100 |
commit | 6f51fbfb06767000173647b57d0b755f4d02c247 (patch) | |
tree | 18c2f348c0bf0225f5b2e3e5343a4b54a420fbda /server/main.cpp | |
parent | 174ac25d9788e5604ae37cf9048e307a97bbdff8 (diff) |
Added Lobby class to server, serving as the master application class.
Diffstat (limited to 'server/main.cpp')
-rw-r--r-- | server/main.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
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 <iostream> -#include <boost/asio.hpp> +#include "lobby.h" -#include "tcpserver.h" +#include <iostream> 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; } |