diff options
Diffstat (limited to '')
-rw-r--r-- | server/server.h | 24 |
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 |