diff options
Diffstat (limited to '')
8 files changed, 66 insertions, 66 deletions
diff --git a/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs b/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs index d3cf41e..3b521c3 100644 --- a/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs +++ b/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs | |||
@@ -26,8 +26,8 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System.Collections.Generic; | 28 | using System.Collections.Generic; |
29 | using libsecondlife; | 29 | using OpenMetaverse; |
30 | using libsecondlife.Packets; | 30 | using OpenMetaverse.Packets; |
31 | using Nini.Config; | 31 | using Nini.Config; |
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenSim.Region.Environment.Interfaces; | 33 | using OpenSim.Region.Environment.Interfaces; |
@@ -43,16 +43,16 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetDownload | |||
43 | private List<AssetRequest> AssetRequests; | 43 | private List<AssetRequest> AssetRequests; |
44 | 44 | ||
45 | private Scene m_scene; | 45 | private Scene m_scene; |
46 | private Dictionary<LLUUID, Scene> RegisteredScenes = new Dictionary<LLUUID, Scene>(); | 46 | private Dictionary<UUID, Scene> RegisteredScenes = new Dictionary<UUID, Scene>(); |
47 | 47 | ||
48 | /// | 48 | /// |
49 | /// Assets requests (for each user) which are waiting for asset server data. This includes texture requests | 49 | /// Assets requests (for each user) which are waiting for asset server data. This includes texture requests |
50 | /// </summary> | 50 | /// </summary> |
51 | private Dictionary<LLUUID, Dictionary<LLUUID, AssetRequest>> RequestedAssets; | 51 | private Dictionary<UUID, Dictionary<UUID, AssetRequest>> RequestedAssets; |
52 | 52 | ||
53 | public AssetDownloadModule() | 53 | public AssetDownloadModule() |
54 | { | 54 | { |
55 | RequestedAssets = new Dictionary<LLUUID, Dictionary<LLUUID, AssetRequest>>(); | 55 | RequestedAssets = new Dictionary<UUID, Dictionary<UUID, AssetRequest>>(); |
56 | AssetRequests = new List<AssetRequest>(); | 56 | AssetRequests = new List<AssetRequest>(); |
57 | } | 57 | } |
58 | 58 | ||
@@ -109,24 +109,24 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetDownload | |||
109 | /// <param name="transferRequest"></param> | 109 | /// <param name="transferRequest"></param> |
110 | public void AddAssetRequest(IClientAPI userInfo, TransferRequestPacket transferRequest) | 110 | public void AddAssetRequest(IClientAPI userInfo, TransferRequestPacket transferRequest) |
111 | { | 111 | { |
112 | LLUUID requestID = null; | 112 | UUID requestID = null; |
113 | byte source = 2; | 113 | byte source = 2; |
114 | if (transferRequest.TransferInfo.SourceType == 2) | 114 | if (transferRequest.TransferInfo.SourceType == 2) |
115 | { | 115 | { |
116 | //direct asset request | 116 | //direct asset request |
117 | requestID = new LLUUID(transferRequest.TransferInfo.Params, 0); | 117 | requestID = new UUID(transferRequest.TransferInfo.Params, 0); |
118 | } | 118 | } |
119 | else if (transferRequest.TransferInfo.SourceType == 3) | 119 | else if (transferRequest.TransferInfo.SourceType == 3) |
120 | { | 120 | { |
121 | //inventory asset request | 121 | //inventory asset request |
122 | requestID = new LLUUID(transferRequest.TransferInfo.Params, 80); | 122 | requestID = new UUID(transferRequest.TransferInfo.Params, 80); |
123 | source = 3; | 123 | source = 3; |
124 | //Console.WriteLine("asset request " + requestID); | 124 | //Console.WriteLine("asset request " + requestID); |
125 | } | 125 | } |
126 | 126 | ||
127 | //not found asset | 127 | //not found asset |
128 | // so request from asset server | 128 | // so request from asset server |
129 | Dictionary<LLUUID, AssetRequest> userRequests = null; | 129 | Dictionary<UUID, AssetRequest> userRequests = null; |
130 | if (RequestedAssets.TryGetValue(userInfo.AgentId, out userRequests)) | 130 | if (RequestedAssets.TryGetValue(userInfo.AgentId, out userRequests)) |
131 | { | 131 | { |
132 | if (!userRequests.ContainsKey(requestID)) | 132 | if (!userRequests.ContainsKey(requestID)) |
@@ -143,7 +143,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetDownload | |||
143 | } | 143 | } |
144 | else | 144 | else |
145 | { | 145 | { |
146 | userRequests = new Dictionary<LLUUID, AssetRequest>(); | 146 | userRequests = new Dictionary<UUID, AssetRequest>(); |
147 | AssetRequest request = new AssetRequest(); | 147 | AssetRequest request = new AssetRequest(); |
148 | request.RequestUser = userInfo; | 148 | request.RequestUser = userInfo; |
149 | request.RequestAssetID = requestID; | 149 | request.RequestAssetID = requestID; |
@@ -156,11 +156,11 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetDownload | |||
156 | } | 156 | } |
157 | } | 157 | } |
158 | 158 | ||
159 | public void AssetCallback(LLUUID assetID, AssetBase asset) | 159 | public void AssetCallback(UUID assetID, AssetBase asset) |
160 | { | 160 | { |
161 | if (asset != null) | 161 | if (asset != null) |
162 | { | 162 | { |
163 | foreach (Dictionary<LLUUID, AssetRequest> userRequests in RequestedAssets.Values) | 163 | foreach (Dictionary<UUID, AssetRequest> userRequests in RequestedAssets.Values) |
164 | { | 164 | { |
165 | if (userRequests.ContainsKey(assetID)) | 165 | if (userRequests.ContainsKey(assetID)) |
166 | { | 166 | { |
@@ -212,9 +212,9 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetDownload | |||
212 | public int NumPackets = 0; | 212 | public int NumPackets = 0; |
213 | public int PacketCounter = 0; | 213 | public int PacketCounter = 0; |
214 | public byte[] Params = null; | 214 | public byte[] Params = null; |
215 | public LLUUID RequestAssetID; | 215 | public UUID RequestAssetID; |
216 | public IClientAPI RequestUser; | 216 | public IClientAPI RequestUser; |
217 | public LLUUID TransferRequestID; | 217 | public UUID TransferRequestID; |
218 | //public bool AssetInCache; | 218 | //public bool AssetInCache; |
219 | //public int TimeRequested; | 219 | //public int TimeRequested; |
220 | 220 | ||
@@ -225,4 +225,4 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetDownload | |||
225 | 225 | ||
226 | #endregion | 226 | #endregion |
227 | } | 227 | } |
228 | } \ No newline at end of file | 228 | } |
diff --git a/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AgentAssetsTransactions.cs b/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AgentAssetsTransactions.cs index bc1d710..c46c4a4 100644 --- a/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AgentAssetsTransactions.cs +++ b/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AgentAssetsTransactions.cs | |||
@@ -28,8 +28,8 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.IO; | 30 | using System.IO; |
31 | using libsecondlife; | 31 | using OpenMetaverse; |
32 | using libsecondlife.Packets; | 32 | using OpenMetaverse.Packets; |
33 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
34 | using OpenSim.Framework.Communications.Cache; | 34 | using OpenSim.Framework.Communications.Cache; |
35 | 35 | ||
@@ -46,18 +46,18 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
46 | // Fields | 46 | // Fields |
47 | private bool m_dumpAssetsToFile; | 47 | private bool m_dumpAssetsToFile; |
48 | public AgentAssetTransactionsManager Manager; | 48 | public AgentAssetTransactionsManager Manager; |
49 | public LLUUID UserID; | 49 | public UUID UserID; |
50 | public Dictionary<LLUUID, AssetXferUploader> XferUploaders = new Dictionary<LLUUID, AssetXferUploader>(); | 50 | public Dictionary<UUID, AssetXferUploader> XferUploaders = new Dictionary<UUID, AssetXferUploader>(); |
51 | 51 | ||
52 | // Methods | 52 | // Methods |
53 | public AgentAssetTransactions(LLUUID agentID, AgentAssetTransactionsManager manager, bool dumpAssetsToFile) | 53 | public AgentAssetTransactions(UUID agentID, AgentAssetTransactionsManager manager, bool dumpAssetsToFile) |
54 | { | 54 | { |
55 | UserID = agentID; | 55 | UserID = agentID; |
56 | Manager = manager; | 56 | Manager = manager; |
57 | m_dumpAssetsToFile = dumpAssetsToFile; | 57 | m_dumpAssetsToFile = dumpAssetsToFile; |
58 | } | 58 | } |
59 | 59 | ||
60 | public AssetXferUploader RequestXferUploader(LLUUID transactionID) | 60 | public AssetXferUploader RequestXferUploader(UUID transactionID) |
61 | { | 61 | { |
62 | if (!XferUploaders.ContainsKey(transactionID)) | 62 | if (!XferUploaders.ContainsKey(transactionID)) |
63 | { | 63 | { |
@@ -90,7 +90,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
90 | } | 90 | } |
91 | } | 91 | } |
92 | 92 | ||
93 | public void RequestCreateInventoryItem(IClientAPI remoteClient, LLUUID transactionID, LLUUID folderID, | 93 | public void RequestCreateInventoryItem(IClientAPI remoteClient, UUID transactionID, UUID folderID, |
94 | uint callbackID, string description, string name, sbyte invType, | 94 | uint callbackID, string description, string name, sbyte invType, |
95 | sbyte type, byte wearableType, uint nextOwnerMask) | 95 | sbyte type, byte wearableType, uint nextOwnerMask) |
96 | { | 96 | { |
@@ -102,7 +102,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
102 | } | 102 | } |
103 | } | 103 | } |
104 | 104 | ||
105 | public void RequestUpdateInventoryItem(IClientAPI remoteClient, LLUUID transactionID, | 105 | public void RequestUpdateInventoryItem(IClientAPI remoteClient, UUID transactionID, |
106 | InventoryItemBase item) | 106 | InventoryItemBase item) |
107 | { | 107 | { |
108 | if (XferUploaders.ContainsKey(transactionID)) | 108 | if (XferUploaders.ContainsKey(transactionID)) |
@@ -116,7 +116,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
116 | /// </summary> | 116 | /// </summary> |
117 | /// <param name="transactionID"></param> | 117 | /// <param name="transactionID"></param> |
118 | /// <returns>The asset if the upload has completed, null if it has not.</returns> | 118 | /// <returns>The asset if the upload has completed, null if it has not.</returns> |
119 | public AssetBase GetTransactionAsset(LLUUID transactionID) | 119 | public AssetBase GetTransactionAsset(UUID transactionID) |
120 | { | 120 | { |
121 | if (XferUploaders.ContainsKey(transactionID)) | 121 | if (XferUploaders.ContainsKey(transactionID)) |
122 | { | 122 | { |
@@ -143,7 +143,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
143 | // Fields | 143 | // Fields |
144 | public bool AddToInventory; | 144 | public bool AddToInventory; |
145 | public AssetBase Asset; | 145 | public AssetBase Asset; |
146 | public LLUUID InventFolder = LLUUID.Zero; | 146 | public UUID InventFolder = UUID.Zero; |
147 | private sbyte invType = 0; | 147 | private sbyte invType = 0; |
148 | private bool m_createItem = false; | 148 | private bool m_createItem = false; |
149 | private string m_description = String.Empty; | 149 | private string m_description = String.Empty; |
@@ -154,7 +154,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
154 | private AgentAssetTransactions m_userTransactions; | 154 | private AgentAssetTransactions m_userTransactions; |
155 | private uint nextPerm = 0; | 155 | private uint nextPerm = 0; |
156 | private IClientAPI ourClient; | 156 | private IClientAPI ourClient; |
157 | public LLUUID TransactionID = LLUUID.Zero; | 157 | public UUID TransactionID = UUID.Zero; |
158 | private sbyte type = 0; | 158 | private sbyte type = 0; |
159 | public bool UploadComplete; | 159 | public bool UploadComplete; |
160 | private byte wearableType = 0; | 160 | private byte wearableType = 0; |
@@ -210,7 +210,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
210 | /// <param name="packetID"></param> | 210 | /// <param name="packetID"></param> |
211 | /// <param name="data"></param> | 211 | /// <param name="data"></param> |
212 | /// <returns>True if the transfer is complete, false otherwise</returns> | 212 | /// <returns>True if the transfer is complete, false otherwise</returns> |
213 | public bool Initialise(IClientAPI remoteClient, LLUUID assetID, LLUUID transaction, sbyte type, byte[] data, | 213 | public bool Initialise(IClientAPI remoteClient, UUID assetID, UUID transaction, sbyte type, byte[] data, |
214 | bool storeLocal, bool tempFile) | 214 | bool storeLocal, bool tempFile) |
215 | { | 215 | { |
216 | ourClient = remoteClient; | 216 | ourClient = remoteClient; |
@@ -297,7 +297,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
297 | fs.Close(); | 297 | fs.Close(); |
298 | } | 298 | } |
299 | 299 | ||
300 | public void RequestCreateInventoryItem(IClientAPI remoteClient, LLUUID transactionID, LLUUID folderID, | 300 | public void RequestCreateInventoryItem(IClientAPI remoteClient, UUID transactionID, UUID folderID, |
301 | uint callbackID, string description, string name, sbyte invType, | 301 | uint callbackID, string description, string name, sbyte invType, |
302 | sbyte type, byte wearableType, uint nextOwnerMask) | 302 | sbyte type, byte wearableType, uint nextOwnerMask) |
303 | { | 303 | { |
@@ -321,7 +321,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
321 | } | 321 | } |
322 | } | 322 | } |
323 | 323 | ||
324 | public void RequestUpdateInventoryItem(IClientAPI remoteClient, LLUUID transactionID, | 324 | public void RequestUpdateInventoryItem(IClientAPI remoteClient, UUID transactionID, |
325 | InventoryItemBase item) | 325 | InventoryItemBase item) |
326 | { | 326 | { |
327 | if (TransactionID == transactionID) | 327 | if (TransactionID == transactionID) |
@@ -332,7 +332,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
332 | 332 | ||
333 | if (userInfo != null) | 333 | if (userInfo != null) |
334 | { | 334 | { |
335 | LLUUID assetID = LLUUID.Combine(transactionID, remoteClient.SecureSessionId); | 335 | UUID assetID = UUID.Combine(transactionID, remoteClient.SecureSessionId); |
336 | 336 | ||
337 | AssetBase asset | 337 | AssetBase asset |
338 | = m_userTransactions.Manager.MyScene.CommsManager.AssetCache.GetAsset( | 338 | = m_userTransactions.Manager.MyScene.CommsManager.AssetCache.GetAsset( |
@@ -346,7 +346,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
346 | if (asset != null && asset.FullID == assetID) | 346 | if (asset != null && asset.FullID == assetID) |
347 | { | 347 | { |
348 | // Assets never get updated, new ones get created | 348 | // Assets never get updated, new ones get created |
349 | asset.FullID = LLUUID.Random(); | 349 | asset.FullID = UUID.Random(); |
350 | asset.Name = item.Name; | 350 | asset.Name = item.Name; |
351 | asset.Description = item.Description; | 351 | asset.Description = item.Description; |
352 | asset.Type = (sbyte) item.AssetType; | 352 | asset.Type = (sbyte) item.AssetType; |
@@ -371,7 +371,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
371 | InventoryItemBase item = new InventoryItemBase(); | 371 | InventoryItemBase item = new InventoryItemBase(); |
372 | item.Owner = ourClient.AgentId; | 372 | item.Owner = ourClient.AgentId; |
373 | item.Creator = ourClient.AgentId; | 373 | item.Creator = ourClient.AgentId; |
374 | item.ID = LLUUID.Random(); | 374 | item.ID = UUID.Random(); |
375 | item.AssetID = Asset.FullID; | 375 | item.AssetID = Asset.FullID; |
376 | item.Description = m_description; | 376 | item.Description = m_description; |
377 | item.Name = m_name; | 377 | item.Name = m_name; |
diff --git a/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AssetTransactionModule.cs b/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AssetTransactionModule.cs index b1cbdcc..e6e27be 100644 --- a/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AssetTransactionModule.cs +++ b/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AssetTransactionModule.cs | |||
@@ -28,7 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Reflection; | 30 | using System.Reflection; |
31 | using libsecondlife; | 31 | using OpenMetaverse; |
32 | using log4net; | 32 | using log4net; |
33 | using Nini.Config; | 33 | using Nini.Config; |
34 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
@@ -40,7 +40,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
40 | { | 40 | { |
41 | public class AssetTransactionModule : IRegionModule, IAgentAssetTransactions | 41 | public class AssetTransactionModule : IRegionModule, IAgentAssetTransactions |
42 | { | 42 | { |
43 | private readonly Dictionary<LLUUID, Scene> RegisteredScenes = new Dictionary<LLUUID, Scene>(); | 43 | private readonly Dictionary<UUID, Scene> RegisteredScenes = new Dictionary<UUID, Scene>(); |
44 | private bool m_dumpAssetsToFile = false; | 44 | private bool m_dumpAssetsToFile = false; |
45 | private Scene m_scene = null; | 45 | private Scene m_scene = null; |
46 | 46 | ||
@@ -53,7 +53,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
53 | 53 | ||
54 | #region IAgentAssetTransactions Members | 54 | #region IAgentAssetTransactions Members |
55 | 55 | ||
56 | public void HandleItemCreationFromTransaction(IClientAPI remoteClient, LLUUID transactionID, LLUUID folderID, | 56 | public void HandleItemCreationFromTransaction(IClientAPI remoteClient, UUID transactionID, UUID folderID, |
57 | uint callbackID, string description, string name, sbyte invType, | 57 | uint callbackID, string description, string name, sbyte invType, |
58 | sbyte type, byte wearableType, uint nextOwnerMask) | 58 | sbyte type, byte wearableType, uint nextOwnerMask) |
59 | { | 59 | { |
@@ -61,13 +61,13 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
61 | wearableType, nextOwnerMask); | 61 | wearableType, nextOwnerMask); |
62 | } | 62 | } |
63 | 63 | ||
64 | public void HandleItemUpdateFromTransaction(IClientAPI remoteClient, LLUUID transactionID, | 64 | public void HandleItemUpdateFromTransaction(IClientAPI remoteClient, UUID transactionID, |
65 | InventoryItemBase item) | 65 | InventoryItemBase item) |
66 | { | 66 | { |
67 | m_transactionManager.HandleItemUpdateFromTransaction(remoteClient, transactionID, item); | 67 | m_transactionManager.HandleItemUpdateFromTransaction(remoteClient, transactionID, item); |
68 | } | 68 | } |
69 | 69 | ||
70 | public void RemoveAgentAssetTransactions(LLUUID userID) | 70 | public void RemoveAgentAssetTransactions(UUID userID) |
71 | { | 71 | { |
72 | m_transactionManager.RemoveAgentAssetTransactions(userID); | 72 | m_transactionManager.RemoveAgentAssetTransactions(userID); |
73 | } | 73 | } |
@@ -146,8 +146,8 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
146 | /// <summary> | 146 | /// <summary> |
147 | /// Each agent has its own singleton collection of transactions | 147 | /// Each agent has its own singleton collection of transactions |
148 | /// </summary> | 148 | /// </summary> |
149 | private Dictionary<LLUUID, AgentAssetTransactions> AgentTransactions = | 149 | private Dictionary<UUID, AgentAssetTransactions> AgentTransactions = |
150 | new Dictionary<LLUUID, AgentAssetTransactions>(); | 150 | new Dictionary<UUID, AgentAssetTransactions>(); |
151 | 151 | ||
152 | /// <summary> | 152 | /// <summary> |
153 | /// Should we dump uploaded assets to the filesystem? | 153 | /// Should we dump uploaded assets to the filesystem? |
@@ -168,7 +168,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
168 | /// </summary> | 168 | /// </summary> |
169 | /// <param name="userID"></param> | 169 | /// <param name="userID"></param> |
170 | /// <returns></returns> | 170 | /// <returns></returns> |
171 | private AgentAssetTransactions GetUserTransactions(LLUUID userID) | 171 | private AgentAssetTransactions GetUserTransactions(UUID userID) |
172 | { | 172 | { |
173 | lock (AgentTransactions) | 173 | lock (AgentTransactions) |
174 | { | 174 | { |
@@ -188,7 +188,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
188 | /// from a scene (and hence won't be making any more transactions here). | 188 | /// from a scene (and hence won't be making any more transactions here). |
189 | /// </summary> | 189 | /// </summary> |
190 | /// <param name="userID"></param> | 190 | /// <param name="userID"></param> |
191 | public void RemoveAgentAssetTransactions(LLUUID userID) | 191 | public void RemoveAgentAssetTransactions(UUID userID) |
192 | { | 192 | { |
193 | // m_log.DebugFormat("Removing agent asset transactions structure for agent {0}", userID); | 193 | // m_log.DebugFormat("Removing agent asset transactions structure for agent {0}", userID); |
194 | 194 | ||
@@ -214,7 +214,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
214 | /// <param name="type"></param> | 214 | /// <param name="type"></param> |
215 | /// <param name="wearableType"></param> | 215 | /// <param name="wearableType"></param> |
216 | /// <param name="nextOwnerMask"></param> | 216 | /// <param name="nextOwnerMask"></param> |
217 | public void HandleItemCreationFromTransaction(IClientAPI remoteClient, LLUUID transactionID, LLUUID folderID, | 217 | public void HandleItemCreationFromTransaction(IClientAPI remoteClient, UUID transactionID, UUID folderID, |
218 | uint callbackID, string description, string name, sbyte invType, | 218 | uint callbackID, string description, string name, sbyte invType, |
219 | sbyte type, byte wearableType, uint nextOwnerMask) | 219 | sbyte type, byte wearableType, uint nextOwnerMask) |
220 | { | 220 | { |
@@ -237,7 +237,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
237 | /// <param name="remoteClient"></param> | 237 | /// <param name="remoteClient"></param> |
238 | /// <param name="transactionID"></param> | 238 | /// <param name="transactionID"></param> |
239 | /// <param name="item"></param> | 239 | /// <param name="item"></param> |
240 | public void HandleItemUpdateFromTransaction(IClientAPI remoteClient, LLUUID transactionID, | 240 | public void HandleItemUpdateFromTransaction(IClientAPI remoteClient, UUID transactionID, |
241 | InventoryItemBase item) | 241 | InventoryItemBase item) |
242 | { | 242 | { |
243 | m_log.DebugFormat( | 243 | m_log.DebugFormat( |
@@ -259,7 +259,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
259 | /// <param name="type"></param> | 259 | /// <param name="type"></param> |
260 | /// <param name="data"></param></param> | 260 | /// <param name="data"></param></param> |
261 | /// <param name="tempFile"></param> | 261 | /// <param name="tempFile"></param> |
262 | public void HandleUDPUploadRequest(IClientAPI remoteClient, LLUUID assetID, LLUUID transaction, sbyte type, | 262 | public void HandleUDPUploadRequest(IClientAPI remoteClient, UUID assetID, UUID transaction, sbyte type, |
263 | byte[] data, bool storeLocal, bool tempFile) | 263 | byte[] data, bool storeLocal, bool tempFile) |
264 | { | 264 | { |
265 | if (((AssetType)type == AssetType.Texture || | 265 | if (((AssetType)type == AssetType.Texture || |
diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs index 8f81f3d..813d271 100644 --- a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs +++ b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs | |||
@@ -28,7 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Threading; | 30 | using System.Threading; |
31 | using libsecondlife; | 31 | using OpenMetaverse; |
32 | using Nini.Config; | 32 | using Nini.Config; |
33 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
34 | using OpenSim.Region.Environment.Interfaces; | 34 | using OpenSim.Region.Environment.Interfaces; |
@@ -50,8 +50,8 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload | |||
50 | /// <summary> | 50 | /// <summary> |
51 | /// Each user has their own texture download service. | 51 | /// Each user has their own texture download service. |
52 | /// </summary> | 52 | /// </summary> |
53 | private readonly Dictionary<LLUUID, UserTextureDownloadService> m_userTextureServices = | 53 | private readonly Dictionary<UUID, UserTextureDownloadService> m_userTextureServices = |
54 | new Dictionary<LLUUID, UserTextureDownloadService>(); | 54 | new Dictionary<UUID, UserTextureDownloadService>(); |
55 | 55 | ||
56 | private Scene m_scene; | 56 | private Scene m_scene; |
57 | private List<Scene> m_scenes = new List<Scene>(); | 57 | private List<Scene> m_scenes = new List<Scene>(); |
@@ -109,7 +109,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload | |||
109 | /// Cleanup the texture service related objects for the removed presence. | 109 | /// Cleanup the texture service related objects for the removed presence. |
110 | /// </summary> | 110 | /// </summary> |
111 | /// <param name="agentId"> </param> | 111 | /// <param name="agentId"> </param> |
112 | private void EventManager_OnRemovePresence(LLUUID agentId) | 112 | private void EventManager_OnRemovePresence(UUID agentId) |
113 | { | 113 | { |
114 | UserTextureDownloadService textureService; | 114 | UserTextureDownloadService textureService; |
115 | 115 | ||
@@ -216,4 +216,4 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload | |||
216 | m_scene.AddPendingDownloads(-1); | 216 | m_scene.AddPendingDownloads(-1); |
217 | } | 217 | } |
218 | } | 218 | } |
219 | } \ No newline at end of file | 219 | } |
diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureNotFoundSender.cs b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureNotFoundSender.cs index c5af174..f6d8543 100644 --- a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureNotFoundSender.cs +++ b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureNotFoundSender.cs | |||
@@ -25,8 +25,8 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using libsecondlife; | 28 | using OpenMetaverse; |
29 | using libsecondlife.Packets; | 29 | using OpenMetaverse.Packets; |
30 | using OpenSim.Framework; | 30 | using OpenSim.Framework; |
31 | using OpenSim.Region.Environment.Interfaces; | 31 | using OpenSim.Region.Environment.Interfaces; |
32 | 32 | ||
@@ -46,11 +46,11 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload | |||
46 | // See ITextureSender | 46 | // See ITextureSender |
47 | 47 | ||
48 | // private bool m_sending = false; | 48 | // private bool m_sending = false; |
49 | private LLUUID m_textureId; | 49 | private UUID m_textureId; |
50 | 50 | ||
51 | // See ITextureSender | 51 | // See ITextureSender |
52 | 52 | ||
53 | public TextureNotFoundSender(IClientAPI client, LLUUID textureID) | 53 | public TextureNotFoundSender(IClientAPI client, UUID textureID) |
54 | { | 54 | { |
55 | // // m_client = client; | 55 | // // m_client = client; |
56 | m_textureId = textureID; | 56 | m_textureId = textureID; |
@@ -101,4 +101,4 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload | |||
101 | 101 | ||
102 | #endregion | 102 | #endregion |
103 | } | 103 | } |
104 | } \ No newline at end of file | 104 | } |
diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs index e6ee75f..c38bc62 100644 --- a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs +++ b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | using System.Collections.Generic; | 28 | using System.Collections.Generic; |
29 | using System.Reflection; | 29 | using System.Reflection; |
30 | using libsecondlife; | 30 | using OpenMetaverse; |
31 | using log4net; | 31 | using log4net; |
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenSim.Framework.Communications.Limit; | 33 | using OpenSim.Framework.Communications.Limit; |
@@ -65,8 +65,8 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload | |||
65 | /// <summary> | 65 | /// <summary> |
66 | /// XXX Also going to limit requests for found textures. | 66 | /// XXX Also going to limit requests for found textures. |
67 | /// </summary> | 67 | /// </summary> |
68 | private readonly IRequestLimitStrategy<LLUUID> foundTextureLimitStrategy | 68 | private readonly IRequestLimitStrategy<UUID> foundTextureLimitStrategy |
69 | = new RepeatLimitStrategy<LLUUID>(MAX_ALLOWED_TEXTURE_REQUESTS); | 69 | = new RepeatLimitStrategy<UUID>(MAX_ALLOWED_TEXTURE_REQUESTS); |
70 | 70 | ||
71 | private readonly IClientAPI m_client; | 71 | private readonly IClientAPI m_client; |
72 | private readonly Scene m_scene; | 72 | private readonly Scene m_scene; |
@@ -80,15 +80,15 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload | |||
80 | /// <summary> | 80 | /// <summary> |
81 | /// Holds texture senders before they have received the appropriate texture from the asset cache. | 81 | /// Holds texture senders before they have received the appropriate texture from the asset cache. |
82 | /// </summary> | 82 | /// </summary> |
83 | private readonly Dictionary<LLUUID, TextureSender.TextureSender> m_textureSenders = new Dictionary<LLUUID, TextureSender.TextureSender>(); | 83 | private readonly Dictionary<UUID, TextureSender.TextureSender> m_textureSenders = new Dictionary<UUID, TextureSender.TextureSender>(); |
84 | 84 | ||
85 | /// <summary> | 85 | /// <summary> |
86 | /// We're going to limit requests for the same missing texture. | 86 | /// We're going to limit requests for the same missing texture. |
87 | /// XXX This is really a temporary solution to deal with the situation where a client continually requests | 87 | /// XXX This is really a temporary solution to deal with the situation where a client continually requests |
88 | /// the same missing textures | 88 | /// the same missing textures |
89 | /// </summary> | 89 | /// </summary> |
90 | private readonly IRequestLimitStrategy<LLUUID> missingTextureLimitStrategy | 90 | private readonly IRequestLimitStrategy<UUID> missingTextureLimitStrategy |
91 | = new RepeatLimitStrategy<LLUUID>(MAX_ALLOWED_TEXTURE_REQUESTS); | 91 | = new RepeatLimitStrategy<UUID>(MAX_ALLOWED_TEXTURE_REQUESTS); |
92 | 92 | ||
93 | public UserTextureDownloadService( | 93 | public UserTextureDownloadService( |
94 | IClientAPI client, Scene scene, BlockingQueue<ITextureSender> sharedQueue) | 94 | IClientAPI client, Scene scene, BlockingQueue<ITextureSender> sharedQueue) |
@@ -172,7 +172,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload | |||
172 | /// </summary> | 172 | /// </summary> |
173 | /// <param name="textureID"></param> | 173 | /// <param name="textureID"></param> |
174 | /// <param name="texture"></param> | 174 | /// <param name="texture"></param> |
175 | public void TextureCallback(LLUUID textureID, AssetBase texture) | 175 | public void TextureCallback(UUID textureID, AssetBase texture) |
176 | { | 176 | { |
177 | //m_log.DebugFormat("[USER TEXTURE DOWNLOAD SERVICE]: Calling TextureCallback with {0}, texture == null is {1}", textureID, (texture == null ? true : false)); | 177 | //m_log.DebugFormat("[USER TEXTURE DOWNLOAD SERVICE]: Calling TextureCallback with {0}, texture == null is {1}", textureID, (texture == null ? true : false)); |
178 | 178 | ||
diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs b/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs index 7554d1a..dbfd4d2 100644 --- a/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs +++ b/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Reflection; | 29 | using System.Reflection; |
30 | using libsecondlife.Packets; | 30 | using OpenMetaverse.Packets; |
31 | using log4net; | 31 | using log4net; |
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenSim.Region.Environment.Interfaces; | 33 | using OpenSim.Region.Environment.Interfaces; |
@@ -55,7 +55,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureSender | |||
55 | /// </summary> | 55 | /// </summary> |
56 | private AssetBase m_asset; | 56 | private AssetBase m_asset; |
57 | 57 | ||
58 | //public LLUUID assetID { get { return m_asset.FullID; } } | 58 | //public UUID assetID { get { return m_asset.FullID; } } |
59 | 59 | ||
60 | // private bool m_cancel = false; | 60 | // private bool m_cancel = false; |
61 | 61 | ||
@@ -220,4 +220,4 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureSender | |||
220 | return numPackets; | 220 | return numPackets; |
221 | } | 221 | } |
222 | } | 222 | } |
223 | } \ No newline at end of file | 223 | } |
diff --git a/OpenSim/Region/Environment/Modules/Agent/Xfer/XferModule.cs b/OpenSim/Region/Environment/Modules/Agent/Xfer/XferModule.cs index 16874d7..3c69621 100644 --- a/OpenSim/Region/Environment/Modules/Agent/Xfer/XferModule.cs +++ b/OpenSim/Region/Environment/Modules/Agent/Xfer/XferModule.cs | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using libsecondlife; | 30 | using OpenMetaverse; |
31 | using Nini.Config; | 31 | using Nini.Config; |
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenSim.Region.Environment.Interfaces; | 33 | using OpenSim.Region.Environment.Interfaces; |
@@ -228,4 +228,4 @@ namespace OpenSim.Region.Environment.Modules.Agent.Xfer | |||
228 | 228 | ||
229 | #endregion | 229 | #endregion |
230 | } | 230 | } |
231 | } \ No newline at end of file | 231 | } |