Browse Source

Add a constant field with a maximum packet size

NX 7 years ago
parent
commit
11290f1980
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/Managed/ENet.cs

+ 1 - 0
Source/Managed/ENet.cs

@@ -744,6 +744,7 @@ namespace ENet {
 	public static class Library {
 	public static class Library {
 		public const uint maxChannelCount = 0xFF;
 		public const uint maxChannelCount = 0xFF;
 		public const uint maxPeers = 0xFFF;
 		public const uint maxPeers = 0xFFF;
+		public const uint maxPacketSize = 32 * 1024 * 1024;
 		public const uint throttleScale = 32;
 		public const uint throttleScale = 32;
 		public const uint throttleAcceleration = 2;
 		public const uint throttleAcceleration = 2;
 		public const uint throttleDeceleration = 2;
 		public const uint throttleDeceleration = 2;