From 82b7374ed293d6ec3449922625e6c1e2e34cc5c5 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Thu, 16 Oct 2008 19:50:12 +0000 Subject: * minor: get rid of pointless ipeSender --- OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | 9 +++------ OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs | 6 +++++- OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 1 + 3 files changed, 9 insertions(+), 7 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs index 4abc0f7..20452e0 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs @@ -56,10 +56,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP protected IPEndPoint ServerIncoming; protected byte[] RecvBuffer = new byte[4096]; protected byte[] ZeroBuffer = new byte[8192]; - protected IPEndPoint ipeSender; /// - /// The endpoint of a sender of a particular packet. The port is continually changed by the various socket receive methods + /// The endpoint of a sender of a particular packet. The port is changed by the various socket receive methods /// protected EndPoint epSender; @@ -176,8 +175,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP /// protected virtual void OnReceivedData(IAsyncResult result) { - ipeSender = new IPEndPoint(listenIP, 0); - epSender = ipeSender; + epSender = new IPEndPoint(listenIP, 0); Packet packet = null; int numBytes = 1; @@ -418,8 +416,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP m_log.Info("[UDPSERVER]: UDP socket bound, getting ready to listen"); - ipeSender = new IPEndPoint(listenIP, 0); - epSender = ipeSender; + epSender = new IPEndPoint(listenIP, 0); ReceivedData = OnReceivedData; m_socket.BeginReceiveFrom(RecvBuffer, 0, RecvBuffer.Length, SocketFlags.None, ref epSender, ReceivedData, null); diff --git a/OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs b/OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs index 22a8f5a..ce7896e 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs @@ -27,12 +27,13 @@ using System.Net; using NUnit.Framework; +using OpenMetaverse.Packets; using OpenSim.Framework; using OpenSim.Framework.Communications; using OpenSim.Region.ClientStack; using OpenSim.Region.ClientStack.LindenUDP; -namespace OpenSim.Region.ClientStack.LindenUDP.Tests +namespace OpenSim.Region.ClientStack.LindenUDP { /// /// This will contain basic tests for the LindenUDP client stack @@ -47,6 +48,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests uint port = 666; llUdpServer.Initialise(null, ref port, -1, false, new ClientStackUserSettings(), null, null); + + UseCircuitCodePacket uccp = new UseCircuitCodePacket(); + //llUdpServer.epS } } } diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index 90285c2..2108c35 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs @@ -472,6 +472,7 @@ namespace OpenSim.Region.Physics.OdePlugin { if (g1 == IntPtr.Zero || g2 == IntPtr.Zero) return; + // Separating static prim geometry spaces. // We'll be calling near recursivly if one // of them is a space to find all of the -- cgit v1.1