From fa93c0cf5434384aac5a75aa3cb3910d3f7679a6 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 30 Aug 2012 08:19:19 +0000 Subject: cProtocol handles the initial handshake up to player login git-svn-id: http://mc-server.googlecode.com/svn/trunk@804 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Protocol125.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/Protocol125.h') diff --git a/source/Protocol125.h b/source/Protocol125.h index c1b10bd52..db2b88833 100644 --- a/source/Protocol125.h +++ b/source/Protocol125.h @@ -42,7 +42,6 @@ public: virtual void SendEntRelMove (const cEntity & a_Entity, char a_RelX, char a_RelY, char a_RelZ) override; virtual void SendEntRelMoveLook (const cEntity & a_Entity, char a_RelX, char a_RelY, char a_RelZ) override; virtual void SendGameMode (eGameMode a_GameMode) override; - virtual void SendHandshake (const AString & a_ConnectionHash) override; virtual void SendHealth (void) override; virtual void SendInventoryProgress(char a_WindowID, short a_Progressbar, short a_Value) override; virtual void SendInventorySlot (int a_WindowID, short a_SlotNum, const cItem & a_Item) override; @@ -79,8 +78,13 @@ protected: cByteBuffer m_ReceivedData; //< Buffer for the received data + AString m_Username; //< Stored in ParseHandshake(), compared to Login username + virtual void SendData(const char * a_Data, int a_Size) override; + /// Sends the Handshake packet + void SendHandshake(const AString & a_ConnectionHash); + /// Parse the packet of the specified type from m_ReceivedData (switch into ParseXYZ() ) virtual int ParsePacket(unsigned char a_PacketType); -- cgit v1.2.3