Cleaned up the 0x02 packet. It fires in response to the 0x2 packet sent by the client it seems.

This commit is contained in:
Filip Maj 2016-03-28 12:14:10 -04:00
parent a30311d12a
commit 4d57aa72a6
5 changed files with 38 additions and 5 deletions

View file

@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FFXIVClassic_Map_Server.packets.receive
{
class _0x02ReceivePacket
{
bool invalidPacket = false;
uint unknown;
public _0x02ReceivePacket(byte[] data)
{
using (MemoryStream mem = new MemoryStream(data))
{
using (BinaryReader binReader = new BinaryReader(mem))
{
try
{
binReader.BaseStream.Seek(0x14, SeekOrigin.Begin);
unknown = binReader.ReadUInt32();
}
catch (Exception)
{
invalidPacket = true;
}
}
}
}
}
}