Fixed an error in the netcode that would cause the client to d/c on partial packets. Set buffer size to 0xFFFF due to disconnect on really large packets (ie gm packet). Implemented support ticket packets.

This commit is contained in:
Filip Maj 2016-02-16 22:53:53 -05:00
parent cb4171f1fd
commit c6ac8b2f14
8 changed files with 131 additions and 7 deletions

View file

@ -19,12 +19,13 @@ namespace FFXIVClassic_Lobby_Server
//Connection stuff
public Blowfish blowfish;
public Socket socket;
public byte[] buffer = new byte[0xfffff];
public byte[] buffer;
private BlockingCollection<BasePacket> sendPacketQueue = new BlockingCollection<BasePacket>(1000);
public int lastPartialSize = 0;
//Instance Stuff
public uint owner = 0;
public uint connType = 0;
public int connType = 0;
public void queuePacket(BasePacket packet)
{
@ -46,7 +47,7 @@ namespace FFXIVClassic_Lobby_Server
BasePacket packet = sendPacketQueue.Take();
byte[] packetBytes = packet.getPacketBytes();
byte[] buffer = new byte[0xfffff];
byte[] buffer = new byte[0xFFFF];
Array.Copy(packetBytes, buffer, packetBytes.Length);
try
{