diff options
author | madmaxoft <github@xoft.cz> | 2013-09-19 21:35:33 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-09-19 21:35:33 +0200 |
commit | d9494ccf1ea9178ce93dbb2374bddd221d8650e6 (patch) | |
tree | 2417af4dd107e6cb27e5c34331710e3f6a594e80 /Tools/ProtoProxy/Connection.cpp | |
parent | Added support for 1.6.3 and 1.6.4 protocols. (diff) | |
download | cuberite-d9494ccf1ea9178ce93dbb2374bddd221d8650e6.tar cuberite-d9494ccf1ea9178ce93dbb2374bddd221d8650e6.tar.gz cuberite-d9494ccf1ea9178ce93dbb2374bddd221d8650e6.tar.bz2 cuberite-d9494ccf1ea9178ce93dbb2374bddd221d8650e6.tar.lz cuberite-d9494ccf1ea9178ce93dbb2374bddd221d8650e6.tar.xz cuberite-d9494ccf1ea9178ce93dbb2374bddd221d8650e6.tar.zst cuberite-d9494ccf1ea9178ce93dbb2374bddd221d8650e6.zip |
Diffstat (limited to 'Tools/ProtoProxy/Connection.cpp')
-rw-r--r-- | Tools/ProtoProxy/Connection.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Tools/ProtoProxy/Connection.cpp b/Tools/ProtoProxy/Connection.cpp index e985c2ff6..aa4dde977 100644 --- a/Tools/ProtoProxy/Connection.cpp +++ b/Tools/ProtoProxy/Connection.cpp @@ -15,7 +15,14 @@ -#ifdef _DEBUG +/// When defined, the following macro causes a sleep after each parsed packet (DEBUG-mode only) +// #define SLEEP_AFTER_PACKET + + + + + +#if defined(_DEBUG) && defined(SLEEP_AFTER_PACKET) #define DebugSleep Sleep #else #define DebugSleep(X) @@ -299,7 +306,7 @@ void cConnection::Run(void) Log("Cannot connect to server; aborting"); return; } - + while (true) { fd_set ReadFDs; |