From 9485b52f97b10fa401891cc925ca732a7240214b Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sat, 3 May 2008 19:38:03 +0000 Subject: * Made 3Di LoadBalancerPlugin compatible with recent IClientNetworkServer changes. * It's slightly hackish in that it will not work with another client type, but LoadBalancerPlugin is very dependent on the LL Architecture and is unlikely to be useful with a different protocol anyway. --- ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs') diff --git a/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs b/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs index 7025877..4440db1 100644 --- a/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs +++ b/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs @@ -81,10 +81,9 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer if (proxyURL.Length == 0) return; StartTcpServer(); - // BUG: This needs to be fixed - // TODO: YARLY. - // LLClientView.SynchronizeClient = new LLClientView.SynchronizeClientHandler(SynchronizePackets); - AsynchronousSocketListener.PacketHandler = new AsynchronousSocketListener.PacketRecieveHandler(SynchronizePacketRecieve); + + LLClientView.SynchronizeClient = SynchronizePackets; + AsynchronousSocketListener.PacketHandler = SynchronizePacketRecieve; sceneManager = openSim.SceneManager; m_clientServers = openSim.ClientServers; @@ -495,8 +494,6 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer m_log.InfoFormat("[BALANCER] " + "region deserialized [{0}]", dst_region.RegionID); } - // BUG: This looks dodgy. Johan please look at this. - // Prevent nullreference on zero entry if (dst_region != null) { // deserialization of client data @@ -561,7 +558,6 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer AgentCircuitData agentdata = new AgentCircuitData(data.agentcircuit); scene.AuthenticateHandler.AddNewCircuit(circuit_code, agentdata); - // BUG: Will only work with LLUDPServer. // TODO: This needs to be abstracted and converted into IClientNetworkServer if (clientserv is LLUDPServer) { -- cgit v1.1