diff options
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; } |