summaryrefslogtreecommitdiff
path: root/src/net/eathena/loginhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-02 12:21:26 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:55 +0300
commitfe4f4d4e33ba04f05b9b316c9a262c5bd35e5b70 (patch)
treede81575c0c3889a4362b3ebcd9c65d4d1f54f28a /src/net/eathena/loginhandler.cpp
parent3f483c84d47d872b51406d841d92ac50f08a190c (diff)
downloadmanaplus-fe4f4d4e33ba04f05b9b316c9a262c5bd35e5b70.tar.gz
manaplus-fe4f4d4e33ba04f05b9b316c9a262c5bd35e5b70.tar.bz2
manaplus-fe4f4d4e33ba04f05b9b316c9a262c5bd35e5b70.tar.xz
manaplus-fe4f4d4e33ba04f05b9b316c9a262c5bd35e5b70.zip
add packet comments into login handler.
Diffstat (limited to 'src/net/eathena/loginhandler.cpp')
-rw-r--r--src/net/eathena/loginhandler.cpp8
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)