aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/PacketPool.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/PacketPool.cs')
-rw-r--r--OpenSim/Framework/PacketPool.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/OpenSim/Framework/PacketPool.cs b/OpenSim/Framework/PacketPool.cs
index 3f8697a..7b67f0b 100644
--- a/OpenSim/Framework/PacketPool.cs
+++ b/OpenSim/Framework/PacketPool.cs
@@ -34,12 +34,12 @@ namespace OpenSim.Framework
34{ 34{
35 public sealed class PacketPool 35 public sealed class PacketPool
36 { 36 {
37 static public void EncodeProxyMessage(byte[] bytes, ref int numBytes, EndPoint trueEP) 37 static public void EncodeProxyMessage(byte[] bytes, ref int numBytes, EndPoint trueEP)
38 { 38 {
39 if( numBytes > 4090 ) // max UPD size = 4096 39 if( numBytes > 4090 ) // max UPD size = 4096
40 { 40 {
41 throw new Exception("ERROR: No space to encode the proxy EP"); 41 throw new Exception("ERROR: No space to encode the proxy EP");
42 } 42 }
43 43
44 ushort port = (ushort) ((IPEndPoint) trueEP).Port; 44 ushort port = (ushort) ((IPEndPoint) trueEP).Port;
45 bytes[numBytes++] = (byte)(port % 256); 45 bytes[numBytes++] = (byte)(port % 256);
@@ -55,10 +55,10 @@ namespace OpenSim.Framework
55 DecodeProxyMessage(bytes, ref numBytes); 55 DecodeProxyMessage(bytes, ref numBytes);
56 56
57 numBytes = x; 57 numBytes = x;
58 } 58 }
59 59
60 static public EndPoint DecodeProxyMessage(byte[] bytes, ref int numBytes) 60 static public EndPoint DecodeProxyMessage(byte[] bytes, ref int numBytes)
61 { 61 {
62 // IPv4 Only 62 // IPv4 Only
63 byte[] addr = new byte[4]; 63 byte[] addr = new byte[4];
64 64