summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol17x.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-16 15:26:58 +0100
committermadmaxoft <github@xoft.cz>2014-01-16 15:26:58 +0100
commite29749b35edcadc4724997ad6ab90eb44d77e906 (patch)
treeca72403848c2c259309aed9161ced2261a82c863 /src/Protocol/Protocol17x.h
parentYet another attempt at VarArgs. (diff)
downloadcuberite-e29749b35edcadc4724997ad6ab90eb44d77e906.tar
cuberite-e29749b35edcadc4724997ad6ab90eb44d77e906.tar.gz
cuberite-e29749b35edcadc4724997ad6ab90eb44d77e906.tar.bz2
cuberite-e29749b35edcadc4724997ad6ab90eb44d77e906.tar.lz
cuberite-e29749b35edcadc4724997ad6ab90eb44d77e906.tar.xz
cuberite-e29749b35edcadc4724997ad6ab90eb44d77e906.tar.zst
cuberite-e29749b35edcadc4724997ad6ab90eb44d77e906.zip
Diffstat (limited to 'src/Protocol/Protocol17x.h')
-rw-r--r--src/Protocol/Protocol17x.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Protocol/Protocol17x.h b/src/Protocol/Protocol17x.h
index fd6b1fc0f..07dba834b 100644
--- a/src/Protocol/Protocol17x.h
+++ b/src/Protocol/Protocol17x.h
@@ -222,8 +222,10 @@ protected:
/// Adds the received (unencrypted) data to m_ReceivedData, parses complete packets
void AddReceivedData(const char * a_Data, int a_Size);
- /// Reads and handles the packet. The packet length and type have already been read.
- void HandlePacket(cByteBuffer & a_ByteBuffer, UInt32 a_PacketType);
+ /** Reads and handles the packet. The packet length and type have already been read.
+ Returns true if the packet was understood, false if it was an unknown packet
+ */
+ bool HandlePacket(cByteBuffer & a_ByteBuffer, UInt32 a_PacketType);
// Packet handlers while in the Status state (m_State == 1):
void HandlePacketStatusPing (cByteBuffer & a_ByteBuffer);