mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-15 08:54:38 +02:00
Changed folder from Proxy to World. Did some nlog configing.
This commit is contained in:
parent
364ab40b3f
commit
bd26a71fef
21 changed files with 32 additions and 24 deletions
36
FFXIVClassic World Server/Packets/Receive/HelloPacket.cs
Normal file
36
FFXIVClassic World Server/Packets/Receive/HelloPacket.cs
Normal file
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FFXIVClassic_World_Server.Packets.Receive
|
||||
{
|
||||
class HelloPacket
|
||||
{
|
||||
public bool invalidPacket = false;
|
||||
public uint sessionId;
|
||||
|
||||
public HelloPacket(byte[] data)
|
||||
{
|
||||
using (MemoryStream mem = new MemoryStream(data))
|
||||
{
|
||||
using (BinaryReader binReader = new BinaryReader(mem))
|
||||
{
|
||||
try
|
||||
{
|
||||
byte[] readIn = new byte[12];
|
||||
binReader.BaseStream.Seek(0x14, SeekOrigin.Begin);
|
||||
binReader.Read(readIn, 0, 12);
|
||||
sessionId = UInt32.Parse(Encoding.ASCII.GetString(readIn));
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
invalidPacket = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue