aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.GridInterfaces/Remote/RemoteAssetServer.cs
diff options
context:
space:
mode:
authorgareth2007-04-30 02:48:05 +0000
committergareth2007-04-30 02:48:05 +0000
commit002336e95c928405394c18eb7d7e77e7b15bd259 (patch)
treedf9b61f3555866623bf8b2ddcd500914766f2f59 /OpenSim.GridInterfaces/Remote/RemoteAssetServer.cs
parentCopied gridserver ready to convert to asset server (diff)
downloadopensim-SC-002336e95c928405394c18eb7d7e77e7b15bd259.zip
opensim-SC-002336e95c928405394c18eb7d7e77e7b15bd259.tar.gz
opensim-SC-002336e95c928405394c18eb7d7e77e7b15bd259.tar.bz2
opensim-SC-002336e95c928405394c18eb7d7e77e7b15bd259.tar.xz
Done some more conversion work on the asset server
Diffstat (limited to '')
-rw-r--r--OpenSim.GridInterfaces/Remote/RemoteAssetServer.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim.GridInterfaces/Remote/RemoteAssetServer.cs b/OpenSim.GridInterfaces/Remote/RemoteAssetServer.cs
index d2f8de1..bcebf82 100644
--- a/OpenSim.GridInterfaces/Remote/RemoteAssetServer.cs
+++ b/OpenSim.GridInterfaces/Remote/RemoteAssetServer.cs
@@ -62,11 +62,12 @@ namespace OpenSim.GridInterfaces.Remote
62 { 62 {
63 while (true) 63 while (true)
64 { 64 {
65 //we need to add support for the asset server not knowing about a requested asset 65 //we need to add support for the asset server not knowing about a requested asset
66 // 404... THE MAGIC FILE NOT FOUND ERROR, very useful for telling you things such as a file (or asset ;) ) not being found!!!!!!!!!!! it's 2:22AM
66 ARequest req = this._assetRequests.Dequeue(); 67 ARequest req = this._assetRequests.Dequeue();
67 LLUUID assetID = req.AssetID; 68 LLUUID assetID = req.AssetID;
68 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(" RemoteAssetServer- Got a AssetServer request, processing it - " + this.AssetServerUrl + "getasset/" + AssetSendKey + "/" + assetID + "/data"); 69 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(" RemoteAssetServer- Got a AssetServer request, processing it - " + this.AssetServerUrl + "assets/" + assetID + "/data");
69 WebRequest AssetLoad = WebRequest.Create(this.AssetServerUrl + "getasset/" + AssetSendKey + "/" + assetID + "/data"); 70 WebRequest AssetLoad = WebRequest.Create(this.AssetServerUrl + "assets/" + assetID + "/data");
70 WebResponse AssetResponse = AssetLoad.GetResponse(); 71 WebResponse AssetResponse = AssetLoad.GetResponse();
71 byte[] idata = new byte[(int)AssetResponse.ContentLength]; 72 byte[] idata = new byte[(int)AssetResponse.ContentLength];
72 BinaryReader br = new BinaryReader(AssetResponse.GetResponseStream()); 73 BinaryReader br = new BinaryReader(AssetResponse.GetResponseStream());