From e5b91442822df211f9f8277aaf0c40e1339810f3 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Tue, 18 Mar 2008 15:30:38 +0000 Subject: Formatting cleanup. --- OpenSim/Framework/Data/RegionProfileData.cs | 4 ++-- OpenSim/Framework/IScene.cs | 2 +- OpenSim/Framework/PacketPool.cs | 20 ++++++++++---------- 3 files changed, 13 insertions(+), 13 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/Data/RegionProfileData.cs b/OpenSim/Framework/Data/RegionProfileData.cs index 84713b4..96351e0 100644 --- a/OpenSim/Framework/Data/RegionProfileData.cs +++ b/OpenSim/Framework/Data/RegionProfileData.cs @@ -162,7 +162,7 @@ namespace OpenSim.Framework.Data simData.serverPort = Convert.ToUInt32((string) responseData["sim_port"]); simData.httpPort = Convert.ToUInt32((string) responseData["http_port"]); simData.remotingPort = Convert.ToUInt32((string) responseData["remoting_port"]); - simData.serverURI = (string)responseData["server_uri"]; + simData.serverURI = (string)responseData["server_uri"]; simData.httpServerURI = "http://" + simData.serverIP + ":" + simData.httpPort.ToString() + "/"; simData.UUID = new LLUUID((string) responseData["region_UUID"]); simData.regionName = (string) responseData["region_name"]; @@ -205,7 +205,7 @@ namespace OpenSim.Framework.Data simData.httpPort = Convert.ToUInt32((string) responseData["http_port"]); simData.remotingPort = Convert.ToUInt32((string) responseData["remoting_port"]); simData.httpServerURI = "http://" + simData.serverIP + ":" + simData.httpPort.ToString() + "/"; - simData.serverURI = (string)responseData["server_uri"]; + simData.serverURI = (string)responseData["server_uri"]; simData.UUID = new LLUUID((string) responseData["region_UUID"]); simData.regionName = (string) responseData["region_name"]; diff --git a/OpenSim/Framework/IScene.cs b/OpenSim/Framework/IScene.cs index cf2c129..869ca60 100644 --- a/OpenSim/Framework/IScene.cs +++ b/OpenSim/Framework/IScene.cs @@ -39,7 +39,7 @@ namespace OpenSim.Framework Up = 1, Crashed = 2, Starting = 3, - SlaveScene = 4 + SlaveScene = 4 }; public interface IScene 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 { public sealed class PacketPool { - static public void EncodeProxyMessage(byte[] bytes, ref int numBytes, EndPoint trueEP) - { - if( numBytes > 4090 ) // max UPD size = 4096 - { - throw new Exception("ERROR: No space to encode the proxy EP"); - } + static public void EncodeProxyMessage(byte[] bytes, ref int numBytes, EndPoint trueEP) + { + if( numBytes > 4090 ) // max UPD size = 4096 + { + throw new Exception("ERROR: No space to encode the proxy EP"); + } ushort port = (ushort) ((IPEndPoint) trueEP).Port; bytes[numBytes++] = (byte)(port % 256); @@ -55,10 +55,10 @@ namespace OpenSim.Framework DecodeProxyMessage(bytes, ref numBytes); numBytes = x; - } - - static public EndPoint DecodeProxyMessage(byte[] bytes, ref int numBytes) - { + } + + static public EndPoint DecodeProxyMessage(byte[] bytes, ref int numBytes) + { // IPv4 Only byte[] addr = new byte[4]; -- cgit v1.1