From d50f30c3c49db3c2884c98bb634e21a1fac98729 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 4 Sep 2012 20:21:23 +0000 Subject: ProtoProxy: Parsing some initial packets early in the conversation git-svn-id: http://mc-server.googlecode.com/svn/trunk@834 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- ProtoProxy/Connection.h | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) (limited to 'ProtoProxy/Connection.h') 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); -- cgit v1.2.3