summaryrefslogtreecommitdiffstats
path: root/src/Protocol/ProtocolRecognizer.h
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-07-17 01:19:09 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2017-07-26 12:04:08 +0200
commite0a44fb3bc250197e30c5023fa53fc5c27a5cdcf (patch)
treebb7cd67afa2d70a0511f005c31560b591de06851 /src/Protocol/ProtocolRecognizer.h
parentUpdated armor cover calculation. (#3858) (diff)
downloadcuberite-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.h5
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);