aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authormingchen2007-06-09 21:04:13 +0000
committermingchen2007-06-09 21:04:13 +0000
commitfa8f143aec69e36ee90fb34e2f144733b66ca951 (patch)
tree9442f049f83b4ea1cb89f9205aa07fd375c84594 /OpenSim
parentNumber of small changes. (diff)
downloadopensim-SC-fa8f143aec69e36ee90fb34e2f144733b66ca951.zip
opensim-SC-fa8f143aec69e36ee90fb34e2f144733b66ca951.tar.gz
opensim-SC-fa8f143aec69e36ee90fb34e2f144733b66ca951.tar.bz2
opensim-SC-fa8f143aec69e36ee90fb34e2f144733b66ca951.tar.xz
*Reorganized RegionServerCommsManager for OGS and local support
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj8
-rw-r--r--OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build4
-rw-r--r--OpenSim/OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.csproj4
-rw-r--r--OpenSim/OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.dll.build2
-rw-r--r--OpenSim/OpenSim.World/OpenSim.World.csproj22
-rw-r--r--OpenSim/OpenSim.World/World.cs6
-rw-r--r--OpenSim/OpenSim/OpenSimMain.cs6
7 files changed, 26 insertions, 26 deletions
diff --git a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj
index fa91d7d..2fc6516 100644
--- a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj
+++ b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj
@@ -145,10 +145,10 @@
145 <Compile Include="ClientView.Grid.cs"> 145 <Compile Include="ClientView.Grid.cs">
146 <SubType>Code</SubType> 146 <SubType>Code</SubType>
147 </Compile> 147 </Compile>
148 <Compile Include="ClientView.PacketHandlers.cs"> 148 <Compile Include="PacketServer.cs">
149 <SubType>Code</SubType> 149 <SubType>Code</SubType>
150 </Compile> 150 </Compile>
151 <Compile Include="ClientView.ProcessPackets.cs"> 151 <Compile Include="ClientView.PacketHandlers.cs">
152 <SubType>Code</SubType> 152 <SubType>Code</SubType>
153 </Compile> 153 </Compile>
154 <Compile Include="VersionInfo.cs"> 154 <Compile Include="VersionInfo.cs">
@@ -169,10 +169,10 @@
169 <Compile Include="ClientView.cs"> 169 <Compile Include="ClientView.cs">
170 <SubType>Code</SubType> 170 <SubType>Code</SubType>
171 </Compile> 171 </Compile>
172 <Compile Include="PacketServer.cs"> 172 <Compile Include="ClientView.API.cs">
173 <SubType>Code</SubType> 173 <SubType>Code</SubType>
174 </Compile> 174 </Compile>
175 <Compile Include="ClientView.API.cs"> 175 <Compile Include="ClientView.ProcessPackets.cs">
176 <SubType>Code</SubType> 176 <SubType>Code</SubType>
177 </Compile> 177 </Compile>
178 <Compile Include="CAPS\AdminWebFront.cs"> 178 <Compile Include="CAPS\AdminWebFront.cs">
diff --git a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build
index fc33eb9..c988025 100644
--- a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build
+++ b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build
@@ -18,16 +18,16 @@
18 <include name="OpenSimNetworkHandler.cs" /> 18 <include name="OpenSimNetworkHandler.cs" />
19 <include name="UserConfigUtility.cs" /> 19 <include name="UserConfigUtility.cs" />
20 <include name="ClientView.Grid.cs" /> 20 <include name="ClientView.Grid.cs" />
21 <include name="PacketServer.cs" />
21 <include name="ClientView.PacketHandlers.cs" /> 22 <include name="ClientView.PacketHandlers.cs" />
22 <include name="ClientView.ProcessPackets.cs" />
23 <include name="VersionInfo.cs" /> 23 <include name="VersionInfo.cs" />
24 <include name="AgentAssetUpload.cs" /> 24 <include name="AgentAssetUpload.cs" />
25 <include name="ClientViewBase.cs" /> 25 <include name="ClientViewBase.cs" />
26 <include name="RegionServerBase.cs" /> 26 <include name="RegionServerBase.cs" />
27 <include name="CommsManager.cs" /> 27 <include name="CommsManager.cs" />
28 <include name="ClientView.cs" /> 28 <include name="ClientView.cs" />
29 <include name="PacketServer.cs" />
30 <include name="ClientView.API.cs" /> 29 <include name="ClientView.API.cs" />
30 <include name="ClientView.ProcessPackets.cs" />
31 <include name="CAPS/AdminWebFront.cs" /> 31 <include name="CAPS/AdminWebFront.cs" />
32 <include name="Assets/InventoryCache.cs" /> 32 <include name="Assets/InventoryCache.cs" />
33 <include name="Assets/AssetCache.cs" /> 33 <include name="Assets/AssetCache.cs" />
diff --git a/OpenSim/OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.csproj b/OpenSim/OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.csproj
index 7d90947..af8285b 100644
--- a/OpenSim/OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.csproj
+++ b/OpenSim/OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.csproj
@@ -96,10 +96,10 @@
96 <Compile Include="MapStorage.cs"> 96 <Compile Include="MapStorage.cs">
97 <SubType>Code</SubType> 97 <SubType>Code</SubType>
98 </Compile> 98 </Compile>
99 <Compile Include="UUIDPrimQuery.cs"> 99 <Compile Include="UUIDParcelQuery.cs">
100 <SubType>Code</SubType> 100 <SubType>Code</SubType>
101 </Compile> 101 </Compile>
102 <Compile Include="UUIDParcelQuery.cs"> 102 <Compile Include="UUIDPrimQuery.cs">
103 <SubType>Code</SubType> 103 <SubType>Code</SubType>
104 </Compile> 104 </Compile>
105 <Compile Include="Db4LocalStorage.cs"> 105 <Compile Include="Db4LocalStorage.cs">
diff --git a/OpenSim/OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.dll.build b/OpenSim/OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.dll.build
index 9789712..72aac2a 100644
--- a/OpenSim/OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.dll.build
+++ b/OpenSim/OpenSim.Storage/LocalStorageDb4o/OpenSim.Storage.LocalStorageDb4o.dll.build
@@ -13,8 +13,8 @@
13 <sources failonempty="true"> 13 <sources failonempty="true">
14 <include name="AssemblyInfo.cs" /> 14 <include name="AssemblyInfo.cs" />
15 <include name="MapStorage.cs" /> 15 <include name="MapStorage.cs" />
16 <include name="UUIDPrimQuery.cs" />
17 <include name="UUIDParcelQuery.cs" /> 16 <include name="UUIDParcelQuery.cs" />
17 <include name="UUIDPrimQuery.cs" />
18 <include name="Db4LocalStorage.cs" /> 18 <include name="Db4LocalStorage.cs" />
19 </sources> 19 </sources>
20 <references basedir="${project::get-base-directory()}"> 20 <references basedir="${project::get-base-directory()}">
diff --git a/OpenSim/OpenSim.World/OpenSim.World.csproj b/OpenSim/OpenSim.World/OpenSim.World.csproj
index 90e455a..f2fb596 100644
--- a/OpenSim/OpenSim.World/OpenSim.World.csproj
+++ b/OpenSim/OpenSim.World/OpenSim.World.csproj
@@ -130,33 +130,33 @@
130 </ProjectReference> 130 </ProjectReference>
131 </ItemGroup> 131 </ItemGroup>
132 <ItemGroup> 132 <ItemGroup>
133 <Compile Include="Avatar.Client.cs">
134 <SubType>Code</SubType>
135 </Compile>
136 <Compile Include="Entity.cs"> 133 <Compile Include="Entity.cs">
137 <SubType>Code</SubType> 134 <SubType>Code</SubType>
138 </Compile> 135 </Compile>
139 <Compile Include="World.PacketHandlers.cs"> 136 <Compile Include="World.PacketHandlers.cs">
140 <SubType>Code</SubType> 137 <SubType>Code</SubType>
141 </Compile> 138 </Compile>
142 <Compile Include="AvatarAnimations.cs"> 139 <Compile Include="WorldBase.cs">
143 <SubType>Code</SubType> 140 <SubType>Code</SubType>
144 </Compile> 141 </Compile>
145 <Compile Include="SceneObject.cs"> 142 <Compile Include="SceneObject.cs">
146 <SubType>Code</SubType> 143 <SubType>Code</SubType>
147 </Compile> 144 </Compile>
148 <Compile Include="Primitive.cs">
149 <SubType>Code</SubType>
150 </Compile>
151 <Compile Include="World.Scripting.cs"> 145 <Compile Include="World.Scripting.cs">
152 <SubType>Code</SubType> 146 <SubType>Code</SubType>
153 </Compile> 147 </Compile>
154 <Compile Include="WorldBase.cs"> 148 <Compile Include="Avatar.Client.cs">
155 <SubType>Code</SubType> 149 <SubType>Code</SubType>
156 </Compile> 150 </Compile>
157 <Compile Include="Avatar.Update.cs"> 151 <Compile Include="Avatar.Update.cs">
158 <SubType>Code</SubType> 152 <SubType>Code</SubType>
159 </Compile> 153 </Compile>
154 <Compile Include="AvatarAnimations.cs">
155 <SubType>Code</SubType>
156 </Compile>
157 <Compile Include="Primitive.cs">
158 <SubType>Code</SubType>
159 </Compile>
160 <Compile Include="Avatar.cs"> 160 <Compile Include="Avatar.cs">
161 <SubType>Code</SubType> 161 <SubType>Code</SubType>
162 </Compile> 162 </Compile>
@@ -166,6 +166,9 @@
166 <Compile Include="World.cs"> 166 <Compile Include="World.cs">
167 <SubType>Code</SubType> 167 <SubType>Code</SubType>
168 </Compile> 168 </Compile>
169 <Compile Include="Estate\EstateManager.cs">
170 <SubType>Code</SubType>
171 </Compile>
169 <Compile Include="scripting\IScriptHandler.cs"> 172 <Compile Include="scripting\IScriptHandler.cs">
170 <SubType>Code</SubType> 173 <SubType>Code</SubType>
171 </Compile> 174 </Compile>
@@ -190,9 +193,6 @@
190 <Compile Include="types\Triangle.cs"> 193 <Compile Include="types\Triangle.cs">
191 <SubType>Code</SubType> 194 <SubType>Code</SubType>
192 </Compile> 195 </Compile>
193 <Compile Include="Estate\EstateManager.cs">
194 <SubType>Code</SubType>
195 </Compile>
196 </ItemGroup> 196 </ItemGroup>
197 <Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" /> 197 <Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
198 <PropertyGroup> 198 <PropertyGroup>
diff --git a/OpenSim/OpenSim.World/World.cs b/OpenSim/OpenSim.World/World.cs
index 3e74501..011e39a 100644
--- a/OpenSim/OpenSim.World/World.cs
+++ b/OpenSim/OpenSim.World/World.cs
@@ -524,7 +524,7 @@ namespace OpenSim.world
524 protected void InformClientOfNeighbours(IClientAPI remoteClient) 524 protected void InformClientOfNeighbours(IClientAPI remoteClient)
525 { 525 {
526 // Console.WriteLine("informing client of neighbouring regions"); 526 // Console.WriteLine("informing client of neighbouring regions");
527 List<RegionInfo> neighbours = this.commsManager.RequestNeighbours(this.m_regInfo); 527 List<RegionInfo> neighbours = this.commsManager.gridServer.RequestNeighbours(this.m_regInfo);
528 528
529 //Console.WriteLine("we have " + neighbours.Count + " neighbouring regions"); 529 //Console.WriteLine("we have " + neighbours.Count + " neighbouring regions");
530 if (neighbours != null) 530 if (neighbours != null)
@@ -536,7 +536,7 @@ namespace OpenSim.world
536 agent.BaseFolder = LLUUID.Zero; 536 agent.BaseFolder = LLUUID.Zero;
537 agent.InventoryFolder = LLUUID.Zero; 537 agent.InventoryFolder = LLUUID.Zero;
538 agent.startpos = new LLVector3(128, 128, 70); 538 agent.startpos = new LLVector3(128, 128, 70);
539 this.commsManager.InformNeighbourOfChildAgent(neighbours[i].RegionHandle, agent); 539 this.commsManager.gridServer.InformNeighbourOfChildAgent(neighbours[i].RegionHandle, agent);
540 remoteClient.InformClientOfNeighbour(neighbours[i].RegionHandle, System.Net.IPAddress.Parse(neighbours[i].IPListenAddr), (ushort)neighbours[i].IPListenPort); 540 remoteClient.InformClientOfNeighbour(neighbours[i].RegionHandle, System.Net.IPAddress.Parse(neighbours[i].IPListenAddr), (ushort)neighbours[i].IPListenPort);
541 } 541 }
542 } 542 }
@@ -594,7 +594,7 @@ namespace OpenSim.world
594 594
595 public void RegisterRegionWithComms() 595 public void RegisterRegionWithComms()
596 { 596 {
597 this.regionCommsHost = this.commsManager.RegisterRegion(this.m_regInfo); 597 this.regionCommsHost = this.commsManager.gridServer.RegisterRegion(this.m_regInfo);
598 if (this.regionCommsHost != null) 598 if (this.regionCommsHost != null)
599 { 599 {
600 this.regionCommsHost.OnExpectUser += new ExpectUserDelegate(this.NewUserConnection); 600 this.regionCommsHost.OnExpectUser += new ExpectUserDelegate(this.NewUserConnection);
diff --git a/OpenSim/OpenSim/OpenSimMain.cs b/OpenSim/OpenSim/OpenSimMain.cs
index 1864e06..1174455 100644
--- a/OpenSim/OpenSim/OpenSimMain.cs
+++ b/OpenSim/OpenSim/OpenSimMain.cs
@@ -103,12 +103,12 @@ namespace OpenSim
103 this.SetupLocalGridServers(); 103 this.SetupLocalGridServers();
104 this.checkServer = new CheckSumServer(12036); 104 this.checkServer = new CheckSumServer(12036);
105 this.checkServer.ServerListener(); 105 this.checkServer.ServerListener();
106 this.commsManager = new TestLocalCommsManager(); 106 this.commsManager = new RegionServerCommsOGS();
107 } 107 }
108 else 108 else
109 { 109 {
110 this.SetupRemoteGridServers(); 110 this.SetupRemoteGridServers();
111 this.commsManager = new TestLocalCommsManager(); //should be a remote comms manager class 111 this.commsManager = new RegionServerCommsLocal();
112 } 112 }
113 113
114 startuptime = DateTime.Now; 114 startuptime = DateTime.Now;
@@ -131,7 +131,7 @@ namespace OpenSim
131 loginServer = new LoginServer(regionData[0].IPListenAddr, regionData[0].IPListenPort, regionData[0].RegionLocX, regionData[0].RegionLocY, false); 131 loginServer = new LoginServer(regionData[0].IPListenAddr, regionData[0].IPListenPort, regionData[0].RegionLocX, regionData[0].RegionLocY, false);
132 loginServer.Startup(); 132 loginServer.Startup();
133 //loginServer.SetSessionHandler(((AuthenticateSessionsLocal)this.AuthenticateSessionsHandler[0]).AddNewSession); 133 //loginServer.SetSessionHandler(((AuthenticateSessionsLocal)this.AuthenticateSessionsHandler[0]).AddNewSession);
134 loginServer.SetSessionHandler(((TestLocalCommsManager)this.commsManager).AddNewSession); 134 loginServer.SetSessionHandler(((RegionServerCommsLocal)this.commsManager).gridServer.AddNewSession);
135 //sandbox mode with loginserver not using accounts 135 //sandbox mode with loginserver not using accounts
136 httpServer.AddXmlRPCHandler("login_to_simulator", loginServer.XmlRpcLoginMethod); 136 httpServer.AddXmlRPCHandler("login_to_simulator", loginServer.XmlRpcLoginMethod);
137 } 137 }