summaryrefslogtreecommitdiffstats
path: root/ProtoProxy/Connection.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-12-27 08:11:37 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-12-27 08:11:37 +0100
commit025cdfb201ce8cb3c5616016b48803d62236e3de (patch)
tree0f3a30782ebfb9082c046c911b08846c52f72b9d /ProtoProxy/Connection.h
parentAdded flower pots (diff)
downloadcuberite-025cdfb201ce8cb3c5616016b48803d62236e3de.tar
cuberite-025cdfb201ce8cb3c5616016b48803d62236e3de.tar.gz
cuberite-025cdfb201ce8cb3c5616016b48803d62236e3de.tar.bz2
cuberite-025cdfb201ce8cb3c5616016b48803d62236e3de.tar.lz
cuberite-025cdfb201ce8cb3c5616016b48803d62236e3de.tar.xz
cuberite-025cdfb201ce8cb3c5616016b48803d62236e3de.tar.zst
cuberite-025cdfb201ce8cb3c5616016b48803d62236e3de.zip
Diffstat (limited to 'ProtoProxy/Connection.h')
-rw-r--r--ProtoProxy/Connection.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ProtoProxy/Connection.h b/ProtoProxy/Connection.h
index 7dc642042..54cc7ef71 100644
--- a/ProtoProxy/Connection.h
+++ b/ProtoProxy/Connection.h
@@ -140,6 +140,7 @@ protected:
bool HandleServerEntityStatus(void);
bool HandleServerEntityTeleport(void);
bool HandleServerEntityVelocity(void);
+ bool HandleServerIncrementStatistic(void);
bool HandleServerKeepAlive(void);
bool HandleServerKick(void);
bool HandleServerLogin(void);
@@ -172,6 +173,9 @@ protected:
/// Parses the metadata in a_Buffer into raw metadata in an AString; returns true if successful, false if not enough data
bool ParseMetadata(cByteBuffer & a_Buffer, AString & a_Metadata);
+ /// Logs the contents of the metadata in the AString, using Log(). Assumes a_Metadata is valid (parsed by ParseMetadata()). The log is indented by a_IndentCount spaces
+ void LogMetadata(const AString & a_Metadata, size_t a_IndentCount);
+
/// Send EKResp to the server:
void SendEncryptionKeyResponse(const AString & a_ServerPublicKey, const AString & a_Nonce);