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/PacketPool.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'OpenSim/Framework/PacketPool.cs') 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