From 8b32f42df825a03284f5c340499394b93dc1a65d Mon Sep 17 00:00:00 2001 From: Treeki Date: Tue, 21 Jan 2014 00:41:55 +0100 Subject: refactoring: add basic implementation of the IRCServer class --- client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client.cpp') diff --git a/client.cpp b/client.cpp index b4f76c5..9cbb889 100644 --- a/client.cpp +++ b/client.cpp @@ -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; -- cgit v1.2.3