summaryrefslogtreecommitdiff
path: root/server/server.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-12-25 09:00:59 +0100
committerTreeki <treeki@gmail.com>2013-12-25 09:00:59 +0100
commitb7a8b597b00eedde277836eb8530ba742edcad5d (patch)
tree1b959fa0eec02ff4e22e168aa4379b2b64575ce3 /server/server.h
downloadbounce_qt-b7a8b597b00eedde277836eb8530ba742edcad5d.tar.gz
bounce_qt-b7a8b597b00eedde277836eb8530ba742edcad5d.zip
commit initial bitsHEADmaster
Diffstat (limited to '')
-rw-r--r--server/server.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/server/server.h b/server/server.h
new file mode 100644
index 0000000..5aab270
--- /dev/null
+++ b/server/server.h
@@ -0,0 +1,24 @@
+#ifndef SERVER_H
+#define SERVER_H
+
+#include "socket.h"
+
+class Server : public Socket
+{
+ Q_OBJECT
+public:
+ explicit Server(QObject *parent = 0);
+
+protected:
+ virtual void takeOverSocket(Socket *donor);
+ virtual void handlePacket(int type, PacketReader &reader);
+
+ void net_login(PacketReader &reader);
+ int attemptLogin(PacketReader &reader);
+ void sendLoginSuccess();
+
+ void net_consoleInput(const QString &string);
+ void sendConsoleOutput(const QString &string);
+};
+
+#endif // SERVER_H