From 5e5b87a18797967345d4933981c8500176de3870 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 4 Sep 2012 19:06:46 +0000 Subject: Debugging in cByteBuffer::Write(); added the ReadAgain() method to allow ProtoProxy re-send the data it has parsed. git-svn-id: http://mc-server.googlecode.com/svn/trunk@833 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ByteBuffer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/ByteBuffer.h') 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 -- cgit v1.2.3