diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-10-19 01:14:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-10-19 01:14:05 +0300 |
commit | 2b696349cc1d6289b21ff667ae92a79cf9cabd17 (patch) | |
tree | e1f8e49b1c61c62170afbf87ef9f159935163d29 /src/net | |
parent | 990c96c992c4cf21173c904dd85f0b378e1c89b0 (diff) | |
download | plus-2b696349cc1d6289b21ff667ae92a79cf9cabd17.tar.gz plus-2b696349cc1d6289b21ff667ae92a79cf9cabd17.tar.bz2 plus-2b696349cc1d6289b21ff667ae92a79cf9cabd17.tar.xz plus-2b696349cc1d6289b21ff667ae92a79cf9cabd17.zip |
Add to debug log number of sended and received bytes.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/tmwa/network.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<int>(mOutSize)) { setError("Error in SDLNet_TCP_Send(): " + @@ -427,6 +428,7 @@ void Network::receive() } else { + DEBUGLOG("Receive " + toString(ret) + " bytes"); mInSize += ret; if (mToSkip) { |