summaryrefslogtreecommitdiff
path: root/src/net/tmwa/network.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-10-19 01:14:05 +0300
committerAndrei Karas <akaras@inbox.ru>2011-10-19 01:14:05 +0300
commit2b696349cc1d6289b21ff667ae92a79cf9cabd17 (patch)
treee1f8e49b1c61c62170afbf87ef9f159935163d29 /src/net/tmwa/network.cpp
parent990c96c992c4cf21173c904dd85f0b378e1c89b0 (diff)
downloadmanaplus-2b696349cc1d6289b21ff667ae92a79cf9cabd17.tar.gz
manaplus-2b696349cc1d6289b21ff667ae92a79cf9cabd17.tar.bz2
manaplus-2b696349cc1d6289b21ff667ae92a79cf9cabd17.tar.xz
manaplus-2b696349cc1d6289b21ff667ae92a79cf9cabd17.zip
Add to debug log number of sended and received bytes.
Diffstat (limited to 'src/net/tmwa/network.cpp')
-rw-r--r--src/net/tmwa/network.cpp2
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)
{