Changed max packet size

Prevents crash in Remote Desktop for packets bigger than 1MB
This commit is contained in:
MaxXor 2015-04-29 21:58:47 +02:00
parent d95672ea16
commit a08e002f84
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ public enum ReceiveType
public const uint KEEP_ALIVE_INTERVAL = 25000;
public const int HEADER_SIZE = 4;
public const int MAX_PACKET_SIZE = (1024*1024)*1; //1MB
public const int MAX_PACKET_SIZE = (1024*1024)*2; //2MB
private Socket _handle;
private int _typeIndex;

View File

@ -64,7 +64,7 @@ public enum ReceiveType
public const uint KEEP_ALIVE_INTERVAL = 25000;
public const int HEADER_SIZE = 4;
public const int MAX_PACKET_SIZE = (1024*1024)*1; //1MB
public const int MAX_PACKET_SIZE = (1024*1024)*2; //2MB
private Socket _handle;
private int _typeIndex;