summaryrefslogtreecommitdiff
path: root/server/lobby.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/lobby.h')
-rw-r--r--server/lobby.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/server/lobby.h b/server/lobby.h
new file mode 100644
index 0000000..07ed13d
--- /dev/null
+++ b/server/lobby.h
@@ -0,0 +1,25 @@
+#ifndef LOBBY_H
+#define LOBBY_H
+
+#include <boost/asio.hpp>
+
+#include "tcpserver.h"
+
+class Lobby {
+ private:
+ boost::asio::io_service io_service;
+ TCPServer server;
+
+ //! Handle new connection.
+ void handle_connect(Connection::p connection);
+
+ //! Handle login.
+ void handle_login(Connection::p connection, Message::p msg);
+
+ public:
+ Lobby();
+
+ void run();
+};
+
+#endif