mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-27 15:17:46 +00:00
39 lines
1 KiB
C#
39 lines
1 KiB
C#
![]() |
using FFXIVClassic.Common;
|
|||
|
using FFXIVClassic_World_Server.DataObjects;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.IO;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace FFXIVClassic_World_Server.Packets.WorldPackets.Receive
|
|||
|
{
|
|||
|
class SessionBeginConfirmPacket
|
|||
|
{
|
|||
|
public bool invalidPacket = false;
|
|||
|
public uint sessionId;
|
|||
|
public ushort errorCode;
|
|||
|
|
|||
|
public SessionBeginConfirmPacket(byte[] data)
|
|||
|
{
|
|||
|
using (MemoryStream mem = new MemoryStream(data))
|
|||
|
{
|
|||
|
using (BinaryReader binReader = new BinaryReader(mem))
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
sessionId = binReader.ReadUInt32();
|
|||
|
errorCode = binReader.ReadUInt16();
|
|||
|
}
|
|||
|
catch (Exception)
|
|||
|
{
|
|||
|
invalidPacket = true;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|