diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-02 12:21:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:55 +0300 |
commit | fe4f4d4e33ba04f05b9b316c9a262c5bd35e5b70 (patch) | |
tree | de81575c0c3889a4362b3ebcd9c65d4d1f54f28a /src/net/eathena/loginhandler.cpp | |
parent | 3f483c84d47d872b51406d841d92ac50f08a190c (diff) | |
download | manaverse-fe4f4d4e33ba04f05b9b316c9a262c5bd35e5b70.tar.gz manaverse-fe4f4d4e33ba04f05b9b316c9a262c5bd35e5b70.tar.bz2 manaverse-fe4f4d4e33ba04f05b9b316c9a262c5bd35e5b70.tar.xz manaverse-fe4f4d4e33ba04f05b9b316c9a262c5bd35e5b70.zip |
add packet comments into login handler.
Diffstat (limited to 'src/net/eathena/loginhandler.cpp')
-rw-r--r-- | src/net/eathena/loginhandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/eathena/loginhandler.cpp b/src/net/eathena/loginhandler.cpp index 00d6e3d40..d031a9f13 100644 --- a/src/net/eathena/loginhandler.cpp +++ b/src/net/eathena/loginhandler.cpp @@ -161,13 +161,13 @@ void LoginHandler::requestUpdateHosts() { MessageOut outMsg(CMSG_SEND_CLIENT_INFO); outMsg.writeInt8(CLIENT_PROTOCOL_VERSION); - outMsg.writeInt8(0); // unused + outMsg.writeInt8(0, "unused"); } void LoginHandler::processUpdateHost2(Net::MessageIn &msg) const { - const int len = msg.readInt16() - 4; - const std::string updateHost = msg.readString(len); + const int len = msg.readInt16("len") - 4; + const std::string updateHost = msg.readString(len, "host"); splitToStringVector(loginData.updateHosts, updateHost, '|'); FOR_EACH (StringVectIter, it, loginData.updateHosts) @@ -189,7 +189,7 @@ void LoginHandler::processUpdateHost2(Net::MessageIn &msg) const void LoginHandler::processLoginError2(Net::MessageIn &msg) const { - const uint32_t code = msg.readInt32(); + const uint32_t code = msg.readInt32("error"); logger->log("Login::error code: %u", code); switch (code) |