From 2b696349cc1d6289b21ff667ae92a79cf9cabd17 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 19 Oct 2011 01:14:05 +0300 Subject: Add to debug log number of sended and received bytes. --- src/net/tmwa/network.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/net/tmwa/network.cpp b/src/net/tmwa/network.cpp index 0af74c295..e26f48324 100644 --- a/src/net/tmwa/network.cpp +++ b/src/net/tmwa/network.cpp @@ -260,6 +260,7 @@ void Network::flush() SDL_mutexP(mMutex); ret = SDLNet_TCP_Send(mSocket, mOutBuffer, mOutSize); + DEBUGLOG("Send " + toString(mOutSize) + " bytes"); if (ret < static_cast(mOutSize)) { setError("Error in SDLNet_TCP_Send(): " + @@ -427,6 +428,7 @@ void Network::receive() } else { + DEBUGLOG("Receive " + toString(ret) + " bytes"); mInSize += ret; if (mToSkip) { -- cgit v1.2.3-70-g09d2