diff options
author | Treeki <treeki@gmail.com> | 2014-01-21 00:41:55 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2014-01-21 00:41:55 +0100 |
commit | 8b32f42df825a03284f5c340499394b93dc1a65d (patch) | |
tree | 88481b62ea3d9609d352857127d13ce3624fd9a2 /client.cpp | |
parent | 84e469bef68f67cd56c4a643dcfc9d050c5cd398 (diff) | |
download | bounce4-8b32f42df825a03284f5c340499394b93dc1a65d.tar.gz bounce4-8b32f42df825a03284f5c340499394b93dc1a65d.zip |
refactoring: add basic implementation of the IRCServer class
Diffstat (limited to 'client.cpp')
-rw-r--r-- | client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -166,12 +166,13 @@ void Client::handlePacket(Packet::Type type, char *data, int size) { if (!isNullSessionKey(reqKey)) { printf("[fd=%d] Trying to resume session...", sock); - printf("(last they received = %d, last we sent = %d)\n", lastReceivedByClient, nextPacketID - 1); + printf("(last they received = %d)\n", lastReceivedByClient); Client *other = netCore->findClientWithSessionKey(reqKey); printf("[fd=%d] Got client %p\n", sock, other); if (other && other->authState == AS_AUTHED) { + printf("Valid: last packet we sent = %d\n", other->nextPacketID - 1); // Yep, we can go! other->resumeSession(this, lastReceivedByClient); return; |