From 93f07a9fcef3c4b2df15d0f3bac3ea699fd5607e Mon Sep 17 00:00:00 2001 From: MW Date: Sun, 10 Jun 2007 12:01:09 +0000 Subject: --- OpenSim/OpenSim.World/World.cs | 22 ++++++++++++++++++---- OpenSim/OpenSim/OpenSimMain.cs | 3 +-- 2 files changed, 19 insertions(+), 6 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/OpenSim.World/World.cs b/OpenSim/OpenSim.World/World.cs index 7ef06e2..cc2b04e 100644 --- a/OpenSim/OpenSim.World/World.cs +++ b/OpenSim/OpenSim.World/World.cs @@ -523,7 +523,7 @@ namespace OpenSim.world protected void InformClientOfNeighbours(IClientAPI remoteClient) { // Console.WriteLine("informing client of neighbouring regions"); - List neighbours = this.commsManager.gridServer.RequestNeighbours(this.m_regInfo); + List neighbours = this.commsManager.RequestNeighbours(this.m_regInfo); //Console.WriteLine("we have " + neighbours.Count + " neighbouring regions"); if (neighbours != null) @@ -535,7 +535,7 @@ namespace OpenSim.world agent.BaseFolder = LLUUID.Zero; agent.InventoryFolder = LLUUID.Zero; agent.startpos = new LLVector3(128, 128, 70); - this.commsManager.gridServer.InformNeighbourOfChildAgent(neighbours[i].RegionHandle, agent); + this.commsManager.InformNeighbourOfChildAgent(neighbours[i].RegionHandle, agent); remoteClient.InformClientOfNeighbour(neighbours[i].RegionHandle, System.Net.IPAddress.Parse(neighbours[i].IPListenAddr), (ushort)neighbours[i].IPListenPort); } } @@ -591,18 +591,26 @@ namespace OpenSim.world #region RegionCommsHost + /// + /// + /// public void RegisterRegionWithComms() { - this.regionCommsHost = this.commsManager.gridServer.RegisterRegion(this.m_regInfo); + this.regionCommsHost = this.commsManager.RegisterRegion(this.m_regInfo); if (this.regionCommsHost != null) { this.regionCommsHost.OnExpectUser += new ExpectUserDelegate(this.NewUserConnection); } } + /// + /// + /// + /// + /// public void NewUserConnection(ulong regionHandle, AgentCircuitData agent) { - Console.WriteLine("World.cs - add new user connection"); + // Console.WriteLine("World.cs - add new user connection"); //should just check that its meant for this region if (regionHandle == this.m_regInfo.RegionHandle) { @@ -612,6 +620,12 @@ namespace OpenSim.world #endregion + /// + /// + /// + /// + /// + /// public override void SendLayerData(int px, int py, IClientAPI RemoteClient) { RemoteClient.SendLayerData( Terrain.getHeights1D() ); diff --git a/OpenSim/OpenSim/OpenSimMain.cs b/OpenSim/OpenSim/OpenSimMain.cs index 53adce9..a90e14b 100644 --- a/OpenSim/OpenSim/OpenSimMain.cs +++ b/OpenSim/OpenSim/OpenSimMain.cs @@ -104,7 +104,6 @@ namespace OpenSim this.checkServer = new CheckSumServer(12036); this.checkServer.ServerListener(); this.commsManager = new RegionServerCommsLocal(); - new RegionServerCommsOGS(); } else { @@ -132,7 +131,7 @@ namespace OpenSim loginServer = new LoginServer(regionData[0].IPListenAddr, regionData[0].IPListenPort, regionData[0].RegionLocX, regionData[0].RegionLocY, false); loginServer.Startup(); //loginServer.SetSessionHandler(((AuthenticateSessionsLocal)this.AuthenticateSessionsHandler[0]).AddNewSession); - loginServer.SetSessionHandler(((RegionServerCommsManager)this.commsManager).gridServer.AddNewSession); + loginServer.SetSessionHandler(((RegionServerCommsLocal)this.commsManager).AddNewSession); //sandbox mode with loginserver not using accounts httpServer.AddXmlRPCHandler("login_to_simulator", loginServer.XmlRpcLoginMethod); } -- cgit v1.1