summaryrefslogtreecommitdiffstats
path: root/source/ByteBuffer.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-04 21:06:46 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-04 21:06:46 +0200
commit5e5b87a18797967345d4933981c8500176de3870 (patch)
treedd0e84b9b709c760fe845a5f61580b94eebce4d9 /source/ByteBuffer.h
parentFixed a possible race condition in cClientHandle's packet sending code; prepared for moving cSocket out of cClientHandle's ownership. (diff)
downloadcuberite-5e5b87a18797967345d4933981c8500176de3870.tar
cuberite-5e5b87a18797967345d4933981c8500176de3870.tar.gz
cuberite-5e5b87a18797967345d4933981c8500176de3870.tar.bz2
cuberite-5e5b87a18797967345d4933981c8500176de3870.tar.lz
cuberite-5e5b87a18797967345d4933981c8500176de3870.tar.xz
cuberite-5e5b87a18797967345d4933981c8500176de3870.tar.zst
cuberite-5e5b87a18797967345d4933981c8500176de3870.zip
Diffstat (limited to '')
-rw-r--r--source/ByteBuffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/ByteBuffer.h b/source/ByteBuffer.h
index c0ffed43c..3981ab066 100644
--- a/source/ByteBuffer.h
+++ b/source/ByteBuffer.h
@@ -94,6 +94,9 @@ public:
/// Restarts next reading operation at the start of the ringbuffer
void ResetRead(void);
+ /// Re-reads the data that has been read since the last commit to the current readpos. Used by ProtoProxy to duplicate communication
+ void ReadAgain(AString & a_Out);
+
protected:
char * m_Buffer;
int m_BufferSize; // Total size of the ringbuffer