|
|
@@ -966,7 +966,8 @@ namespace ENet
|
|
|
{
|
|
|
public const uint maxChannelCount = 0xFF;
|
|
|
public const uint maxPeers = 0xFFF;
|
|
|
- public const uint maxPacketSize = 32 * 1024 * 1024;
|
|
|
+ public const uint maxPacketSize = 32 * 1024 * 1024;
|
|
|
+ public const uint throttleThreshold = 20; // Reasonable threshold to help reduce throttling.
|
|
|
public const uint throttleScale = 32;
|
|
|
public const uint throttleAcceleration = 2;
|
|
|
public const uint throttleDeceleration = 2;
|
|
|
@@ -974,7 +975,8 @@ namespace ENet
|
|
|
public const uint timeoutLimit = 32;
|
|
|
public const uint timeoutMinimum = 5000;
|
|
|
public const uint timeoutMaximum = 30000;
|
|
|
- public const uint version = (2 << 16) | (3 << 8) | (0);
|
|
|
+
|
|
|
+ public const uint version = (2 << 16) | (4 << 8) | (0);
|
|
|
|
|
|
public static bool Initialize()
|
|
|
{
|