diff options
author | peterbell10 <peterbell10@live.co.uk> | 2017-07-17 01:19:09 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2017-07-26 12:04:08 +0200 |
commit | e0a44fb3bc250197e30c5023fa53fc5c27a5cdcf (patch) | |
tree | bb7cd67afa2d70a0511f005c31560b591de06851 /src/Protocol/ProtocolRecognizer.h | |
parent | Updated armor cover calculation. (#3858) (diff) | |
download | cuberite-e0a44fb3bc250197e30c5023fa53fc5c27a5cdcf.tar cuberite-e0a44fb3bc250197e30c5023fa53fc5c27a5cdcf.tar.gz cuberite-e0a44fb3bc250197e30c5023fa53fc5c27a5cdcf.tar.bz2 cuberite-e0a44fb3bc250197e30c5023fa53fc5c27a5cdcf.tar.lz cuberite-e0a44fb3bc250197e30c5023fa53fc5c27a5cdcf.tar.xz cuberite-e0a44fb3bc250197e30c5023fa53fc5c27a5cdcf.tar.zst cuberite-e0a44fb3bc250197e30c5023fa53fc5c27a5cdcf.zip |
Diffstat (limited to 'src/Protocol/ProtocolRecognizer.h')
-rw-r--r-- | src/Protocol/ProtocolRecognizer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Protocol/ProtocolRecognizer.h b/src/Protocol/ProtocolRecognizer.h index 1a638fb21..32dcca940 100644 --- a/src/Protocol/ProtocolRecognizer.h +++ b/src/Protocol/ProtocolRecognizer.h @@ -143,8 +143,6 @@ public: virtual void SendData(const char * a_Data, size_t a_Size) override; - void SendPingStatusResponse(void); - protected: /** The recognized protocol */ cProtocol * m_Protocol; @@ -155,6 +153,9 @@ protected: /** Is a server list ping for an unrecognized version currently occuring? */ bool m_InPingForUnrecognizedVersion; + // Packet handlers while in status state (m_InPingForUnrecognizedVersion == true) + void HandlePacketStatusRequest(); + void HandlePacketStatusPing(); /** Tries to recognize protocol based on m_Buffer contents; returns true if recognized */ bool TryRecognizeProtocol(void); |