2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
|
|
|
|
|
|
|
#include "cPacket_Handshake.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-17 06:18:07 -04:00
|
|
|
int cPacket_Handshake::Parse(cByteBuffer & a_Buffer)
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
|
|
|
int TotalBytes = 0;
|
2012-08-17 06:18:07 -04:00
|
|
|
HANDLE_PACKET_READ(ReadBEUTF16String16, m_Username, TotalBytes);
|
2012-06-14 09:06:06 -04:00
|
|
|
return TotalBytes;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void cPacket_Handshake::Serialize(AString & a_Data) const
|
|
|
|
{
|
|
|
|
AppendByte (a_Data, m_PacketID);
|
|
|
|
AppendString16(a_Data, m_Username);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|