| 11 |
using Caps = OpenSim.Framework.Communications.Capabilities.Caps; |
using Caps = OpenSim.Framework.Communications.Capabilities.Caps; |
| 12 |
using log4net; |
using log4net; |
| 13 |
using System.Reflection; |
using System.Reflection; |
| 14 |
|
using OpenSim.Services.Interfaces; |
| 15 |
|
|
| 16 |
namespace ModularRex.RexNetwork |
namespace ModularRex.RexNetwork |
| 17 |
{ |
{ |
| 61 |
private void OnClientRegisterCaps(OpenMetaverse.UUID agentID, Caps caps) |
private void OnClientRegisterCaps(OpenMetaverse.UUID agentID, Caps caps) |
| 62 |
{ |
{ |
| 63 |
RexCaps rexcaps = new RexCaps( |
RexCaps rexcaps = new RexCaps( |
| 64 |
m_scene.CommsManager.AssetCache, |
m_scene.AssetService, |
| 65 |
m_scene.CommsManager.HttpServer, |
m_scene.CommsManager.HttpServer, |
| 66 |
m_scene.RegionInfo.ExternalHostName, |
m_scene.RegionInfo.ExternalHostName, |
| 67 |
m_scene.CommsManager.HttpServer.Port, |
m_scene.CommsManager.HttpServer.Port, |
| 85 |
private string m_httpListenerHostName; |
private string m_httpListenerHostName; |
| 86 |
private uint m_httpListenPort; |
private uint m_httpListenPort; |
| 87 |
private bool m_dumpAssetsToFile; |
private bool m_dumpAssetsToFile; |
| 88 |
private IAssetCache m_assetCache; |
private IAssetService m_assetCache; |
| 89 |
private UUID m_agentID; |
private UUID m_agentID; |
| 90 |
|
|
| 91 |
public GetClientDelegate GetClient = null; |
public GetClientDelegate GetClient = null; |
| 92 |
|
|
| 93 |
public RexCaps(IAssetCache assetCache, IHttpServer httpServer, string httpListen, uint httpPort, bool dumbAssetsToFile) |
public RexCaps(IAssetService assetCache, IHttpServer httpServer, string httpListen, uint httpPort, bool dumbAssetsToFile) |
| 94 |
{ |
{ |
| 95 |
m_assetCache = assetCache; |
m_assetCache = assetCache; |
| 96 |
m_httpListener = httpServer; |
m_httpListener = httpServer; |
| 256 |
if (Caps.AddNewAsset != null) |
if (Caps.AddNewAsset != null) |
| 257 |
Caps.AddNewAsset(asset); |
Caps.AddNewAsset(asset); |
| 258 |
else if (m_assetCache != null) |
else if (m_assetCache != null) |
| 259 |
m_assetCache.AddAsset(asset); |
m_assetCache.Store(asset); |
| 260 |
|
|
| 261 |
InventoryItemBase item = new InventoryItemBase(); |
InventoryItemBase item = new InventoryItemBase(); |
| 262 |
item.Owner = m_agentID; |
item.Owner = m_agentID; |