summaryrefslogtreecommitdiffstats
path: root/source/packets/cPacket_Handshake.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/packets/cPacket_Handshake.h')
-rw-r--r--source/packets/cPacket_Handshake.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/source/packets/cPacket_Handshake.h b/source/packets/cPacket_Handshake.h
index f9fd7c367..e66827851 100644
--- a/source/packets/cPacket_Handshake.h
+++ b/source/packets/cPacket_Handshake.h
@@ -1,17 +1,25 @@
+
#pragma once
#include "cPacket.h"
+
+
+
class cPacket_Handshake : public cPacket
{
public:
cPacket_Handshake() { m_PacketID = E_HANDSHAKE; }
virtual cPacket* Clone() const { return new cPacket_Handshake(*this); }
- virtual bool Parse(cSocket & a_Socket);
- virtual bool Send(cSocket & a_Socket);
+ virtual int Parse(const char * a_Data, int a_Size) override;
+ virtual void Serialize(AString & a_Data) const override;
std::string m_Username;
static const unsigned int c_Size = 3; // Minimal size
-}; \ No newline at end of file
+};
+
+
+
+