summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol17x.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-16 19:37:46 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-16 19:37:46 +0100
commit3373daca2675617117ac60abb7dd3f6511916d2c (patch)
tree6339eb1d6f6682869dd96e46e392b43dfbe6209c /src/Protocol/Protocol17x.h
parentOBSOLETE'd obsolete functions (diff)
parentMerge pull request #548 from worktycho/documention (diff)
downloadcuberite-3373daca2675617117ac60abb7dd3f6511916d2c.tar
cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.tar.gz
cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.tar.bz2
cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.tar.lz
cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.tar.xz
cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.tar.zst
cuberite-3373daca2675617117ac60abb7dd3f6511916d2c.zip
Diffstat (limited to '')
-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);