diff options
author | MW | 2007-06-22 22:21:08 +0000 |
---|---|---|
committer | MW | 2007-06-22 22:21:08 +0000 |
commit | d7121a422a334f20e96d09251cf7382164b590db (patch) | |
tree | 64ebfea926bc57569963bd1a8adc16e71c942ab1 /OpenSim/OpenSim.Region/Scenes | |
parent | Imported Share folder from trunk (diff) | |
download | opensim-SC-d7121a422a334f20e96d09251cf7382164b590db.zip opensim-SC-d7121a422a334f20e96d09251cf7382164b590db.tar.gz opensim-SC-d7121a422a334f20e96d09251cf7382164b590db.tar.bz2 opensim-SC-d7121a422a334f20e96d09251cf7382164b590db.tar.xz |
Started work on CAPS support, now we have our first test capability, MapLayer requests are handled by CAPS.
Diffstat (limited to 'OpenSim/OpenSim.Region/Scenes')
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/Primitive.cs | 2 | ||||
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/Scene.cs | 13 |
2 files changed, 11 insertions, 4 deletions
diff --git a/OpenSim/OpenSim.Region/Scenes/Primitive.cs b/OpenSim/OpenSim.Region/Scenes/Primitive.cs index 39b3fbc..8192bf0 100644 --- a/OpenSim/OpenSim.Region/Scenes/Primitive.cs +++ b/OpenSim/OpenSim.Region/Scenes/Primitive.cs | |||
@@ -411,7 +411,7 @@ namespace OpenSim.Region.Scenes | |||
411 | lPos = this.Pos; | 411 | lPos = this.Pos; |
412 | } | 412 | } |
413 | 413 | ||
414 | remoteClient.SendPrimitiveToClient(this.m_regionHandle, 64096, this.LocalId, this.primData, lPos, new LLUUID("00000000-0000-0000-5005-000000000005")); | 414 | remoteClient.SendPrimitiveToClient(this.m_regionHandle, 64096, this.LocalId, this.primData, lPos, new LLUUID("00000000-0000-1000-5005-000000000018")); |
415 | } | 415 | } |
416 | 416 | ||
417 | /// <summary> | 417 | /// <summary> |
diff --git a/OpenSim/OpenSim.Region/Scenes/Scene.cs b/OpenSim/OpenSim.Region/Scenes/Scene.cs index ca8e5c3..14c77c2 100644 --- a/OpenSim/OpenSim.Region/Scenes/Scene.cs +++ b/OpenSim/OpenSim.Region/Scenes/Scene.cs | |||
@@ -43,6 +43,8 @@ using OpenSim.Region.Scripting; | |||
43 | using OpenSim.Terrain; | 43 | using OpenSim.Terrain; |
44 | using OpenGrid.Framework.Communications; | 44 | using OpenGrid.Framework.Communications; |
45 | using OpenSim.Caches; | 45 | using OpenSim.Caches; |
46 | using OpenSim.Region; | ||
47 | using OpenSim.Servers; | ||
46 | 48 | ||
47 | namespace OpenSim.Region.Scenes | 49 | namespace OpenSim.Region.Scenes |
48 | { | 50 | { |
@@ -67,6 +69,8 @@ namespace OpenSim.Region.Scenes | |||
67 | protected RegionCommsListener regionCommsHost; | 69 | protected RegionCommsListener regionCommsHost; |
68 | protected CommunicationsManager commsManager; | 70 | protected CommunicationsManager commsManager; |
69 | 71 | ||
72 | protected Caps TestCapsHandler; | ||
73 | protected BaseHttpServer httpListener; | ||
70 | 74 | ||
71 | public ParcelManager parcelManager; | 75 | public ParcelManager parcelManager; |
72 | public EstateManager estateManager; | 76 | public EstateManager estateManager; |
@@ -96,7 +100,7 @@ namespace OpenSim.Region.Scenes | |||
96 | /// <param name="clientThreads">Dictionary to contain client threads</param> | 100 | /// <param name="clientThreads">Dictionary to contain client threads</param> |
97 | /// <param name="regionHandle">Region Handle for this region</param> | 101 | /// <param name="regionHandle">Region Handle for this region</param> |
98 | /// <param name="regionName">Region Name for this region</param> | 102 | /// <param name="regionName">Region Name for this region</param> |
99 | public Scene(Dictionary<uint, IClientAPI> clientThreads, RegionInfo regInfo, AuthenticateSessionsBase authen, CommunicationsManager commsMan, AssetCache assetCach) | 103 | public Scene(Dictionary<uint, IClientAPI> clientThreads, RegionInfo regInfo, AuthenticateSessionsBase authen, CommunicationsManager commsMan, AssetCache assetCach, BaseHttpServer httpServer) |
100 | { | 104 | { |
101 | try | 105 | try |
102 | { | 106 | { |
@@ -127,6 +131,9 @@ namespace OpenSim.Region.Scenes | |||
127 | Terrain = new TerrainEngine(); | 131 | Terrain = new TerrainEngine(); |
128 | 132 | ||
129 | ScenePresence.LoadAnims(); | 133 | ScenePresence.LoadAnims(); |
134 | this.httpListener = httpServer; | ||
135 | this.TestCapsHandler = new Caps(httpListener, "127.0.0.1" , 9000); | ||
136 | this.TestCapsHandler.RegisterHandlers(); | ||
130 | } | 137 | } |
131 | catch (Exception e) | 138 | catch (Exception e) |
132 | { | 139 | { |
@@ -755,7 +762,7 @@ namespace OpenSim.Region.Scenes | |||
755 | agent.InventoryFolder = LLUUID.Zero; | 762 | agent.InventoryFolder = LLUUID.Zero; |
756 | agent.startpos = new LLVector3(128, 128, 70); | 763 | agent.startpos = new LLVector3(128, 128, 70); |
757 | agent.child = true; | 764 | agent.child = true; |
758 | this.commsManager.InterRegion.InformNeighbourOfChildAgent(neighbours[i].RegionHandle, agent); | 765 | this.commsManager.InterRegion.InformRegionOfChildAgent(neighbours[i].RegionHandle, agent); |
759 | remoteClient.InformClientOfNeighbour(neighbours[i].RegionHandle, System.Net.IPAddress.Parse(neighbours[i].IPListenAddr), (ushort)neighbours[i].IPListenPort); | 766 | remoteClient.InformClientOfNeighbour(neighbours[i].RegionHandle, System.Net.IPAddress.Parse(neighbours[i].IPListenAddr), (ushort)neighbours[i].IPListenPort); |
760 | } | 767 | } |
761 | } | 768 | } |
@@ -816,7 +823,7 @@ namespace OpenSim.Region.Scenes | |||
816 | agent.InventoryFolder = LLUUID.Zero; | 823 | agent.InventoryFolder = LLUUID.Zero; |
817 | agent.startpos = new LLVector3(128, 128, 70); | 824 | agent.startpos = new LLVector3(128, 128, 70); |
818 | agent.child = true; | 825 | agent.child = true; |
819 | this.commsManager.InterRegion.InformNeighbourOfChildAgent(regionHandle, agent); | 826 | this.commsManager.InterRegion.InformRegionOfChildAgent(regionHandle, agent); |
820 | this.commsManager.InterRegion.ExpectAvatarCrossing(regionHandle, remoteClient.AgentId, position); | 827 | this.commsManager.InterRegion.ExpectAvatarCrossing(regionHandle, remoteClient.AgentId, position); |
821 | remoteClient.SendRegionTeleport(regionHandle, 13, reg.IPListenAddr, (ushort)reg.IPListenPort, 4, (1 << 4)); | 828 | remoteClient.SendRegionTeleport(regionHandle, 13, reg.IPListenAddr, (ushort)reg.IPListenPort, 4, (1 << 4)); |
822 | } | 829 | } |