aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/PacketPool.cs
diff options
context:
space:
mode:
authorJeff Ames2008-03-18 15:30:38 +0000
committerJeff Ames2008-03-18 15:30:38 +0000
commite5b91442822df211f9f8277aaf0c40e1339810f3 (patch)
tree116ac977981e7bea0b7dd4c8f9cbad87e02c5b65 /OpenSim/Framework/PacketPool.cs
parent* Applying Mantis Patch #518.2 - State not persisted in MySQL DataStore (diff)
downloadopensim-SC-e5b91442822df211f9f8277aaf0c40e1339810f3.zip
opensim-SC-e5b91442822df211f9f8277aaf0c40e1339810f3.tar.gz
opensim-SC-e5b91442822df211f9f8277aaf0c40e1339810f3.tar.bz2
opensim-SC-e5b91442822df211f9f8277aaf0c40e1339810f3.tar.xz
Formatting cleanup.
Diffstat (limited to '')
-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