From b5963ec28aa76b1a19699a3d06247af93aae6bf5 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 20 Nov 2008 23:26:11 +0100 Subject: Renabled the dynamic updates The update host can be optionally received from the server in a succesful login response or register response message. This change also merged Subversion commits 4425 and 4426: ........ r4425 | b_lindeijer | 2008-07-18 00:52:53 +0200 (Fri, 18 Jul 2008) | 3 lines -- Added support for handling the custom eAthena packet that sends the update host (patch by Sanga). ........ r4426 | b_lindeijer | 2008-07-18 01:08:17 +0200 (Fri, 18 Jul 2008) | 3 lines -- Remove possible trailing slash at the end of the update host, since otherwise there'll be two of them. --- src/net/loginhandler.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/net/loginhandler.h') diff --git a/src/net/loginhandler.h b/src/net/loginhandler.h index f557c97b..015d6383 100644 --- a/src/net/loginhandler.h +++ b/src/net/loginhandler.h @@ -24,12 +24,24 @@ #include "messagehandler.h" +class LoginData; + class LoginHandler : public MessageHandler { public: LoginHandler(); + void setLoginData(LoginData *loginData); + void handleMessage(MessageIn &msg); + + private: + void handleLoginResponse(MessageIn &msg); + void handleRegisterResponse(MessageIn &msg); + + void readUpdateHost(MessageIn &msg); + + LoginData *mLoginData; }; -#endif +#endif // _TMW_NET_LOGINHANDLER_H -- cgit v1.2.3-70-g09d2