summaryrefslogtreecommitdiffstats
path: root/ProtoProxy/Connection.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-04 22:21:23 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-04 22:21:23 +0200
commitd50f30c3c49db3c2884c98bb634e21a1fac98729 (patch)
tree8380f10ee25fd5248735127dd97542b6666cf02b /ProtoProxy/Connection.h
parentDebugging in cByteBuffer::Write(); added the ReadAgain() method to allow ProtoProxy re-send the data it has parsed. (diff)
downloadcuberite-d50f30c3c49db3c2884c98bb634e21a1fac98729.tar
cuberite-d50f30c3c49db3c2884c98bb634e21a1fac98729.tar.gz
cuberite-d50f30c3c49db3c2884c98bb634e21a1fac98729.tar.bz2
cuberite-d50f30c3c49db3c2884c98bb634e21a1fac98729.tar.lz
cuberite-d50f30c3c49db3c2884c98bb634e21a1fac98729.tar.xz
cuberite-d50f30c3c49db3c2884c98bb634e21a1fac98729.tar.zst
cuberite-d50f30c3c49db3c2884c98bb634e21a1fac98729.zip
Diffstat (limited to 'ProtoProxy/Connection.h')
-rw-r--r--ProtoProxy/Connection.h29
1 files changed, 23 insertions, 6 deletions
diff --git a/ProtoProxy/Connection.h b/ProtoProxy/Connection.h
index 8022a293f..ee452624a 100644
--- a/ProtoProxy/Connection.h
+++ b/ProtoProxy/Connection.h
@@ -97,14 +97,31 @@ protected:
bool DecodeServersPackets(const char * a_Data, int a_Size);
// Packet handling, client-side:
- void HandleClientEncryptionKeyResponse(void);
- void HandleClientHandshake(void);
- void HandleClientPing(void);
+ bool HandleClientClientStatuses(void);
+ bool HandleClientEncryptionKeyResponse(void);
+ bool HandleClientHandshake(void);
+ bool HandleClientLocaleAndView(void);
+ bool HandleClientPing(void);
+ bool HandleClientPlayerPositionLook(void);
// Packet handling, server-side:
- void HandleServerEncryptionKeyRequest(void);
- void HandleServerEncryptionKeyResponse(void);
- void HandleServerKick(void);
+ bool HandleServerChatMessage(void);
+ bool HandleServerCompass(void);
+ bool HandleServerEncryptionKeyRequest(void);
+ bool HandleServerEncryptionKeyResponse(void);
+ bool HandleServerEntityEquipment(void);
+ bool HandleServerKeepAlive(void);
+ bool HandleServerKick(void);
+ bool HandleServerLogin(void);
+ bool HandleServerMapChunk(void);
+ bool HandleServerPlayerAbilities(void);
+ bool HandleServerPlayerListItem(void);
+ bool HandleServerPlayerPositionLook(void);
+ bool HandleServerTimeUpdate(void);
+ bool HandleServerWindowContents(void);
+
+ /// Parses the slot data in a_Buffer into item description; returns true if successful, false if not enough data
+ bool ParseSlot(cByteBuffer & a_Buffer, AString & a_ItemDesc);
/// Send EKResp to the server:
void SendEncryptionKeyResponse(const AString & a_ServerPublicKey, const AString & a_Nonce);