mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-27 04:48:16 +02:00
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:
parent
cb4171f1fd
commit
c6ac8b2f14
8 changed files with 131 additions and 7 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue