diff options
author | Melanie Thielker | 2008-11-19 06:25:34 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-11-19 06:25:34 +0000 |
commit | f518ca7feb33c0c1641ccb8f3956246b855f9b6c (patch) | |
tree | 8dafdff97f14290b259bb04a03c5e7bb98756c24 /OpenSim | |
parent | Reverting the texture sending patch and the new libOMV. This makes this (diff) | |
download | opensim-SC-f518ca7feb33c0c1641ccb8f3956246b855f9b6c.zip opensim-SC-f518ca7feb33c0c1641ccb8f3956246b855f9b6c.tar.gz opensim-SC-f518ca7feb33c0c1641ccb8f3956246b855f9b6c.tar.bz2 opensim-SC-f518ca7feb33c0c1641ccb8f3956246b855f9b6c.tar.xz |
Reapply r7369 r7367 r7366 r7370 r7381. This brings it back up to the new
libOMV.
Diffstat (limited to '')
48 files changed, 452 insertions, 451 deletions
diff --git a/OpenSim/Data/RegionProfileData.cs b/OpenSim/Data/RegionProfileData.cs index b30fcf5..a683bf1 100644 --- a/OpenSim/Data/RegionProfileData.cs +++ b/OpenSim/Data/RegionProfileData.cs | |||
@@ -153,7 +153,7 @@ namespace OpenSim.Data | |||
153 | simData.regionLocX = Convert.ToUInt32((string) responseData["region_locx"]); | 153 | simData.regionLocX = Convert.ToUInt32((string) responseData["region_locx"]); |
154 | simData.regionLocY = Convert.ToUInt32((string) responseData["region_locy"]); | 154 | simData.regionLocY = Convert.ToUInt32((string) responseData["region_locy"]); |
155 | simData.regionHandle = | 155 | simData.regionHandle = |
156 | Helpers.UIntsToLong((simData.regionLocX*Constants.RegionSize), | 156 | Utils.UIntsToLong((simData.regionLocX * Constants.RegionSize), |
157 | (simData.regionLocY*Constants.RegionSize)); | 157 | (simData.regionLocY*Constants.RegionSize)); |
158 | simData.serverIP = (string) responseData["sim_ip"]; | 158 | simData.serverIP = (string) responseData["sim_ip"]; |
159 | simData.serverPort = Convert.ToUInt32((string) responseData["sim_port"]); | 159 | simData.serverPort = Convert.ToUInt32((string) responseData["sim_port"]); |
diff --git a/OpenSim/Framework/Communications/Capabilities/Caps.cs b/OpenSim/Framework/Communications/Capabilities/Caps.cs index 28e56da..b4a0473 100644 --- a/OpenSim/Framework/Communications/Capabilities/Caps.cs +++ b/OpenSim/Framework/Communications/Capabilities/Caps.cs | |||
@@ -159,7 +159,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
159 | m_capsHandlers["SEED"] = new RestStreamHandler("POST", capsBase + m_requestPath, CapsRequest); | 159 | m_capsHandlers["SEED"] = new RestStreamHandler("POST", capsBase + m_requestPath, CapsRequest); |
160 | m_log.Warn("[SEED]: " + capsBase + m_requestPath); | 160 | m_log.Warn("[SEED]: " + capsBase + m_requestPath); |
161 | //m_capsHandlers["MapLayer"] = | 161 | //m_capsHandlers["MapLayer"] = |
162 | // new LLSDStreamhandler<LLSDMapRequest, LLSDMapLayerResponse>("POST", | 162 | // new LLSDStreamhandler<OSDMapRequest, OSDMapLayerResponse>("POST", |
163 | // capsBase + m_mapLayerPath, | 163 | // capsBase + m_mapLayerPath, |
164 | // GetMapLayer); | 164 | // GetMapLayer); |
165 | m_capsHandlers["NewFileAgentInventory"] = | 165 | m_capsHandlers["NewFileAgentInventory"] = |
@@ -297,7 +297,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
297 | Hashtable inventoryhash = (Hashtable)foldersrequested[i]; | 297 | Hashtable inventoryhash = (Hashtable)foldersrequested[i]; |
298 | 298 | ||
299 | LLSDFetchInventoryDescendents llsdRequest = new LLSDFetchInventoryDescendents(); | 299 | LLSDFetchInventoryDescendents llsdRequest = new LLSDFetchInventoryDescendents(); |
300 | LLSDHelpers.DeserialiseLLSDMap(inventoryhash, llsdRequest); | 300 | LLSDHelpers.DeserialiseOSDMap(inventoryhash, llsdRequest); |
301 | LLSDInventoryDescendents reply = FetchInventoryReply(llsdRequest); | 301 | LLSDInventoryDescendents reply = FetchInventoryReply(llsdRequest); |
302 | 302 | ||
303 | inventoryitemstr = LLSDHelpers.SerialiseLLSDReply(reply); | 303 | inventoryitemstr = LLSDHelpers.SerialiseLLSDReply(reply); |
@@ -431,7 +431,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
431 | { | 431 | { |
432 | m_log.Debug("[CAPS]: MapLayer Request in region: " + m_regionName); | 432 | m_log.Debug("[CAPS]: MapLayer Request in region: " + m_regionName); |
433 | LLSDMapLayerResponse mapResponse = new LLSDMapLayerResponse(); | 433 | LLSDMapLayerResponse mapResponse = new LLSDMapLayerResponse(); |
434 | mapResponse.LayerData.Array.Add(GetLLSDMapLayerResponse()); | 434 | mapResponse.LayerData.Array.Add(GetOSDMapLayerResponse()); |
435 | return mapResponse; | 435 | return mapResponse; |
436 | } | 436 | } |
437 | 437 | ||
@@ -439,9 +439,9 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
439 | /// | 439 | /// |
440 | /// </summary> | 440 | /// </summary> |
441 | /// <returns></returns> | 441 | /// <returns></returns> |
442 | protected static LLSDMapLayer GetLLSDMapLayerResponse() | 442 | protected static OSDMapLayer GetOSDMapLayerResponse() |
443 | { | 443 | { |
444 | LLSDMapLayer mapLayer = new LLSDMapLayer(); | 444 | OSDMapLayer mapLayer = new OSDMapLayer(); |
445 | mapLayer.Right = 5000; | 445 | mapLayer.Right = 5000; |
446 | mapLayer.Top = 5000; | 446 | mapLayer.Top = 5000; |
447 | mapLayer.ImageID = new UUID("00000000-0000-1111-9999-000000000006"); | 447 | mapLayer.ImageID = new UUID("00000000-0000-1111-9999-000000000006"); |
@@ -545,7 +545,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
545 | 545 | ||
546 | Hashtable hash = (Hashtable) LLSD.LLSDDeserialize(Utils.StringToBytes(request)); | 546 | Hashtable hash = (Hashtable) LLSD.LLSDDeserialize(Utils.StringToBytes(request)); |
547 | LLSDTaskScriptUpdate llsdUpdateRequest = new LLSDTaskScriptUpdate(); | 547 | LLSDTaskScriptUpdate llsdUpdateRequest = new LLSDTaskScriptUpdate(); |
548 | LLSDHelpers.DeserialiseLLSDMap(hash, llsdUpdateRequest); | 548 | LLSDHelpers.DeserialiseOSDMap(hash, llsdUpdateRequest); |
549 | 549 | ||
550 | string capsBase = "/CAPS/" + m_capsObjectPath; | 550 | string capsBase = "/CAPS/" + m_capsObjectPath; |
551 | string uploaderPath = Util.RandomClass.Next(5000, 8000).ToString("0000"); | 551 | string uploaderPath = Util.RandomClass.Next(5000, 8000).ToString("0000"); |
@@ -600,10 +600,10 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
600 | OSHttpRequest httpRequest, OSHttpResponse httpResponse) | 600 | OSHttpRequest httpRequest, OSHttpResponse httpResponse) |
601 | { | 601 | { |
602 | m_log.Debug("[CAPS]: NoteCardAgentInventory Request in region: " + m_regionName); | 602 | m_log.Debug("[CAPS]: NoteCardAgentInventory Request in region: " + m_regionName); |
603 | //OpenMetaverse.StructuredData.LLSDMap hash = (OpenMetaverse.StructuredData.LLSDMap)OpenMetaverse.StructuredData.LLSDParser.DeserializeBinary(Utils.StringToBytes(request)); | 603 | //OpenMetaverse.StructuredData.OSDMap hash = (OpenMetaverse.StructuredData.OSDMap)OpenMetaverse.StructuredData.LLSDParser.DeserializeBinary(Utils.StringToBytes(request)); |
604 | Hashtable hash = (Hashtable) LLSD.LLSDDeserialize(Utils.StringToBytes(request)); | 604 | Hashtable hash = (Hashtable) LLSD.LLSDDeserialize(Utils.StringToBytes(request)); |
605 | LLSDItemUpdate llsdRequest = new LLSDItemUpdate(); | 605 | LLSDItemUpdate llsdRequest = new LLSDItemUpdate(); |
606 | LLSDHelpers.DeserialiseLLSDMap(hash, llsdRequest); | 606 | LLSDHelpers.DeserialiseOSDMap(hash, llsdRequest); |
607 | 607 | ||
608 | string capsBase = "/CAPS/" + m_capsObjectPath; | 608 | string capsBase = "/CAPS/" + m_capsObjectPath; |
609 | string uploaderPath = Util.RandomClass.Next(5000, 8000).ToString("0000"); | 609 | string uploaderPath = Util.RandomClass.Next(5000, 8000).ToString("0000"); |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDArray.cs b/OpenSim/Framework/Communications/Capabilities/LLSDArray.cs index 3579cc2..668ca79 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDArray.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDArray.cs | |||
@@ -30,11 +30,11 @@ using System.Collections; | |||
30 | namespace OpenSim.Framework.Communications.Capabilities | 30 | namespace OpenSim.Framework.Communications.Capabilities |
31 | { | 31 | { |
32 | [LLSDType("ARRAY")] | 32 | [LLSDType("ARRAY")] |
33 | public class LLSDArray | 33 | public class OSDArray |
34 | { | 34 | { |
35 | public ArrayList Array = new ArrayList(); | 35 | public ArrayList Array = new ArrayList(); |
36 | 36 | ||
37 | public LLSDArray() | 37 | public OSDArray() |
38 | { | 38 | { |
39 | } | 39 | } |
40 | } | 40 | } |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadRequest.cs b/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadRequest.cs index 5833b65..16547d5 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadRequest.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadRequest.cs | |||
@@ -30,7 +30,7 @@ using OpenMetaverse; | |||
30 | 30 | ||
31 | namespace OpenSim.Framework.Communications.Capabilities | 31 | namespace OpenSim.Framework.Communications.Capabilities |
32 | { | 32 | { |
33 | [LLSDMap] | 33 | [OSDMap] |
34 | public class LLSDAssetUploadRequest | 34 | public class LLSDAssetUploadRequest |
35 | { | 35 | { |
36 | public string asset_type = String.Empty; | 36 | public string asset_type = String.Empty; |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadResponse.cs b/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadResponse.cs index 63b3351..04e9ed7 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadResponse.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadResponse.cs | |||
@@ -29,7 +29,7 @@ using System; | |||
29 | 29 | ||
30 | namespace OpenSim.Framework.Communications.Capabilities | 30 | namespace OpenSim.Framework.Communications.Capabilities |
31 | { | 31 | { |
32 | [LLSDMap] | 32 | [OSDMap] |
33 | public class LLSDAssetUploadResponse | 33 | public class LLSDAssetUploadResponse |
34 | { | 34 | { |
35 | public string uploader = String.Empty; | 35 | public string uploader = String.Empty; |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDCapEvent.cs b/OpenSim/Framework/Communications/Capabilities/LLSDCapEvent.cs index 5ff21b8..d8a6265 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDCapEvent.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDCapEvent.cs | |||
@@ -31,7 +31,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
31 | public class LLSDCapEvent | 31 | public class LLSDCapEvent |
32 | { | 32 | { |
33 | public int id = 0; | 33 | public int id = 0; |
34 | public LLSDArray events = new LLSDArray(); | 34 | public OSDArray events = new OSDArray(); |
35 | 35 | ||
36 | public LLSDCapEvent() | 36 | public LLSDCapEvent() |
37 | { | 37 | { |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDHelpers.cs b/OpenSim/Framework/Communications/Capabilities/LLSDHelpers.cs index b14bfdd..ae4a3db 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDHelpers.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDHelpers.cs | |||
@@ -44,7 +44,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
44 | XmlTextWriter writer = new XmlTextWriter(sw); | 44 | XmlTextWriter writer = new XmlTextWriter(sw); |
45 | writer.Formatting = Formatting.None; | 45 | writer.Formatting = Formatting.None; |
46 | writer.WriteStartElement(String.Empty, "llsd", String.Empty); | 46 | writer.WriteStartElement(String.Empty, "llsd", String.Empty); |
47 | SerializeLLSDType(writer, obj); | 47 | SerializeOSDType(writer, obj); |
48 | writer.WriteEndElement(); | 48 | writer.WriteEndElement(); |
49 | writer.Close(); | 49 | writer.Close(); |
50 | 50 | ||
@@ -53,7 +53,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
53 | return sw.ToString(); | 53 | return sw.ToString(); |
54 | } | 54 | } |
55 | 55 | ||
56 | private static void SerializeLLSDType(XmlTextWriter writer, object obj) | 56 | private static void SerializeOSDType(XmlTextWriter writer, object obj) |
57 | { | 57 | { |
58 | Type myType = obj.GetType(); | 58 | Type myType = obj.GetType(); |
59 | LLSDType[] llsdattributes = (LLSDType[]) myType.GetCustomAttributes(typeof (LLSDType), false); | 59 | LLSDType[] llsdattributes = (LLSDType[]) myType.GetCustomAttributes(typeof (LLSDType), false); |
@@ -76,7 +76,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
76 | fieldName = fieldName.Replace("___", "-"); | 76 | fieldName = fieldName.Replace("___", "-"); |
77 | writer.WriteString(fieldName); | 77 | writer.WriteString(fieldName); |
78 | writer.WriteEndElement(); | 78 | writer.WriteEndElement(); |
79 | SerializeLLSDType(writer, fieldValue); | 79 | SerializeOSDType(writer, fieldValue); |
80 | } | 80 | } |
81 | else | 81 | else |
82 | { | 82 | { |
@@ -87,13 +87,13 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
87 | writer.WriteEndElement(); | 87 | writer.WriteEndElement(); |
88 | LLSD.LLSDWriteOne(writer, fieldValue); | 88 | LLSD.LLSDWriteOne(writer, fieldValue); |
89 | // OpenMetaverse.StructuredData.LLSDParser.SerializeXmlElement( | 89 | // OpenMetaverse.StructuredData.LLSDParser.SerializeXmlElement( |
90 | // writer, OpenMetaverse.StructuredData.LLSD.FromObject(fieldValue)); | 90 | // writer, OpenMetaverse.StructuredData.OSD.FromObject(fieldValue)); |
91 | } | 91 | } |
92 | } | 92 | } |
93 | writer.WriteEndElement(); | 93 | writer.WriteEndElement(); |
94 | break; | 94 | break; |
95 | case "ARRAY": | 95 | case "ARRAY": |
96 | // LLSDArray arrayObject = obj as LLSDArray; | 96 | // OSDArray arrayObject = obj as OSDArray; |
97 | // ArrayList a = arrayObject.Array; | 97 | // ArrayList a = arrayObject.Array; |
98 | ArrayList a = (ArrayList) obj.GetType().GetField("Array").GetValue(obj); | 98 | ArrayList a = (ArrayList) obj.GetType().GetField("Array").GetValue(obj); |
99 | if (a != null) | 99 | if (a != null) |
@@ -101,7 +101,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
101 | writer.WriteStartElement(String.Empty, "array", String.Empty); | 101 | writer.WriteStartElement(String.Empty, "array", String.Empty); |
102 | foreach (object item in a) | 102 | foreach (object item in a) |
103 | { | 103 | { |
104 | SerializeLLSDType(writer, item); | 104 | SerializeOSDType(writer, item); |
105 | } | 105 | } |
106 | writer.WriteEndElement(); | 106 | writer.WriteEndElement(); |
107 | } | 107 | } |
@@ -112,11 +112,11 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
112 | { | 112 | { |
113 | LLSD.LLSDWriteOne(writer, obj); | 113 | LLSD.LLSDWriteOne(writer, obj); |
114 | //OpenMetaverse.StructuredData.LLSDParser.SerializeXmlElement( | 114 | //OpenMetaverse.StructuredData.LLSDParser.SerializeXmlElement( |
115 | // writer, OpenMetaverse.StructuredData.LLSD.FromObject(obj)); | 115 | // writer, OpenMetaverse.StructuredData.OSD.FromObject(obj)); |
116 | } | 116 | } |
117 | } | 117 | } |
118 | 118 | ||
119 | public static object DeserialiseLLSDMap(Hashtable llsd, object obj) | 119 | public static object DeserialiseOSDMap(Hashtable llsd, object obj) |
120 | { | 120 | { |
121 | Type myType = obj.GetType(); | 121 | Type myType = obj.GetType(); |
122 | LLSDType[] llsdattributes = (LLSDType[]) myType.GetCustomAttributes(typeof (LLSDType), false); | 122 | LLSDType[] llsdattributes = (LLSDType[]) myType.GetCustomAttributes(typeof (LLSDType), false); |
@@ -133,12 +133,12 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
133 | FieldInfo field = myType.GetField(keyName); | 133 | FieldInfo field = myType.GetField(keyName); |
134 | if (field != null) | 134 | if (field != null) |
135 | { | 135 | { |
136 | // if (enumerator.Value is OpenMetaverse.StructuredData.LLSDMap) | 136 | // if (enumerator.Value is OpenMetaverse.StructuredData.OSDMap) |
137 | if (enumerator.Value is Hashtable) | 137 | if (enumerator.Value is Hashtable) |
138 | { | 138 | { |
139 | object fieldValue = field.GetValue(obj); | 139 | object fieldValue = field.GetValue(obj); |
140 | DeserialiseLLSDMap((Hashtable) enumerator.Value, fieldValue); | 140 | DeserialiseOSDMap((Hashtable) enumerator.Value, fieldValue); |
141 | // DeserialiseLLSDMap((OpenMetaverse.StructuredData.LLSDMap) enumerator.Value, fieldValue); | 141 | // DeserialiseOSDMap((OpenMetaverse.StructuredData.OSDMap) enumerator.Value, fieldValue); |
142 | } | 142 | } |
143 | else if (enumerator.Value is ArrayList) | 143 | else if (enumerator.Value is ArrayList) |
144 | { | 144 | { |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs b/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs index ff36821..3651513 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs | |||
@@ -29,7 +29,7 @@ using OpenMetaverse; | |||
29 | 29 | ||
30 | namespace OpenSim.Framework.Communications.Capabilities | 30 | namespace OpenSim.Framework.Communications.Capabilities |
31 | { | 31 | { |
32 | [LLSDMap] | 32 | [OSDMap] |
33 | public class LLSDInventoryItem | 33 | public class LLSDInventoryItem |
34 | { | 34 | { |
35 | public UUID parent_id; | 35 | public UUID parent_id; |
@@ -47,7 +47,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
47 | public int created_at; | 47 | public int created_at; |
48 | } | 48 | } |
49 | 49 | ||
50 | [LLSDMap] | 50 | [OSDMap] |
51 | public class LLSDPermissions | 51 | public class LLSDPermissions |
52 | { | 52 | { |
53 | public UUID creator_id; | 53 | public UUID creator_id; |
@@ -61,20 +61,20 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
61 | public bool is_owner_group; | 61 | public bool is_owner_group; |
62 | } | 62 | } |
63 | 63 | ||
64 | [LLSDMap] | 64 | [OSDMap] |
65 | public class LLSDSaleInfo | 65 | public class LLSDSaleInfo |
66 | { | 66 | { |
67 | public int sale_price; | 67 | public int sale_price; |
68 | public string sale_type; | 68 | public string sale_type; |
69 | } | 69 | } |
70 | 70 | ||
71 | [LLSDMap] | 71 | [OSDMap] |
72 | public class LLSDInventoryDescendents | 72 | public class LLSDInventoryDescendents |
73 | { | 73 | { |
74 | public LLSDArray folders = new LLSDArray(); | 74 | public OSDArray folders = new OSDArray(); |
75 | } | 75 | } |
76 | 76 | ||
77 | [LLSDMap] | 77 | [OSDMap] |
78 | public class LLSDFetchInventoryDescendents | 78 | public class LLSDFetchInventoryDescendents |
79 | { | 79 | { |
80 | public UUID folder_id; | 80 | public UUID folder_id; |
@@ -84,13 +84,13 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
84 | public bool fetch_items; | 84 | public bool fetch_items; |
85 | } | 85 | } |
86 | 86 | ||
87 | [LLSDMap] | 87 | [OSDMap] |
88 | public class LLSDInventoryFolderContents | 88 | public class LLSDInventoryFolderContents |
89 | { | 89 | { |
90 | public UUID agent___id; // the (three "_") "___" so the serialising knows to change this to a "-" | 90 | public UUID agent___id; // the (three "_") "___" so the serialising knows to change this to a "-" |
91 | public int descendents; | 91 | public int descendents; |
92 | public UUID folder___id; //as LL can't decide if they are going to use "_" or "-" to separate words in the field names | 92 | public UUID folder___id; //as LL can't decide if they are going to use "_" or "-" to separate words in the field names |
93 | public LLSDArray items = new LLSDArray(); | 93 | public OSDArray items = new OSDArray(); |
94 | public UUID owner___id; // and of course we can't have field names with "-" in | 94 | public UUID owner___id; // and of course we can't have field names with "-" in |
95 | public int version; | 95 | public int version; |
96 | } | 96 | } |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDItemUpdate.cs b/OpenSim/Framework/Communications/Capabilities/LLSDItemUpdate.cs index c147bd3..4568732 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDItemUpdate.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDItemUpdate.cs | |||
@@ -29,7 +29,7 @@ using OpenMetaverse; | |||
29 | 29 | ||
30 | namespace OpenSim.Framework.Communications.Capabilities | 30 | namespace OpenSim.Framework.Communications.Capabilities |
31 | { | 31 | { |
32 | [LLSDMap] | 32 | [OSDMap] |
33 | public class LLSDItemUpdate | 33 | public class LLSDItemUpdate |
34 | { | 34 | { |
35 | public UUID item_id; | 35 | public UUID item_id; |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDMapLayer.cs b/OpenSim/Framework/Communications/Capabilities/LLSDMapLayer.cs index fc381e4..356fa5e 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDMapLayer.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDMapLayer.cs | |||
@@ -30,7 +30,7 @@ using OpenMetaverse; | |||
30 | namespace OpenSim.Framework.Communications.Capabilities | 30 | namespace OpenSim.Framework.Communications.Capabilities |
31 | { | 31 | { |
32 | [LLSDType("MAP")] | 32 | [LLSDType("MAP")] |
33 | public class LLSDMapLayer | 33 | public class OSDMapLayer |
34 | { | 34 | { |
35 | public int Left = 0; | 35 | public int Left = 0; |
36 | public int Right = 0; | 36 | public int Right = 0; |
@@ -38,7 +38,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
38 | public int Bottom = 0; | 38 | public int Bottom = 0; |
39 | public UUID ImageID = UUID.Zero; | 39 | public UUID ImageID = UUID.Zero; |
40 | 40 | ||
41 | public LLSDMapLayer() | 41 | public OSDMapLayer() |
42 | { | 42 | { |
43 | } | 43 | } |
44 | } | 44 | } |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDMapLayerResponse.cs b/OpenSim/Framework/Communications/Capabilities/LLSDMapLayerResponse.cs index 7dabbec..26815f9 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDMapLayerResponse.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDMapLayerResponse.cs | |||
@@ -31,7 +31,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
31 | public class LLSDMapLayerResponse | 31 | public class LLSDMapLayerResponse |
32 | { | 32 | { |
33 | public LLSDMapRequest AgentData = new LLSDMapRequest(); | 33 | public LLSDMapRequest AgentData = new LLSDMapRequest(); |
34 | public LLSDArray LayerData = new LLSDArray(); | 34 | public OSDArray LayerData = new OSDArray(); |
35 | 35 | ||
36 | public LLSDMapLayerResponse() | 36 | public LLSDMapLayerResponse() |
37 | { | 37 | { |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDParcelVoiceInfoResponse.cs b/OpenSim/Framework/Communications/Capabilities/LLSDParcelVoiceInfoResponse.cs index c045dcf..829a2a9 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDParcelVoiceInfoResponse.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDParcelVoiceInfoResponse.cs | |||
@@ -30,7 +30,7 @@ using System.Collections; | |||
30 | 30 | ||
31 | namespace OpenSim.Framework.Communications.Capabilities | 31 | namespace OpenSim.Framework.Communications.Capabilities |
32 | { | 32 | { |
33 | [LLSDMap] | 33 | [OSDMap] |
34 | public class LLSDParcelVoiceInfoResponse | 34 | public class LLSDParcelVoiceInfoResponse |
35 | { | 35 | { |
36 | public int parcel_local_id; | 36 | public int parcel_local_id; |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDStreamHandler.cs b/OpenSim/Framework/Communications/Capabilities/LLSDStreamHandler.cs index 7fcbb81..c68a205 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDStreamHandler.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDStreamHandler.cs | |||
@@ -53,12 +53,12 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
53 | //string requestBody = streamReader.ReadToEnd(); | 53 | //string requestBody = streamReader.ReadToEnd(); |
54 | //streamReader.Close(); | 54 | //streamReader.Close(); |
55 | 55 | ||
56 | // OpenMetaverse.StructuredData.LLSDMap hash = (OpenMetaverse.StructuredData.LLSDMap) | 56 | // OpenMetaverse.StructuredData.OSDMap hash = (OpenMetaverse.StructuredData.OSDMap) |
57 | // OpenMetaverse.StructuredData.LLSDParser.DeserializeXml(new XmlTextReader(request)); | 57 | // OpenMetaverse.StructuredData.LLSDParser.DeserializeXml(new XmlTextReader(request)); |
58 | 58 | ||
59 | Hashtable hash = (Hashtable) LLSD.LLSDDeserialize(request); | 59 | Hashtable hash = (Hashtable) LLSD.LLSDDeserialize(request); |
60 | TRequest llsdRequest = new TRequest(); | 60 | TRequest llsdRequest = new TRequest(); |
61 | LLSDHelpers.DeserialiseLLSDMap(hash, llsdRequest); | 61 | LLSDHelpers.DeserialiseOSDMap(hash, llsdRequest); |
62 | 62 | ||
63 | TResponse response = m_method(llsdRequest); | 63 | TResponse response = m_method(llsdRequest); |
64 | 64 | ||
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDTaskInventoryUploadComplete.cs b/OpenSim/Framework/Communications/Capabilities/LLSDTaskInventoryUploadComplete.cs index b34cbf9..bcea657 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDTaskInventoryUploadComplete.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDTaskInventoryUploadComplete.cs | |||
@@ -29,7 +29,7 @@ using OpenMetaverse; | |||
29 | 29 | ||
30 | namespace OpenSim.Framework.Communications.Capabilities | 30 | namespace OpenSim.Framework.Communications.Capabilities |
31 | { | 31 | { |
32 | [LLSDMap] | 32 | [OSDMap] |
33 | public class LLSDTaskInventoryUploadComplete | 33 | public class LLSDTaskInventoryUploadComplete |
34 | { | 34 | { |
35 | /// <summary> | 35 | /// <summary> |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDTaskScriptUpdate.cs b/OpenSim/Framework/Communications/Capabilities/LLSDTaskScriptUpdate.cs index 730e95b..7401768 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDTaskScriptUpdate.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDTaskScriptUpdate.cs | |||
@@ -29,7 +29,7 @@ using OpenMetaverse; | |||
29 | 29 | ||
30 | namespace OpenSim.Framework.Communications.Capabilities | 30 | namespace OpenSim.Framework.Communications.Capabilities |
31 | { | 31 | { |
32 | [LLSDMap] | 32 | [OSDMap] |
33 | public class LLSDTaskScriptUpdate | 33 | public class LLSDTaskScriptUpdate |
34 | { | 34 | { |
35 | /// <summary> | 35 | /// <summary> |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDType.cs b/OpenSim/Framework/Communications/Capabilities/LLSDType.cs index 181a465..949e119 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDType.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDType.cs | |||
@@ -46,9 +46,9 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
46 | } | 46 | } |
47 | 47 | ||
48 | [AttributeUsage(AttributeTargets.Class)] | 48 | [AttributeUsage(AttributeTargets.Class)] |
49 | public class LLSDMap : LLSDType | 49 | public class OSDMap : LLSDType |
50 | { | 50 | { |
51 | public LLSDMap() : base("MAP") | 51 | public OSDMap() : base("MAP") |
52 | { | 52 | { |
53 | } | 53 | } |
54 | } | 54 | } |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDVoiceAccountResponse.cs b/OpenSim/Framework/Communications/Capabilities/LLSDVoiceAccountResponse.cs index 8143233..6cd5ee3 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDVoiceAccountResponse.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDVoiceAccountResponse.cs | |||
@@ -28,7 +28,7 @@ | |||
28 | 28 | ||
29 | namespace OpenSim.Framework.Communications.Capabilities | 29 | namespace OpenSim.Framework.Communications.Capabilities |
30 | { | 30 | { |
31 | [LLSDMap] | 31 | [OSDMap] |
32 | public class LLSDVoiceAccountResponse | 32 | public class LLSDVoiceAccountResponse |
33 | { | 33 | { |
34 | public string username; | 34 | public string username; |
diff --git a/OpenSim/Framework/Communications/LoginResponse.cs b/OpenSim/Framework/Communications/LoginResponse.cs index b2565b1..867e9e6 100644 --- a/OpenSim/Framework/Communications/LoginResponse.cs +++ b/OpenSim/Framework/Communications/LoginResponse.cs | |||
@@ -201,17 +201,17 @@ namespace OpenSim.Framework.Communications | |||
201 | return (xmlRpcResponse); | 201 | return (xmlRpcResponse); |
202 | } | 202 | } |
203 | 203 | ||
204 | public LLSD GenerateFailureResponseLLSD(string reason, string message, string login) | 204 | public OSD GenerateFailureResponseLLSD(string reason, string message, string login) |
205 | { | 205 | { |
206 | LLSDMap map = new LLSDMap(); | 206 | OSDMap map = new OSDMap(); |
207 | 207 | ||
208 | // Ensure Login Failed message/reason; | 208 | // Ensure Login Failed message/reason; |
209 | ErrorMessage = message; | 209 | ErrorMessage = message; |
210 | ErrorReason = reason; | 210 | ErrorReason = reason; |
211 | 211 | ||
212 | map["reason"] = LLSD.FromString(ErrorReason); | 212 | map["reason"] = OSD.FromString(ErrorReason); |
213 | map["message"] = LLSD.FromString(ErrorMessage); | 213 | map["message"] = OSD.FromString(ErrorMessage); |
214 | map["login"] = LLSD.FromString(login); | 214 | map["login"] = OSD.FromString(login); |
215 | 215 | ||
216 | return map; | 216 | return map; |
217 | } | 217 | } |
@@ -221,7 +221,7 @@ namespace OpenSim.Framework.Communications | |||
221 | return (CreateLoginFailedResponse()); | 221 | return (CreateLoginFailedResponse()); |
222 | } | 222 | } |
223 | 223 | ||
224 | public LLSD CreateFailedResponseLLSD() | 224 | public OSD CreateFailedResponseLLSD() |
225 | { | 225 | { |
226 | return CreateLoginFailedResponseLLSD(); | 226 | return CreateLoginFailedResponseLLSD(); |
227 | } | 227 | } |
@@ -234,7 +234,7 @@ namespace OpenSim.Framework.Communications | |||
234 | "false")); | 234 | "false")); |
235 | } | 235 | } |
236 | 236 | ||
237 | public LLSD CreateLoginFailedResponseLLSD() | 237 | public OSD CreateLoginFailedResponseLLSD() |
238 | { | 238 | { |
239 | return GenerateFailureResponseLLSD( | 239 | return GenerateFailureResponseLLSD( |
240 | "key", | 240 | "key", |
@@ -265,7 +265,7 @@ namespace OpenSim.Framework.Communications | |||
265 | "false")); | 265 | "false")); |
266 | } | 266 | } |
267 | 267 | ||
268 | public LLSD CreateAlreadyLoggedInResponseLLSD() | 268 | public OSD CreateAlreadyLoggedInResponseLLSD() |
269 | { | 269 | { |
270 | return GenerateFailureResponseLLSD( | 270 | return GenerateFailureResponseLLSD( |
271 | "presence", | 271 | "presence", |
@@ -283,7 +283,7 @@ namespace OpenSim.Framework.Communications | |||
283 | "false")); | 283 | "false")); |
284 | } | 284 | } |
285 | 285 | ||
286 | public LLSD CreateLoginBlockedResponseLLSD() | 286 | public OSD CreateLoginBlockedResponseLLSD() |
287 | { | 287 | { |
288 | return GenerateFailureResponseLLSD( | 288 | return GenerateFailureResponseLLSD( |
289 | "presence", | 289 | "presence", |
@@ -299,7 +299,7 @@ namespace OpenSim.Framework.Communications | |||
299 | "false")); | 299 | "false")); |
300 | } | 300 | } |
301 | 301 | ||
302 | public LLSD CreateDeadRegionResponseLLSD() | 302 | public OSD CreateDeadRegionResponseLLSD() |
303 | { | 303 | { |
304 | return GenerateFailureResponseLLSD( | 304 | return GenerateFailureResponseLLSD( |
305 | "key", | 305 | "key", |
@@ -315,7 +315,7 @@ namespace OpenSim.Framework.Communications | |||
315 | "false")); | 315 | "false")); |
316 | } | 316 | } |
317 | 317 | ||
318 | public LLSD CreateGridErrorResponseLLSD() | 318 | public OSD CreateGridErrorResponseLLSD() |
319 | { | 319 | { |
320 | return GenerateFailureResponseLLSD( | 320 | return GenerateFailureResponseLLSD( |
321 | "key", | 321 | "key", |
@@ -404,90 +404,90 @@ namespace OpenSim.Framework.Communications | |||
404 | } | 404 | } |
405 | } | 405 | } |
406 | 406 | ||
407 | public LLSD ToLLSDResponse() | 407 | public OSD ToLLSDResponse() |
408 | { | 408 | { |
409 | try | 409 | try |
410 | { | 410 | { |
411 | LLSDMap map = new LLSDMap(); | 411 | OSDMap map = new OSDMap(); |
412 | 412 | ||
413 | map["first_name"] = LLSD.FromString(Firstname); | 413 | map["first_name"] = OSD.FromString(Firstname); |
414 | map["last_name"] = LLSD.FromString(Lastname); | 414 | map["last_name"] = OSD.FromString(Lastname); |
415 | map["agent_access"] = LLSD.FromString(agentAccess); | 415 | map["agent_access"] = OSD.FromString(agentAccess); |
416 | 416 | ||
417 | map["sim_port"] = LLSD.FromInteger(SimPort); | 417 | map["sim_port"] = OSD.FromInteger(SimPort); |
418 | map["sim_ip"] = LLSD.FromString(SimAddress); | 418 | map["sim_ip"] = OSD.FromString(SimAddress); |
419 | 419 | ||
420 | map["agent_id"] = LLSD.FromUUID(AgentID); | 420 | map["agent_id"] = OSD.FromUUID(AgentID); |
421 | map["session_id"] = LLSD.FromUUID(SessionID); | 421 | map["session_id"] = OSD.FromUUID(SessionID); |
422 | map["secure_session_id"] = LLSD.FromUUID(SecureSessionID); | 422 | map["secure_session_id"] = OSD.FromUUID(SecureSessionID); |
423 | map["circuit_code"] = LLSD.FromInteger(CircuitCode); | 423 | map["circuit_code"] = OSD.FromInteger(CircuitCode); |
424 | map["seconds_since_epoch"] = LLSD.FromInteger((int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds); | 424 | map["seconds_since_epoch"] = OSD.FromInteger((int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds); |
425 | 425 | ||
426 | #region Login Flags | 426 | #region Login Flags |
427 | 427 | ||
428 | LLSDMap loginFlagsLLSD = new LLSDMap(); | 428 | OSDMap loginFlagsLLSD = new OSDMap(); |
429 | loginFlagsLLSD["daylight_savings"] = LLSD.FromString(DST); | 429 | loginFlagsLLSD["daylight_savings"] = OSD.FromString(DST); |
430 | loginFlagsLLSD["stipend_since_login"] = LLSD.FromString(StipendSinceLogin); | 430 | loginFlagsLLSD["stipend_since_login"] = OSD.FromString(StipendSinceLogin); |
431 | loginFlagsLLSD["gendered"] = LLSD.FromString(Gendered); | 431 | loginFlagsLLSD["gendered"] = OSD.FromString(Gendered); |
432 | loginFlagsLLSD["ever_logged_in"] = LLSD.FromString(EverLoggedIn); | 432 | loginFlagsLLSD["ever_logged_in"] = OSD.FromString(EverLoggedIn); |
433 | map["login-flags"] = WrapLLSDMap(loginFlagsLLSD); | 433 | map["login-flags"] = WrapOSDMap(loginFlagsLLSD); |
434 | 434 | ||
435 | #endregion Login Flags | 435 | #endregion Login Flags |
436 | 436 | ||
437 | #region Global Textures | 437 | #region Global Textures |
438 | 438 | ||
439 | LLSDMap globalTexturesLLSD = new LLSDMap(); | 439 | OSDMap globalTexturesLLSD = new OSDMap(); |
440 | globalTexturesLLSD["sun_texture_id"] = LLSD.FromString(SunTexture); | 440 | globalTexturesLLSD["sun_texture_id"] = OSD.FromString(SunTexture); |
441 | globalTexturesLLSD["cloud_texture_id"] = LLSD.FromString(CloudTexture); | 441 | globalTexturesLLSD["cloud_texture_id"] = OSD.FromString(CloudTexture); |
442 | globalTexturesLLSD["moon_texture_id"] = LLSD.FromString(MoonTexture); | 442 | globalTexturesLLSD["moon_texture_id"] = OSD.FromString(MoonTexture); |
443 | 443 | ||
444 | map["global-textures"] = WrapLLSDMap(globalTexturesLLSD); | 444 | map["global-textures"] = WrapOSDMap(globalTexturesLLSD); |
445 | 445 | ||
446 | #endregion Global Textures | 446 | #endregion Global Textures |
447 | 447 | ||
448 | map["seed_capability"] = LLSD.FromString(seedCapability); | 448 | map["seed_capability"] = OSD.FromString(seedCapability); |
449 | 449 | ||
450 | map["event_categories"] = ArrayListToLLSDArray(eventCategories); | 450 | map["event_categories"] = ArrayListToOSDArray(eventCategories); |
451 | //map["event_notifications"] = new LLSDArray(); // todo | 451 | //map["event_notifications"] = new OSDArray(); // todo |
452 | map["classified_categories"] = ArrayListToLLSDArray(classifiedCategories); | 452 | map["classified_categories"] = ArrayListToOSDArray(classifiedCategories); |
453 | 453 | ||
454 | #region UI Config | 454 | #region UI Config |
455 | 455 | ||
456 | LLSDMap uiConfigLLSD = new LLSDMap(); | 456 | OSDMap uiConfigLLSD = new OSDMap(); |
457 | uiConfigLLSD["allow_first_life"] = LLSD.FromString(allowFirstLife); | 457 | uiConfigLLSD["allow_first_life"] = OSD.FromString(allowFirstLife); |
458 | map["ui-config"] = WrapLLSDMap(uiConfigLLSD); | 458 | map["ui-config"] = WrapOSDMap(uiConfigLLSD); |
459 | 459 | ||
460 | #endregion UI Config | 460 | #endregion UI Config |
461 | 461 | ||
462 | #region Inventory | 462 | #region Inventory |
463 | 463 | ||
464 | map["inventory-skeleton"] = ArrayListToLLSDArray(agentInventory); | 464 | map["inventory-skeleton"] = ArrayListToOSDArray(agentInventory); |
465 | 465 | ||
466 | map["inventory-skel-lib"] = ArrayListToLLSDArray(inventoryLibrary); | 466 | map["inventory-skel-lib"] = ArrayListToOSDArray(inventoryLibrary); |
467 | map["inventory-root"] = ArrayListToLLSDArray(inventoryRoot); ; | 467 | map["inventory-root"] = ArrayListToOSDArray(inventoryRoot); ; |
468 | map["inventory-lib-root"] = ArrayListToLLSDArray(inventoryLibRoot); | 468 | map["inventory-lib-root"] = ArrayListToOSDArray(inventoryLibRoot); |
469 | map["inventory-lib-owner"] = ArrayListToLLSDArray(inventoryLibraryOwner); | 469 | map["inventory-lib-owner"] = ArrayListToOSDArray(inventoryLibraryOwner); |
470 | 470 | ||
471 | #endregion Inventory | 471 | #endregion Inventory |
472 | 472 | ||
473 | map["gestures"] = ArrayListToLLSDArray(activeGestures); | 473 | map["gestures"] = ArrayListToOSDArray(activeGestures); |
474 | 474 | ||
475 | map["initial-outfit"] = ArrayListToLLSDArray(initialOutfit); | 475 | map["initial-outfit"] = ArrayListToOSDArray(initialOutfit); |
476 | map["start_location"] = LLSD.FromString(startLocation); | 476 | map["start_location"] = OSD.FromString(startLocation); |
477 | 477 | ||
478 | map["seed_capability"] = LLSD.FromString(seedCapability); | 478 | map["seed_capability"] = OSD.FromString(seedCapability); |
479 | map["home"] = LLSD.FromString(home); | 479 | map["home"] = OSD.FromString(home); |
480 | map["look_at"] = LLSD.FromString(lookAt); | 480 | map["look_at"] = OSD.FromString(lookAt); |
481 | map["message"] = LLSD.FromString(welcomeMessage); | 481 | map["message"] = OSD.FromString(welcomeMessage); |
482 | map["region_x"] = LLSD.FromInteger(RegionX * Constants.RegionSize); | 482 | map["region_x"] = OSD.FromInteger(RegionX * Constants.RegionSize); |
483 | map["region_y"] = LLSD.FromInteger(RegionY * Constants.RegionSize); | 483 | map["region_y"] = OSD.FromInteger(RegionY * Constants.RegionSize); |
484 | 484 | ||
485 | if (m_buddyList != null) | 485 | if (m_buddyList != null) |
486 | { | 486 | { |
487 | map["buddy-list"] = ArrayListToLLSDArray(m_buddyList.ToArray()); | 487 | map["buddy-list"] = ArrayListToOSDArray(m_buddyList.ToArray()); |
488 | } | 488 | } |
489 | 489 | ||
490 | map["login"] = LLSD.FromString("true"); | 490 | map["login"] = OSD.FromString("true"); |
491 | 491 | ||
492 | return map; | 492 | return map; |
493 | } | 493 | } |
@@ -499,24 +499,24 @@ namespace OpenSim.Framework.Communications | |||
499 | } | 499 | } |
500 | } | 500 | } |
501 | 501 | ||
502 | public LLSDArray ArrayListToLLSDArray(ArrayList arrlst) | 502 | public OSDArray ArrayListToOSDArray(ArrayList arrlst) |
503 | { | 503 | { |
504 | LLSDArray llsdBack = new LLSDArray(); | 504 | OSDArray llsdBack = new OSDArray(); |
505 | foreach (Hashtable ht in arrlst) | 505 | foreach (Hashtable ht in arrlst) |
506 | { | 506 | { |
507 | LLSDMap mp = new LLSDMap(); | 507 | OSDMap mp = new OSDMap(); |
508 | foreach (DictionaryEntry deHt in ht) | 508 | foreach (DictionaryEntry deHt in ht) |
509 | { | 509 | { |
510 | mp.Add((string)deHt.Key, LLSDString.FromObject(deHt.Value)); | 510 | mp.Add((string)deHt.Key, OSDString.FromObject(deHt.Value)); |
511 | } | 511 | } |
512 | llsdBack.Add(mp); | 512 | llsdBack.Add(mp); |
513 | } | 513 | } |
514 | return llsdBack; | 514 | return llsdBack; |
515 | } | 515 | } |
516 | 516 | ||
517 | private static LLSDArray WrapLLSDMap(LLSDMap wrapMe) | 517 | private static OSDArray WrapOSDMap(OSDMap wrapMe) |
518 | { | 518 | { |
519 | LLSDArray array = new LLSDArray(); | 519 | OSDArray array = new OSDArray(); |
520 | array.Add(wrapMe); | 520 | array.Add(wrapMe); |
521 | return array; | 521 | return array; |
522 | } | 522 | } |
diff --git a/OpenSim/Framework/Communications/LoginService.cs b/OpenSim/Framework/Communications/LoginService.cs index 7fd1c3b..b4ee069 100644 --- a/OpenSim/Framework/Communications/LoginService.cs +++ b/OpenSim/Framework/Communications/LoginService.cs | |||
@@ -321,7 +321,7 @@ namespace OpenSim.Framework.Communications | |||
321 | /// </summary> | 321 | /// </summary> |
322 | /// <param name="request">The LLSD request</param> | 322 | /// <param name="request">The LLSD request</param> |
323 | /// <returns>The response to send</returns> | 323 | /// <returns>The response to send</returns> |
324 | public LLSD LLSDLoginMethod(LLSD request) | 324 | public OSD LLSDLoginMethod(OSD request) |
325 | { | 325 | { |
326 | // Temporary fix | 326 | // Temporary fix |
327 | m_loginMutex.WaitOne(); | 327 | m_loginMutex.WaitOne(); |
@@ -335,9 +335,9 @@ namespace OpenSim.Framework.Communications | |||
335 | UserProfileData userProfile = null; | 335 | UserProfileData userProfile = null; |
336 | LoginResponse logResponse = new LoginResponse(); | 336 | LoginResponse logResponse = new LoginResponse(); |
337 | 337 | ||
338 | if (request.Type == LLSDType.Map) | 338 | if (request.Type == OSDType.Map) |
339 | { | 339 | { |
340 | LLSDMap map = (LLSDMap)request; | 340 | OSDMap map = (OSDMap)request; |
341 | 341 | ||
342 | if (map.ContainsKey("first") && map.ContainsKey("last") && map.ContainsKey("passwd")) | 342 | if (map.ContainsKey("first") && map.ContainsKey("last") && map.ContainsKey("passwd")) |
343 | { | 343 | { |
@@ -749,7 +749,7 @@ namespace OpenSim.Framework.Communications | |||
749 | m_userManager.CreateAgent(profile, request); | 749 | m_userManager.CreateAgent(profile, request); |
750 | } | 750 | } |
751 | 751 | ||
752 | public void CreateAgent(UserProfileData profile, LLSD request) | 752 | public void CreateAgent(UserProfileData profile, OSD request) |
753 | { | 753 | { |
754 | m_userManager.CreateAgent(profile, request); | 754 | m_userManager.CreateAgent(profile, request); |
755 | } | 755 | } |
diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs index 7189eee..4b5d2bb 100644 --- a/OpenSim/Framework/Communications/UserManagerBase.cs +++ b/OpenSim/Framework/Communications/UserManagerBase.cs | |||
@@ -448,7 +448,7 @@ namespace OpenSim.Framework.Communications | |||
448 | profile.CurrentAgent = agent; | 448 | profile.CurrentAgent = agent; |
449 | } | 449 | } |
450 | 450 | ||
451 | public void CreateAgent(UserProfileData profile, LLSD request) | 451 | public void CreateAgent(UserProfileData profile, OSD request) |
452 | { | 452 | { |
453 | UserAgentData agent = new UserAgentData(); | 453 | UserAgentData agent = new UserAgentData(); |
454 | 454 | ||
diff --git a/OpenSim/Framework/Location.cs b/OpenSim/Framework/Location.cs index f67543a..aed2b87 100644 --- a/OpenSim/Framework/Location.cs +++ b/OpenSim/Framework/Location.cs | |||
@@ -50,7 +50,7 @@ namespace OpenSim.Framework | |||
50 | 50 | ||
51 | public ulong RegionHandle | 51 | public ulong RegionHandle |
52 | { | 52 | { |
53 | get { return Helpers.UIntsToLong((uint) m_x, (uint) m_y); } | 53 | get { return Utils.UIntsToLong((uint)m_x, (uint)m_y); } |
54 | } | 54 | } |
55 | 55 | ||
56 | public int X | 56 | public int X |
diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs index cd50e9e..adb55aa 100644 --- a/OpenSim/Framework/PrimitiveBaseShape.cs +++ b/OpenSim/Framework/PrimitiveBaseShape.cs | |||
@@ -874,7 +874,7 @@ namespace OpenSim.Framework | |||
874 | 874 | ||
875 | for (int k = 0; k < extraParamCount; k++) | 875 | for (int k = 0; k < extraParamCount; k++) |
876 | { | 876 | { |
877 | ushort epType = Helpers.BytesToUInt16(data, i); | 877 | ushort epType = Utils.BytesToUInt16(data, i); |
878 | 878 | ||
879 | i += 2; | 879 | i += 2; |
880 | // uint paramLength = Helpers.BytesToUIntBig(data, i); | 880 | // uint paramLength = Helpers.BytesToUIntBig(data, i); |
@@ -1014,9 +1014,9 @@ namespace OpenSim.Framework | |||
1014 | _lightColorG = lColor.G; | 1014 | _lightColorG = lColor.G; |
1015 | _lightColorB = lColor.B; | 1015 | _lightColorB = lColor.B; |
1016 | 1016 | ||
1017 | _lightRadius = Helpers.BytesToFloat(data, pos + 4); | 1017 | _lightRadius = Utils.BytesToFloat(data, pos + 4); |
1018 | _lightCutoff = Helpers.BytesToFloat(data, pos + 8); | 1018 | _lightCutoff = Utils.BytesToFloat(data, pos + 8); |
1019 | _lightFalloff = Helpers.BytesToFloat(data, pos + 12); | 1019 | _lightFalloff = Utils.BytesToFloat(data, pos + 12); |
1020 | } | 1020 | } |
1021 | else | 1021 | else |
1022 | { | 1022 | { |
@@ -1040,9 +1040,9 @@ namespace OpenSim.Framework | |||
1040 | Color4 tmpColor = new Color4(_lightColorR,_lightColorG,_lightColorB,_lightIntensity); | 1040 | Color4 tmpColor = new Color4(_lightColorR,_lightColorG,_lightColorB,_lightIntensity); |
1041 | 1041 | ||
1042 | tmpColor.GetBytes().CopyTo(data, 0); | 1042 | tmpColor.GetBytes().CopyTo(data, 0); |
1043 | Helpers.FloatToBytes(_lightRadius).CopyTo(data, 4); | 1043 | Utils.FloatToBytes(_lightRadius).CopyTo(data, 4); |
1044 | Helpers.FloatToBytes(_lightCutoff).CopyTo(data, 8); | 1044 | Utils.FloatToBytes(_lightCutoff).CopyTo(data, 8); |
1045 | Helpers.FloatToBytes(_lightFalloff).CopyTo(data, 12); | 1045 | Utils.FloatToBytes(_lightFalloff).CopyTo(data, 12); |
1046 | 1046 | ||
1047 | return data; | 1047 | return data; |
1048 | } | 1048 | } |
diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs index 1a54d60..0724e8c 100644 --- a/OpenSim/Framework/Servers/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/BaseHttpServer.cs | |||
@@ -692,8 +692,8 @@ namespace OpenSim.Framework.Servers | |||
692 | //m_log.DebugFormat("[OGP]: {0}:{1}", request.RawUrl, requestBody); | 692 | //m_log.DebugFormat("[OGP]: {0}:{1}", request.RawUrl, requestBody); |
693 | response.KeepAlive = true; | 693 | response.KeepAlive = true; |
694 | 694 | ||
695 | LLSD llsdRequest = null; | 695 | OSD llsdRequest = null; |
696 | LLSD llsdResponse = null; | 696 | OSD llsdResponse = null; |
697 | 697 | ||
698 | bool LegacyLLSDLoginLibOMV = (requestBody.Contains("passwd") && requestBody.Contains("mac") && requestBody.Contains("viewer_digest")); | 698 | bool LegacyLLSDLoginLibOMV = (requestBody.Contains("passwd") && requestBody.Contains("mac") && requestBody.Contains("viewer_digest")); |
699 | 699 | ||
@@ -704,7 +704,7 @@ namespace OpenSim.Framework.Servers | |||
704 | } | 704 | } |
705 | try | 705 | try |
706 | { | 706 | { |
707 | llsdRequest = LLSDParser.DeserializeXml(requestBody); | 707 | llsdRequest = OSDParser.DeserializeLLSDXml(requestBody); |
708 | } | 708 | } |
709 | catch (Exception ex) | 709 | catch (Exception ex) |
710 | { | 710 | { |
@@ -756,7 +756,7 @@ namespace OpenSim.Framework.Servers | |||
756 | { | 756 | { |
757 | response.ContentType = "application/llsd+xml"; | 757 | response.ContentType = "application/llsd+xml"; |
758 | //m_log.Info("[Debug BASE HTTP SERVER]: Response: " + llsdResponse.ToString()); | 758 | //m_log.Info("[Debug BASE HTTP SERVER]: Response: " + llsdResponse.ToString()); |
759 | buffer = LLSDParser.SerializeXmlBytes(llsdResponse); | 759 | buffer = OSDParser.SerializeLLSDXmlBytes(llsdResponse); |
760 | } | 760 | } |
761 | response.SendChunked = false; | 761 | response.SendChunked = false; |
762 | response.ContentLength64 = buffer.Length; | 762 | response.ContentLength64 = buffer.Length; |
@@ -948,12 +948,12 @@ namespace OpenSim.Framework.Servers | |||
948 | } | 948 | } |
949 | } | 949 | } |
950 | 950 | ||
951 | private LLSDMap GenerateNoLLSDHandlerResponse() | 951 | private OSDMap GenerateNoLLSDHandlerResponse() |
952 | { | 952 | { |
953 | LLSDMap map = new LLSDMap(); | 953 | OSDMap map = new OSDMap(); |
954 | map["reason"] = LLSD.FromString("LLSDRequest"); | 954 | map["reason"] = OSD.FromString("LLSDRequest"); |
955 | map["message"] = LLSD.FromString("No handler registered for LLSD Requests"); | 955 | map["message"] = OSD.FromString("No handler registered for LLSD Requests"); |
956 | map["login"] = LLSD.FromString("false"); | 956 | map["login"] = OSD.FromString("false"); |
957 | return map; | 957 | return map; |
958 | } | 958 | } |
959 | /// <summary> | 959 | /// <summary> |
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs index 1281335..302640b 100644 --- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs +++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs | |||
@@ -341,8 +341,7 @@ namespace OpenSim.Framework.Servers | |||
341 | public virtual void Show(string[] showParams) | 341 | public virtual void Show(string[] showParams) |
342 | { | 342 | { |
343 | switch (showParams[0]) | 343 | switch (showParams[0]) |
344 | { | 344 | { |
345 | |||
346 | case "info": | 345 | case "info": |
347 | Notice("Version: " + m_version); | 346 | Notice("Version: " + m_version); |
348 | Notice("Startup directory: " + m_startupDirectory); | 347 | Notice("Startup directory: " + m_startupDirectory); |
@@ -350,9 +349,7 @@ namespace OpenSim.Framework.Servers | |||
350 | 349 | ||
351 | case "stats": | 350 | case "stats": |
352 | if (m_stats != null) | 351 | if (m_stats != null) |
353 | { | ||
354 | Notice(m_stats.Report()); | 352 | Notice(m_stats.Report()); |
355 | } | ||
356 | break; | 353 | break; |
357 | 354 | ||
358 | case "threads": | 355 | case "threads": |
diff --git a/OpenSim/Framework/Servers/LLSDMethod.cs b/OpenSim/Framework/Servers/LLSDMethod.cs index 6a39544..693d298 100644 --- a/OpenSim/Framework/Servers/LLSDMethod.cs +++ b/OpenSim/Framework/Servers/LLSDMethod.cs | |||
@@ -29,6 +29,6 @@ using OpenMetaverse.StructuredData; | |||
29 | 29 | ||
30 | namespace OpenSim.Framework.Servers | 30 | namespace OpenSim.Framework.Servers |
31 | { | 31 | { |
32 | public delegate LLSD LLSDMethod( string path, LLSD request, string endpoint ); | 32 | public delegate OSD LLSDMethod( string path, OSD request, string endpoint ); |
33 | public delegate LLSD DefaultLLSDMethod(LLSD request); | 33 | public delegate OSD DefaultLLSDMethod(OSD request); |
34 | } | 34 | } |
diff --git a/OpenSim/Framework/Servers/LLSDMethodString.cs b/OpenSim/Framework/Servers/LLSDMethodString.cs index e15b621..77fc290 100644 --- a/OpenSim/Framework/Servers/LLSDMethodString.cs +++ b/OpenSim/Framework/Servers/LLSDMethodString.cs | |||
@@ -29,5 +29,5 @@ using OpenMetaverse.StructuredData; | |||
29 | 29 | ||
30 | namespace OpenSim.Framework.Servers | 30 | namespace OpenSim.Framework.Servers |
31 | { | 31 | { |
32 | public delegate LLSD LLSDMethodString(LLSD request, string thePath); | 32 | public delegate OSD LLSDMethodString(OSD request, string thePath); |
33 | } | 33 | } |
diff --git a/OpenSim/Framework/UserProfileData.cs b/OpenSim/Framework/UserProfileData.cs index d12ad40..b6f309d 100644 --- a/OpenSim/Framework/UserProfileData.cs +++ b/OpenSim/Framework/UserProfileData.cs | |||
@@ -156,7 +156,7 @@ namespace OpenSim.Framework | |||
156 | /// </summary> | 156 | /// </summary> |
157 | public virtual ulong HomeRegion | 157 | public virtual ulong HomeRegion |
158 | { | 158 | { |
159 | get { return Helpers.UIntsToLong((_homeRegionX * (uint) Constants.RegionSize), (_homeRegionY * (uint) Constants.RegionSize)); } | 159 | get { return Utils.UIntsToLong((_homeRegionX * (uint)Constants.RegionSize), (_homeRegionY * (uint)Constants.RegionSize)); } |
160 | set | 160 | set |
161 | { | 161 | { |
162 | _homeRegionX = (uint) (value >> 40); | 162 | _homeRegionX = (uint) (value >> 40); |
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index f72797f..f0ad1d5 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -185,7 +185,7 @@ namespace OpenSim.Framework | |||
185 | 185 | ||
186 | public static ulong UIntsToLong(uint X, uint Y) | 186 | public static ulong UIntsToLong(uint X, uint Y) |
187 | { | 187 | { |
188 | return Helpers.UIntsToLong(X, Y); | 188 | return Utils.UIntsToLong(X, Y); |
189 | } | 189 | } |
190 | 190 | ||
191 | public static T Clamp<T>(T x, T min, T max) | 191 | public static T Clamp<T>(T x, T min, T max) |
@@ -783,9 +783,9 @@ namespace OpenSim.Framework | |||
783 | public static void ParseFakeParcelID(UUID parcelID, out ulong regionHandle, out uint x, out uint y) | 783 | public static void ParseFakeParcelID(UUID parcelID, out ulong regionHandle, out uint x, out uint y) |
784 | { | 784 | { |
785 | byte[] bytes = parcelID.GetBytes(); | 785 | byte[] bytes = parcelID.GetBytes(); |
786 | regionHandle = Helpers.BytesToUInt64(bytes); | 786 | regionHandle = Utils.BytesToUInt64(bytes); |
787 | x = Helpers.BytesToUInt(bytes, 8); | 787 | x = Utils.BytesToUInt(bytes, 8); |
788 | y = Helpers.BytesToUInt(bytes, 12); | 788 | y = Utils.BytesToUInt(bytes, 12); |
789 | } | 789 | } |
790 | 790 | ||
791 | public static void FakeParcelIDToGlobalPosition(UUID parcelID, out uint x, out uint y) | 791 | public static void FakeParcelIDToGlobalPosition(UUID parcelID, out uint x, out uint y) |
@@ -794,7 +794,7 @@ namespace OpenSim.Framework | |||
794 | uint rx, ry; | 794 | uint rx, ry; |
795 | 795 | ||
796 | ParseFakeParcelID(parcelID, out regionHandle, out x, out y); | 796 | ParseFakeParcelID(parcelID, out regionHandle, out x, out y); |
797 | Helpers.LongToUInts(regionHandle, out rx, out ry); | 797 | Utils.LongToUInts(regionHandle, out rx, out ry); |
798 | 798 | ||
799 | x += rx; | 799 | x += rx; |
800 | y += ry; | 800 | y += ry; |
diff --git a/OpenSim/Grid/GridServer/GridManager.cs b/OpenSim/Grid/GridServer/GridManager.cs index 32b7554..9ab0413 100644 --- a/OpenSim/Grid/GridServer/GridManager.cs +++ b/OpenSim/Grid/GridServer/GridManager.cs | |||
@@ -582,12 +582,12 @@ namespace OpenSim.Grid.GridServer | |||
582 | { | 582 | { |
583 | if ( | 583 | if ( |
584 | GetRegion( | 584 | GetRegion( |
585 | Helpers.UIntsToLong((uint)((sim.regionLocX + x) * Constants.RegionSize), | 585 | Utils.UIntsToLong((uint)((sim.regionLocX + x) * Constants.RegionSize), |
586 | (uint)(sim.regionLocY + y) * Constants.RegionSize)) != null) | 586 | (uint)(sim.regionLocY + y) * Constants.RegionSize)) != null) |
587 | { | 587 | { |
588 | neighbour = | 588 | neighbour = |
589 | GetRegion( | 589 | GetRegion( |
590 | Helpers.UIntsToLong((uint)((sim.regionLocX + x) * Constants.RegionSize), | 590 | Utils.UIntsToLong((uint)((sim.regionLocX + x) * Constants.RegionSize), |
591 | (uint)(sim.regionLocY + y) * Constants.RegionSize)); | 591 | (uint)(sim.regionLocY + y) * Constants.RegionSize)); |
592 | 592 | ||
593 | NeighbourBlock = new Hashtable(); | 593 | NeighbourBlock = new Hashtable(); |
@@ -675,7 +675,7 @@ namespace OpenSim.Grid.GridServer | |||
675 | } | 675 | } |
676 | catch (KeyNotFoundException) { } | 676 | catch (KeyNotFoundException) { } |
677 | 677 | ||
678 | sim.regionHandle = Helpers.UIntsToLong((sim.regionLocX * Constants.RegionSize), (sim.regionLocY * Constants.RegionSize)); | 678 | sim.regionHandle = Utils.UIntsToLong((sim.regionLocX * Constants.RegionSize), (sim.regionLocY * Constants.RegionSize)); |
679 | sim.serverURI = (string)requestData["server_uri"]; | 679 | sim.serverURI = (string)requestData["server_uri"]; |
680 | 680 | ||
681 | sim.httpServerURI = "http://" + sim.serverIP + ":" + sim.httpPort + "/"; | 681 | sim.httpServerURI = "http://" + sim.serverIP + ":" + sim.httpPort + "/"; |
@@ -894,7 +894,7 @@ namespace OpenSim.Grid.GridServer | |||
894 | { | 894 | { |
895 | for (int y = ymin; y < ymax + 1; y++) | 895 | for (int y = ymin; y < ymax + 1; y++) |
896 | { | 896 | { |
897 | ulong regHandle = Helpers.UIntsToLong((uint)(x * Constants.RegionSize), (uint)(y * Constants.RegionSize)); | 897 | ulong regHandle = Utils.UIntsToLong((uint)(x * Constants.RegionSize), (uint)(y * Constants.RegionSize)); |
898 | simProfile = GetRegion(regHandle); | 898 | simProfile = GetRegion(regHandle); |
899 | if (simProfile != null) | 899 | if (simProfile != null) |
900 | { | 900 | { |
@@ -1124,12 +1124,12 @@ namespace OpenSim.Grid.GridServer | |||
1124 | 1124 | ||
1125 | case "region_locx": | 1125 | case "region_locx": |
1126 | theSim.regionLocX = Convert.ToUInt32((string)simnode.ChildNodes[i].InnerText); | 1126 | theSim.regionLocX = Convert.ToUInt32((string)simnode.ChildNodes[i].InnerText); |
1127 | theSim.regionHandle = Helpers.UIntsToLong((theSim.regionLocX * Constants.RegionSize), (theSim.regionLocY * Constants.RegionSize)); | 1127 | theSim.regionHandle = Utils.UIntsToLong((theSim.regionLocX * Constants.RegionSize), (theSim.regionLocY * Constants.RegionSize)); |
1128 | break; | 1128 | break; |
1129 | 1129 | ||
1130 | case "region_locy": | 1130 | case "region_locy": |
1131 | theSim.regionLocY = Convert.ToUInt32((string)simnode.ChildNodes[i].InnerText); | 1131 | theSim.regionLocY = Convert.ToUInt32((string)simnode.ChildNodes[i].InnerText); |
1132 | theSim.regionHandle = Helpers.UIntsToLong((theSim.regionLocX * Constants.RegionSize), (theSim.regionLocY * Constants.RegionSize)); | 1132 | theSim.regionHandle = Utils.UIntsToLong((theSim.regionLocX * Constants.RegionSize), (theSim.regionLocY * Constants.RegionSize)); |
1133 | break; | 1133 | break; |
1134 | } | 1134 | } |
1135 | } | 1135 | } |
diff --git a/OpenSim/Grid/MessagingServer/MessageService.cs b/OpenSim/Grid/MessagingServer/MessageService.cs index b4a0c21..1f04865 100644 --- a/OpenSim/Grid/MessagingServer/MessageService.cs +++ b/OpenSim/Grid/MessagingServer/MessageService.cs | |||
@@ -484,7 +484,7 @@ namespace OpenSim.Grid.MessagingServer | |||
484 | regionProfile = new RegionProfileData(); | 484 | regionProfile = new RegionProfileData(); |
485 | regionProfile.httpPort = (uint)Convert.ToInt32((string)responseData["http_port"]); | 485 | regionProfile.httpPort = (uint)Convert.ToInt32((string)responseData["http_port"]); |
486 | regionProfile.httpServerURI = "http://" + internalIpStr + ":" + regionProfile.httpPort + "/"; | 486 | regionProfile.httpServerURI = "http://" + internalIpStr + ":" + regionProfile.httpPort + "/"; |
487 | regionProfile.regionHandle = Helpers.UIntsToLong((regX * Constants.RegionSize), (regY * Constants.RegionSize)); | 487 | regionProfile.regionHandle = Utils.UIntsToLong((regX * Constants.RegionSize), (regY * Constants.RegionSize)); |
488 | regionProfile.regionLocX = regX; | 488 | regionProfile.regionLocX = regX; |
489 | regionProfile.regionLocY = regY; | 489 | regionProfile.regionLocY = regY; |
490 | 490 | ||
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 502fe6a..3265817 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -3890,7 +3890,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
3890 | { | 3890 | { |
3891 | uint regionX; | 3891 | uint regionX; |
3892 | uint regionY; | 3892 | uint regionY; |
3893 | Helpers.LongToUInts(Scene.RegionInfo.RegionHandle, out regionX, out regionY); | 3893 | Utils.LongToUInts(Scene.RegionInfo.RegionHandle, out regionX, out regionY); |
3894 | locx = Convert.ToSingle(Utils.BytesToString(gmParams[0].Parameter)) - regionX; | 3894 | locx = Convert.ToSingle(Utils.BytesToString(gmParams[0].Parameter)) - regionX; |
3895 | locy = Convert.ToSingle(Utils.BytesToString(gmParams[1].Parameter)) - regionY; | 3895 | locy = Convert.ToSingle(Utils.BytesToString(gmParams[1].Parameter)) - regionY; |
3896 | locz = Convert.ToSingle(Utils.BytesToString(gmParams[2].Parameter)); | 3896 | locz = Convert.ToSingle(Utils.BytesToString(gmParams[2].Parameter)); |
@@ -7175,7 +7175,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
7175 | Transfer.TransferInfo.Params = new byte[20]; | 7175 | Transfer.TransferInfo.Params = new byte[20]; |
7176 | Array.Copy(req.RequestAssetID.GetBytes(), 0, Transfer.TransferInfo.Params, 0, 16); | 7176 | Array.Copy(req.RequestAssetID.GetBytes(), 0, Transfer.TransferInfo.Params, 0, 16); |
7177 | int assType = req.AssetInf.Type; | 7177 | int assType = req.AssetInf.Type; |
7178 | Array.Copy(Helpers.IntToBytes(assType), 0, Transfer.TransferInfo.Params, 16, 4); | 7178 | Array.Copy(Utils.IntToBytes(assType), 0, Transfer.TransferInfo.Params, 16, 4); |
7179 | } | 7179 | } |
7180 | else if (req.AssetRequestSource == 3) | 7180 | else if (req.AssetRequestSource == 3) |
7181 | { | 7181 | { |
diff --git a/OpenSim/Region/DataSnapshot/DataRequestHandler.cs b/OpenSim/Region/DataSnapshot/DataRequestHandler.cs index 8030b59..878aa4b 100644 --- a/OpenSim/Region/DataSnapshot/DataRequestHandler.cs +++ b/OpenSim/Region/DataSnapshot/DataRequestHandler.cs | |||
@@ -77,7 +77,7 @@ namespace OpenSim.Region.DataSnapshot | |||
77 | { | 77 | { |
78 | //Very static for now, flexible enough to add new formats | 78 | //Very static for now, flexible enough to add new formats |
79 | LLSDDiscoveryResponse llsd_response = new LLSDDiscoveryResponse(); | 79 | LLSDDiscoveryResponse llsd_response = new LLSDDiscoveryResponse(); |
80 | llsd_response.snapshot_resources = new LLSDArray(); | 80 | llsd_response.snapshot_resources = new OSDArray(); |
81 | 81 | ||
82 | LLSDDiscoveryDataURL llsd_dataurl = new LLSDDiscoveryDataURL(); | 82 | LLSDDiscoveryDataURL llsd_dataurl = new LLSDDiscoveryDataURL(); |
83 | llsd_dataurl.snapshot_format = "os-datasnapshot-v1"; | 83 | llsd_dataurl.snapshot_format = "os-datasnapshot-v1"; |
diff --git a/OpenSim/Region/DataSnapshot/LLSDDiscovery.cs b/OpenSim/Region/DataSnapshot/LLSDDiscovery.cs index e1d7ac3..73e41ee 100644 --- a/OpenSim/Region/DataSnapshot/LLSDDiscovery.cs +++ b/OpenSim/Region/DataSnapshot/LLSDDiscovery.cs | |||
@@ -30,13 +30,13 @@ using OpenSim.Framework.Communications.Capabilities; | |||
30 | 30 | ||
31 | namespace OpenSim.Region.DataSnapshot | 31 | namespace OpenSim.Region.DataSnapshot |
32 | { | 32 | { |
33 | [LLSDMap] | 33 | [OSDMap] |
34 | public class LLSDDiscoveryResponse | 34 | public class LLSDDiscoveryResponse |
35 | { | 35 | { |
36 | public LLSDArray snapshot_resources; | 36 | public OSDArray snapshot_resources; |
37 | } | 37 | } |
38 | 38 | ||
39 | [LLSDMap] | 39 | [OSDMap] |
40 | public class LLSDDiscoveryDataURL | 40 | public class LLSDDiscoveryDataURL |
41 | { | 41 | { |
42 | public string snapshot_format; | 42 | public string snapshot_format; |
diff --git a/OpenSim/Region/Environment/Modules/Agent/Xfer/XferModule.cs b/OpenSim/Region/Environment/Modules/Agent/Xfer/XferModule.cs index 2f9a691..5b6c2a6 100644 --- a/OpenSim/Region/Environment/Modules/Agent/Xfer/XferModule.cs +++ b/OpenSim/Region/Environment/Modules/Agent/Xfer/XferModule.cs | |||
@@ -174,7 +174,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.Xfer | |||
174 | { | 174 | { |
175 | // for now (testing) we only support files under 1000 bytes | 175 | // for now (testing) we only support files under 1000 bytes |
176 | byte[] transferData = new byte[Data.Length + 4]; | 176 | byte[] transferData = new byte[Data.Length + 4]; |
177 | Array.Copy(Helpers.IntToBytes(Data.Length), 0, transferData, 0, 4); | 177 | Array.Copy(Utils.IntToBytes(Data.Length), 0, transferData, 0, 4); |
178 | Array.Copy(Data, 0, transferData, 4, Data.Length); | 178 | Array.Copy(Data, 0, transferData, 4, Data.Length); |
179 | Client.SendXferPacket(XferID, 0 + 0x80000000, transferData); | 179 | Client.SendXferPacket(XferID, 0 + 0x80000000, transferData); |
180 | 180 | ||
@@ -183,7 +183,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.Xfer | |||
183 | else | 183 | else |
184 | { | 184 | { |
185 | byte[] transferData = new byte[1000 + 4]; | 185 | byte[] transferData = new byte[1000 + 4]; |
186 | Array.Copy(Helpers.IntToBytes(Data.Length), 0, transferData, 0, 4); | 186 | Array.Copy(Utils.IntToBytes(Data.Length), 0, transferData, 0, 4); |
187 | Array.Copy(Data, 0, transferData, 4, 1000); | 187 | Array.Copy(Data, 0, transferData, 4, 1000); |
188 | Client.SendXferPacket(XferID, 0, transferData); | 188 | Client.SendXferPacket(XferID, 0, transferData); |
189 | Packet++; | 189 | Packet++; |
diff --git a/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs b/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs index c532ac0..3fc8005 100644 --- a/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs +++ b/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs | |||
@@ -44,18 +44,18 @@ using OpenSim.Region.Environment.Interfaces; | |||
44 | using OpenSim.Region.Interfaces; | 44 | using OpenSim.Region.Interfaces; |
45 | using OpenSim.Region.Environment.Scenes; | 45 | using OpenSim.Region.Environment.Scenes; |
46 | 46 | ||
47 | using LLSD = OpenMetaverse.StructuredData.LLSD; | 47 | using OSD = OpenMetaverse.StructuredData.OSD; |
48 | using LLSDMap = OpenMetaverse.StructuredData.LLSDMap; | 48 | using OSDMap = OpenMetaverse.StructuredData.OSDMap; |
49 | using LLSDArray = OpenMetaverse.StructuredData.LLSDArray; | 49 | using OSDArray = OpenMetaverse.StructuredData.OSDArray; |
50 | using Caps = OpenSim.Framework.Communications.Capabilities.Caps; | 50 | using Caps = OpenSim.Framework.Communications.Capabilities.Caps; |
51 | using BlockingLLSDQueue = OpenSim.Framework.BlockingQueue<OpenMetaverse.StructuredData.LLSD>; | 51 | using BlockingLLSDQueue = OpenSim.Framework.BlockingQueue<OpenMetaverse.StructuredData.OSD>; |
52 | 52 | ||
53 | namespace OpenSim.Region.Environment.Modules.Framework | 53 | namespace OpenSim.Region.Environment.Modules.Framework |
54 | { | 54 | { |
55 | public struct QueueItem | 55 | public struct QueueItem |
56 | { | 56 | { |
57 | public int id; | 57 | public int id; |
58 | public LLSDMap body; | 58 | public OSDMap body; |
59 | } | 59 | } |
60 | 60 | ||
61 | public class EventQueueGetModule : IEventQueue, IRegionModule | 61 | public class EventQueueGetModule : IEventQueue, IRegionModule |
@@ -146,7 +146,7 @@ namespace OpenSim.Region.Environment.Modules.Framework | |||
146 | 146 | ||
147 | 147 | ||
148 | #region IEventQueue Members | 148 | #region IEventQueue Members |
149 | public bool Enqueue(LLSD ev, UUID avatarID) | 149 | public bool Enqueue(OSD ev, UUID avatarID) |
150 | { | 150 | { |
151 | m_log.DebugFormat("[EVENTQUEUE]: Enqueuing event for {0} in region {1}", avatarID, m_scene.RegionInfo.RegionName); | 151 | m_log.DebugFormat("[EVENTQUEUE]: Enqueuing event for {0} in region {1}", avatarID, m_scene.RegionInfo.RegionName); |
152 | try | 152 | try |
@@ -308,7 +308,7 @@ namespace OpenSim.Region.Environment.Modules.Framework | |||
308 | // } | 308 | // } |
309 | 309 | ||
310 | BlockingLLSDQueue queue = GetQueue(agentID); | 310 | BlockingLLSDQueue queue = GetQueue(agentID); |
311 | LLSD element = queue.Dequeue(15000); // 15s timeout | 311 | OSD element = queue.Dequeue(15000); // 15s timeout |
312 | 312 | ||
313 | Hashtable responsedata = new Hashtable(); | 313 | Hashtable responsedata = new Hashtable(); |
314 | 314 | ||
@@ -337,7 +337,7 @@ namespace OpenSim.Region.Environment.Modules.Framework | |||
337 | 337 | ||
338 | 338 | ||
339 | 339 | ||
340 | LLSDArray array = new LLSDArray(); | 340 | OSDArray array = new OSDArray(); |
341 | if (element == null) // didn't have an event in 15s | 341 | if (element == null) // didn't have an event in 15s |
342 | { | 342 | { |
343 | // Send it a fake event to keep the client polling! It doesn't like 502s like the proxys say! | 343 | // Send it a fake event to keep the client polling! It doesn't like 502s like the proxys say! |
@@ -354,10 +354,10 @@ namespace OpenSim.Region.Environment.Modules.Framework | |||
354 | } | 354 | } |
355 | } | 355 | } |
356 | 356 | ||
357 | LLSDMap events = new LLSDMap(); | 357 | OSDMap events = new OSDMap(); |
358 | events.Add("events", array); | 358 | events.Add("events", array); |
359 | 359 | ||
360 | events.Add("id", new LLSDInteger(thisID)); | 360 | events.Add("id", new OSDInteger(thisID)); |
361 | lock (m_ids) | 361 | lock (m_ids) |
362 | { | 362 | { |
363 | m_ids[agentID] = thisID + 1; | 363 | m_ids[agentID] = thisID + 1; |
@@ -366,7 +366,7 @@ namespace OpenSim.Region.Environment.Modules.Framework | |||
366 | responsedata["int_response_code"] = 200; | 366 | responsedata["int_response_code"] = 200; |
367 | responsedata["content_type"] = "application/xml"; | 367 | responsedata["content_type"] = "application/xml"; |
368 | responsedata["keepalive"] = false; | 368 | responsedata["keepalive"] = false; |
369 | responsedata["str_response_string"] = LLSDParser.SerializeXmlString(events); | 369 | responsedata["str_response_string"] = OSDParser.SerializeLLSDXmlString(events); |
370 | m_log.DebugFormat("[EVENTQUEUE]: sending response for {0} in region {1}: {2}", agentID, m_scene.RegionInfo.RegionName, responsedata["str_response_string"]); | 370 | m_log.DebugFormat("[EVENTQUEUE]: sending response for {0} in region {1}: {2}", agentID, m_scene.RegionInfo.RegionName, responsedata["str_response_string"]); |
371 | 371 | ||
372 | return responsedata; | 372 | return responsedata; |
@@ -424,7 +424,7 @@ namespace OpenSim.Region.Environment.Modules.Framework | |||
424 | 424 | ||
425 | } | 425 | } |
426 | 426 | ||
427 | public LLSD EventQueueFallBack(string path, LLSD request, string endpoint) | 427 | public OSD EventQueueFallBack(string path, OSD request, string endpoint) |
428 | { | 428 | { |
429 | // This is a fallback element to keep the client from loosing EventQueueGet | 429 | // This is a fallback element to keep the client from loosing EventQueueGet |
430 | // Why does CAPS fail sometimes!? | 430 | // Why does CAPS fail sometimes!? |
@@ -473,7 +473,7 @@ namespace OpenSim.Region.Environment.Modules.Framework | |||
473 | thisID = m_ids[AvatarID]; | 473 | thisID = m_ids[AvatarID]; |
474 | 474 | ||
475 | BlockingLLSDQueue queue = GetQueue(AvatarID); | 475 | BlockingLLSDQueue queue = GetQueue(AvatarID); |
476 | LLSDArray array = new LLSDArray(); | 476 | OSDArray array = new OSDArray(); |
477 | LLSD element = queue.Dequeue(15000); // 15s timeout | 477 | LLSD element = queue.Dequeue(15000); // 15s timeout |
478 | if (element == null) | 478 | if (element == null) |
479 | { | 479 | { |
@@ -489,7 +489,7 @@ namespace OpenSim.Region.Environment.Modules.Framework | |||
489 | thisID++; | 489 | thisID++; |
490 | } | 490 | } |
491 | } | 491 | } |
492 | LLSDMap events = new LLSDMap(); | 492 | OSDMap events = new OSDMap(); |
493 | events.Add("events", array); | 493 | events.Add("events", array); |
494 | 494 | ||
495 | events.Add("id", new LLSDInteger(thisID)); | 495 | events.Add("id", new LLSDInteger(thisID)); |
@@ -512,7 +512,7 @@ namespace OpenSim.Region.Environment.Modules.Framework | |||
512 | { | 512 | { |
513 | //return new LLSD(); | 513 | //return new LLSD(); |
514 | } | 514 | } |
515 | return new LLSDString("shutdown404!"); | 515 | return new OSDString("shutdown404!"); |
516 | } | 516 | } |
517 | } | 517 | } |
518 | } | 518 | } |
diff --git a/OpenSim/Region/Environment/Modules/Framework/EventQueueHelper.cs b/OpenSim/Region/Environment/Modules/Framework/EventQueueHelper.cs index 0d0eed2..21be82a 100644 --- a/OpenSim/Region/Environment/Modules/Framework/EventQueueHelper.cs +++ b/OpenSim/Region/Environment/Modules/Framework/EventQueueHelper.cs | |||
@@ -52,70 +52,70 @@ namespace OpenSim.Region.Environment | |||
52 | }; | 52 | }; |
53 | } | 53 | } |
54 | 54 | ||
55 | public static LLSD buildEvent(string eventName, LLSD eventBody) | 55 | public static OSD buildEvent(string eventName, OSD eventBody) |
56 | { | 56 | { |
57 | LLSDMap llsdEvent = new LLSDMap(2); | 57 | OSDMap llsdEvent = new OSDMap(2); |
58 | llsdEvent.Add("message", new LLSDString(eventName)); | 58 | llsdEvent.Add("message", new OSDString(eventName)); |
59 | llsdEvent.Add("body", eventBody); | 59 | llsdEvent.Add("body", eventBody); |
60 | 60 | ||
61 | return llsdEvent; | 61 | return llsdEvent; |
62 | } | 62 | } |
63 | 63 | ||
64 | public static LLSD EnableSimulator(ulong Handle, IPEndPoint endPoint) | 64 | public static OSD EnableSimulator(ulong Handle, IPEndPoint endPoint) |
65 | { | 65 | { |
66 | LLSDMap llsdSimInfo = new LLSDMap(3); | 66 | OSDMap llsdSimInfo = new OSDMap(3); |
67 | 67 | ||
68 | llsdSimInfo.Add("Handle", new LLSDBinary(regionHandleToByteArray(Handle))); | 68 | llsdSimInfo.Add("Handle", new OSDBinary(regionHandleToByteArray(Handle))); |
69 | llsdSimInfo.Add("IP", new LLSDBinary(endPoint.Address.GetAddressBytes())); | 69 | llsdSimInfo.Add("IP", new OSDBinary(endPoint.Address.GetAddressBytes())); |
70 | llsdSimInfo.Add("Port", new LLSDInteger(endPoint.Port)); | 70 | llsdSimInfo.Add("Port", new OSDInteger(endPoint.Port)); |
71 | 71 | ||
72 | LLSDArray arr = new LLSDArray(1); | 72 | OSDArray arr = new OSDArray(1); |
73 | arr.Add(llsdSimInfo); | 73 | arr.Add(llsdSimInfo); |
74 | 74 | ||
75 | LLSDMap llsdBody = new LLSDMap(1); | 75 | OSDMap llsdBody = new OSDMap(1); |
76 | llsdBody.Add("SimulatorInfo", arr); | 76 | llsdBody.Add("SimulatorInfo", arr); |
77 | 77 | ||
78 | return buildEvent("EnableSimulator", llsdBody); | 78 | return buildEvent("EnableSimulator", llsdBody); |
79 | } | 79 | } |
80 | 80 | ||
81 | public static LLSD CrossRegion(ulong Handle, Vector3 pos, Vector3 lookAt, | 81 | public static OSD CrossRegion(ulong Handle, Vector3 pos, Vector3 lookAt, |
82 | IPEndPoint newRegionExternalEndPoint, | 82 | IPEndPoint newRegionExternalEndPoint, |
83 | string capsURL, UUID AgentID, UUID SessionID) | 83 | string capsURL, UUID AgentID, UUID SessionID) |
84 | { | 84 | { |
85 | LLSDArray LookAtArr = new LLSDArray(3); | 85 | OSDArray LookAtArr = new OSDArray(3); |
86 | LookAtArr.Add(LLSD.FromReal(lookAt.X)); | 86 | LookAtArr.Add(OSD.FromReal(lookAt.X)); |
87 | LookAtArr.Add(LLSD.FromReal(lookAt.Y)); | 87 | LookAtArr.Add(OSD.FromReal(lookAt.Y)); |
88 | LookAtArr.Add(LLSD.FromReal(lookAt.Z)); | 88 | LookAtArr.Add(OSD.FromReal(lookAt.Z)); |
89 | 89 | ||
90 | LLSDArray PositionArr = new LLSDArray(3); | 90 | OSDArray PositionArr = new OSDArray(3); |
91 | PositionArr.Add(LLSD.FromReal(pos.X)); | 91 | PositionArr.Add(OSD.FromReal(pos.X)); |
92 | PositionArr.Add(LLSD.FromReal(pos.Y)); | 92 | PositionArr.Add(OSD.FromReal(pos.Y)); |
93 | PositionArr.Add(LLSD.FromReal(pos.Z)); | 93 | PositionArr.Add(OSD.FromReal(pos.Z)); |
94 | 94 | ||
95 | LLSDMap InfoMap = new LLSDMap(2); | 95 | OSDMap InfoMap = new OSDMap(2); |
96 | InfoMap.Add("LookAt", LookAtArr); | 96 | InfoMap.Add("LookAt", LookAtArr); |
97 | InfoMap.Add("Position", PositionArr); | 97 | InfoMap.Add("Position", PositionArr); |
98 | 98 | ||
99 | LLSDArray InfoArr = new LLSDArray(1); | 99 | OSDArray InfoArr = new OSDArray(1); |
100 | InfoArr.Add(InfoMap); | 100 | InfoArr.Add(InfoMap); |
101 | 101 | ||
102 | LLSDMap AgentDataMap = new LLSDMap(2); | 102 | OSDMap AgentDataMap = new OSDMap(2); |
103 | AgentDataMap.Add("AgentID", LLSD.FromUUID(AgentID)); | 103 | AgentDataMap.Add("AgentID", OSD.FromUUID(AgentID)); |
104 | AgentDataMap.Add("SessionID", LLSD.FromUUID(SessionID)); | 104 | AgentDataMap.Add("SessionID", OSD.FromUUID(SessionID)); |
105 | 105 | ||
106 | LLSDArray AgentDataArr = new LLSDArray(1); | 106 | OSDArray AgentDataArr = new OSDArray(1); |
107 | AgentDataArr.Add(AgentDataMap); | 107 | AgentDataArr.Add(AgentDataMap); |
108 | 108 | ||
109 | LLSDMap RegionDataMap = new LLSDMap(4); | 109 | OSDMap RegionDataMap = new OSDMap(4); |
110 | RegionDataMap.Add("RegionHandle", LLSD.FromBinary(regionHandleToByteArray(Handle))); | 110 | RegionDataMap.Add("RegionHandle", OSD.FromBinary(regionHandleToByteArray(Handle))); |
111 | RegionDataMap.Add("SeedCapability", LLSD.FromString(capsURL)); | 111 | RegionDataMap.Add("SeedCapability", OSD.FromString(capsURL)); |
112 | RegionDataMap.Add("SimIP", LLSD.FromBinary(newRegionExternalEndPoint.Address.GetAddressBytes())); | 112 | RegionDataMap.Add("SimIP", OSD.FromBinary(newRegionExternalEndPoint.Address.GetAddressBytes())); |
113 | RegionDataMap.Add("SimPort", LLSD.FromInteger(newRegionExternalEndPoint.Port)); | 113 | RegionDataMap.Add("SimPort", OSD.FromInteger(newRegionExternalEndPoint.Port)); |
114 | 114 | ||
115 | LLSDArray RegionDataArr = new LLSDArray(1); | 115 | OSDArray RegionDataArr = new OSDArray(1); |
116 | RegionDataArr.Add(RegionDataMap); | 116 | RegionDataArr.Add(RegionDataMap); |
117 | 117 | ||
118 | LLSDMap llsdBody = new LLSDMap(3); | 118 | OSDMap llsdBody = new OSDMap(3); |
119 | llsdBody.Add("Info", InfoArr); | 119 | llsdBody.Add("Info", InfoArr); |
120 | llsdBody.Add("AgentData", AgentDataArr); | 120 | llsdBody.Add("AgentData", AgentDataArr); |
121 | llsdBody.Add("RegionData", RegionDataArr); | 121 | llsdBody.Add("RegionData", RegionDataArr); |
@@ -123,49 +123,49 @@ namespace OpenSim.Region.Environment | |||
123 | return buildEvent("CrossedRegion", llsdBody); | 123 | return buildEvent("CrossedRegion", llsdBody); |
124 | } | 124 | } |
125 | 125 | ||
126 | public static LLSD TeleportFinishEvent( | 126 | public static OSD TeleportFinishEvent( |
127 | ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint, | 127 | ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint, |
128 | uint locationID, uint flags, string capsURL, UUID AgentID) | 128 | uint locationID, uint flags, string capsURL, UUID AgentID) |
129 | { | 129 | { |
130 | LLSDMap info = new LLSDMap(); | 130 | OSDMap info = new OSDMap(); |
131 | info.Add("AgentID", LLSD.FromUUID(AgentID)); | 131 | info.Add("AgentID", OSD.FromUUID(AgentID)); |
132 | info.Add("LocationID", LLSD.FromInteger(4)); // TODO what is this? | 132 | info.Add("LocationID", OSD.FromInteger(4)); // TODO what is this? |
133 | info.Add("RegionHandle", LLSD.FromBinary(regionHandleToByteArray(regionHandle))); | 133 | info.Add("RegionHandle", OSD.FromBinary(regionHandleToByteArray(regionHandle))); |
134 | info.Add("SeedCapability", LLSD.FromString(capsURL)); | 134 | info.Add("SeedCapability", OSD.FromString(capsURL)); |
135 | info.Add("SimAccess", LLSD.FromInteger(simAccess)); | 135 | info.Add("SimAccess", OSD.FromInteger(simAccess)); |
136 | info.Add("SimIP", LLSD.FromBinary(regionExternalEndPoint.Address.GetAddressBytes())); | 136 | info.Add("SimIP", OSD.FromBinary(regionExternalEndPoint.Address.GetAddressBytes())); |
137 | info.Add("SimPort", LLSD.FromInteger(regionExternalEndPoint.Port)); | 137 | info.Add("SimPort", OSD.FromInteger(regionExternalEndPoint.Port)); |
138 | info.Add("TeleportFlags", LLSD.FromBinary(1L << 4)); // AgentManager.TeleportFlags.ViaLocation | 138 | info.Add("TeleportFlags", OSD.FromBinary(1L << 4)); // AgentManager.TeleportFlags.ViaLocation |
139 | 139 | ||
140 | LLSDArray infoArr = new LLSDArray(); | 140 | OSDArray infoArr = new OSDArray(); |
141 | infoArr.Add(info); | 141 | infoArr.Add(info); |
142 | 142 | ||
143 | LLSDMap body = new LLSDMap(); | 143 | OSDMap body = new OSDMap(); |
144 | body.Add("Info", infoArr); | 144 | body.Add("Info", infoArr); |
145 | 145 | ||
146 | return buildEvent("TeleportFinish", body); | 146 | return buildEvent("TeleportFinish", body); |
147 | } | 147 | } |
148 | 148 | ||
149 | public static LLSD ScriptRunningReplyEvent(UUID objectID, UUID itemID, bool running, bool mono) | 149 | public static OSD ScriptRunningReplyEvent(UUID objectID, UUID itemID, bool running, bool mono) |
150 | { | 150 | { |
151 | LLSDMap script = new LLSDMap(); | 151 | OSDMap script = new OSDMap(); |
152 | script.Add("ObjectID", LLSD.FromUUID(objectID)); | 152 | script.Add("ObjectID", OSD.FromUUID(objectID)); |
153 | script.Add("ItemID", LLSD.FromUUID(itemID)); | 153 | script.Add("ItemID", OSD.FromUUID(itemID)); |
154 | script.Add("Running", LLSD.FromBoolean(running)); | 154 | script.Add("Running", OSD.FromBoolean(running)); |
155 | script.Add("Mono", LLSD.FromBoolean(mono)); | 155 | script.Add("Mono", OSD.FromBoolean(mono)); |
156 | 156 | ||
157 | LLSDArray scriptArr = new LLSDArray(); | 157 | OSDArray scriptArr = new OSDArray(); |
158 | scriptArr.Add(script); | 158 | scriptArr.Add(script); |
159 | 159 | ||
160 | LLSDMap body = new LLSDMap(); | 160 | OSDMap body = new OSDMap(); |
161 | body.Add("Script", scriptArr); | 161 | body.Add("Script", scriptArr); |
162 | 162 | ||
163 | return buildEvent("ScriptRunningReply", body); | 163 | return buildEvent("ScriptRunningReply", body); |
164 | } | 164 | } |
165 | 165 | ||
166 | public static LLSD KeepAliveEvent() | 166 | public static OSD KeepAliveEvent() |
167 | { | 167 | { |
168 | return buildEvent("FAKEEVENT", new LLSDMap()); | 168 | return buildEvent("FAKEEVENT", new OSDMap()); |
169 | } | 169 | } |
170 | } | 170 | } |
171 | } | 171 | } |
diff --git a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs index 5b06408..1c86c2f 100644 --- a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs +++ b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs | |||
@@ -46,9 +46,9 @@ using OpenSim.Framework.Servers; | |||
46 | using OpenSim.Region.Environment.Interfaces; | 46 | using OpenSim.Region.Environment.Interfaces; |
47 | using OpenSim.Region.Environment.Scenes; | 47 | using OpenSim.Region.Environment.Scenes; |
48 | 48 | ||
49 | using LLSD = OpenMetaverse.StructuredData.LLSD; | 49 | using OSD = OpenMetaverse.StructuredData.OSD; |
50 | using LLSDMap = OpenMetaverse.StructuredData.LLSDMap; | 50 | using OSDMap = OpenMetaverse.StructuredData.OSDMap; |
51 | using LLSDArray = OpenMetaverse.StructuredData.LLSDArray; | 51 | using OSDArray = OpenMetaverse.StructuredData.OSDArray; |
52 | 52 | ||
53 | namespace OpenSim.Region.Environment.Modules.InterGrid | 53 | namespace OpenSim.Region.Environment.Modules.InterGrid |
54 | { | 54 | { |
@@ -218,7 +218,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
218 | 218 | ||
219 | #endregion | 219 | #endregion |
220 | 220 | ||
221 | public LLSD ProcessRegionDomainSeed(string path, LLSD request, string endpoint) | 221 | public OSD ProcessRegionDomainSeed(string path, OSD request, string endpoint) |
222 | { | 222 | { |
223 | string[] pathSegments = path.Split('/'); | 223 | string[] pathSegments = path.Split('/'); |
224 | 224 | ||
@@ -234,11 +234,11 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
234 | 234 | ||
235 | //m_log.InfoFormat("[OGP]: path {0}, segments {1} segment[1] {2} Last segment {3}", | 235 | //m_log.InfoFormat("[OGP]: path {0}, segments {1} segment[1] {2} Last segment {3}", |
236 | // path, pathSegments.Length, pathSegments[1], pathSegments[pathSegments.Length - 1]); | 236 | // path, pathSegments.Length, pathSegments[1], pathSegments[pathSegments.Length - 1]); |
237 | //return new LLSDMap(); | 237 | //return new OSDMap(); |
238 | 238 | ||
239 | } | 239 | } |
240 | 240 | ||
241 | public LLSD ProcessAgentDomainMessage(string path, LLSD request, string endpoint) | 241 | public OSD ProcessAgentDomainMessage(string path, OSD request, string endpoint) |
242 | { | 242 | { |
243 | // /agent/* | 243 | // /agent/* |
244 | 244 | ||
@@ -288,7 +288,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
288 | //return null; | 288 | //return null; |
289 | } | 289 | } |
290 | 290 | ||
291 | private LLSD GenerateRezAvatarRequestMessage(string regionname) | 291 | private OSD GenerateRezAvatarRequestMessage(string regionname) |
292 | { | 292 | { |
293 | Scene region = null; | 293 | Scene region = null; |
294 | bool usedroot = false; | 294 | bool usedroot = false; |
@@ -319,7 +319,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
319 | 319 | ||
320 | RegionInfo reg = region.RegionInfo; | 320 | RegionInfo reg = region.RegionInfo; |
321 | 321 | ||
322 | LLSDMap responseMap = new LLSDMap(); | 322 | OSDMap responseMap = new OSDMap(); |
323 | string rezHttpProtocol = "http://"; | 323 | string rezHttpProtocol = "http://"; |
324 | //string regionCapsHttpProtocol = "http://"; | 324 | //string regionCapsHttpProtocol = "http://"; |
325 | string httpaddr = reg.ExternalHostName; | 325 | string httpaddr = reg.ExternalHostName; |
@@ -347,9 +347,9 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
347 | httpaddr = httpsCN; | 347 | httpaddr = httpsCN; |
348 | } | 348 | } |
349 | 349 | ||
350 | responseMap["connect"] = LLSD.FromBoolean(true); | 350 | responseMap["connect"] = OSD.FromBoolean(true); |
351 | LLSDMap capabilitiesMap = new LLSDMap(); | 351 | OSDMap capabilitiesMap = new OSDMap(); |
352 | capabilitiesMap["rez_avatar/request"] = LLSD.FromString(rezHttpProtocol + httpaddr + ":" + urlport + requestpath); | 352 | capabilitiesMap["rez_avatar/request"] = OSD.FromString(rezHttpProtocol + httpaddr + ":" + urlport + requestpath); |
353 | responseMap["capabilities"] = capabilitiesMap; | 353 | responseMap["capabilities"] = capabilitiesMap; |
354 | 354 | ||
355 | return responseMap; | 355 | return responseMap; |
@@ -376,11 +376,11 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
376 | } | 376 | } |
377 | 377 | ||
378 | 378 | ||
379 | public LLSD RequestRezAvatarMethod(string path, LLSD request) | 379 | public OSD RequestRezAvatarMethod(string path, OSD request) |
380 | { | 380 | { |
381 | //System.Console.WriteLine("[REQUESTREZAVATAR]: " + request.ToString()); | 381 | //System.Console.WriteLine("[REQUESTREZAVATAR]: " + request.ToString()); |
382 | 382 | ||
383 | LLSDMap requestMap = (LLSDMap)request; | 383 | OSDMap requestMap = (OSDMap)request; |
384 | 384 | ||
385 | 385 | ||
386 | Scene homeScene = null; | 386 | Scene homeScene = null; |
@@ -441,27 +441,27 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
441 | 441 | ||
442 | UpdateOGPState(LocalAgentID, userState); | 442 | UpdateOGPState(LocalAgentID, userState); |
443 | 443 | ||
444 | LLSDMap responseMap = new LLSDMap(); | 444 | OSDMap responseMap = new OSDMap(); |
445 | 445 | ||
446 | if (RemoteAgentID == UUID.Zero) | 446 | if (RemoteAgentID == UUID.Zero) |
447 | { | 447 | { |
448 | responseMap["connect"] = LLSD.FromBoolean(false); | 448 | responseMap["connect"] = OSD.FromBoolean(false); |
449 | responseMap["message"] = LLSD.FromString("No agent ID was specified in rez_avatar/request"); | 449 | responseMap["message"] = OSD.FromString("No agent ID was specified in rez_avatar/request"); |
450 | m_log.Error("[OGP]: rez_avatar/request failed because no avatar UUID was provided in the request body"); | 450 | m_log.Error("[OGP]: rez_avatar/request failed because no avatar UUID was provided in the request body"); |
451 | return responseMap; | 451 | return responseMap; |
452 | } | 452 | } |
453 | 453 | ||
454 | responseMap["sim_host"] = LLSD.FromString(reg.ExternalHostName); | 454 | responseMap["sim_host"] = OSD.FromString(reg.ExternalHostName); |
455 | 455 | ||
456 | // DEPRECIATED | 456 | // DEPRECIATED |
457 | responseMap["sim_ip"] = LLSD.FromString(Util.GetHostFromDNS(reg.ExternalHostName).ToString()); | 457 | responseMap["sim_ip"] = OSD.FromString(Util.GetHostFromDNS(reg.ExternalHostName).ToString()); |
458 | 458 | ||
459 | responseMap["connect"] = LLSD.FromBoolean(true); | 459 | responseMap["connect"] = OSD.FromBoolean(true); |
460 | responseMap["sim_port"] = LLSD.FromInteger(reg.InternalEndPoint.Port); | 460 | responseMap["sim_port"] = OSD.FromInteger(reg.InternalEndPoint.Port); |
461 | responseMap["region_x"] = LLSD.FromInteger(reg.RegionLocX * (uint)Constants.RegionSize); // LLX | 461 | responseMap["region_x"] = OSD.FromInteger(reg.RegionLocX * (uint)Constants.RegionSize); // LLX |
462 | responseMap["region_y"] = LLSD.FromInteger(reg.RegionLocY * (uint)Constants.RegionSize); // LLY | 462 | responseMap["region_y"] = OSD.FromInteger(reg.RegionLocY * (uint)Constants.RegionSize); // LLY |
463 | responseMap["region_id"] = LLSD.FromUUID(reg.originRegionID); | 463 | responseMap["region_id"] = OSD.FromUUID(reg.originRegionID); |
464 | responseMap["sim_access"] = LLSD.FromString((reg.RegionSettings.Maturity == 1) ? "Mature" : "PG"); | 464 | responseMap["sim_access"] = OSD.FromString((reg.RegionSettings.Maturity == 1) ? "Mature" : "PG"); |
465 | 465 | ||
466 | // Generate a dummy agent for the user so we can get back a CAPS path | 466 | // Generate a dummy agent for the user so we can get back a CAPS path |
467 | AgentCircuitData agentData = new AgentCircuitData(); | 467 | AgentCircuitData agentData = new AgentCircuitData(); |
@@ -575,14 +575,14 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
575 | 575 | ||
576 | 576 | ||
577 | // DEPRECIATED | 577 | // DEPRECIATED |
578 | responseMap["seed_capability"] = LLSD.FromString(regionCapsHttpProtocol + httpaddr + ":" + reg.HttpPort + "/CAPS/" + userCap.CapsObjectPath + "0000/"); | 578 | responseMap["seed_capability"] = OSD.FromString(regionCapsHttpProtocol + httpaddr + ":" + reg.HttpPort + "/CAPS/" + userCap.CapsObjectPath + "0000/"); |
579 | 579 | ||
580 | // REPLACEMENT | 580 | // REPLACEMENT |
581 | responseMap["region_seed_capability"] = LLSD.FromString(regionCapsHttpProtocol + httpaddr + ":" + reg.HttpPort + "/CAPS/" + userCap.CapsObjectPath + "0000/"); | 581 | responseMap["region_seed_capability"] = OSD.FromString(regionCapsHttpProtocol + httpaddr + ":" + reg.HttpPort + "/CAPS/" + userCap.CapsObjectPath + "0000/"); |
582 | 582 | ||
583 | responseMap["rez_avatar"] = LLSD.FromString(rezHttpProtocol + httpaddr + ":" + urlport + rezAvatarPath); | 583 | responseMap["rez_avatar"] = OSD.FromString(rezHttpProtocol + httpaddr + ":" + urlport + rezAvatarPath); |
584 | responseMap["rez_avatar/rez"] = LLSD.FromString(rezHttpProtocol + httpaddr + ":" + urlport + rezAvatarPath); | 584 | responseMap["rez_avatar/rez"] = OSD.FromString(rezHttpProtocol + httpaddr + ":" + urlport + rezAvatarPath); |
585 | responseMap["rez_avatar/derez"] = LLSD.FromString(rezHttpProtocol + httpaddr + ":" + urlport + derezAvatarPath); | 585 | responseMap["rez_avatar/derez"] = OSD.FromString(rezHttpProtocol + httpaddr + ":" + urlport + derezAvatarPath); |
586 | 586 | ||
587 | // Add the user to the list of CAPS that are outstanding. | 587 | // Add the user to the list of CAPS that are outstanding. |
588 | // well allow the caps hosts in this dictionary | 588 | // well allow the caps hosts in this dictionary |
@@ -605,27 +605,27 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
605 | return responseMap; | 605 | return responseMap; |
606 | } | 606 | } |
607 | 607 | ||
608 | public LLSD RezAvatarMethod(string path, LLSD request) | 608 | public OSD RezAvatarMethod(string path, OSD request) |
609 | { | 609 | { |
610 | m_log.WarnFormat("[REZAVATAR]: {0}", request.ToString()); | 610 | m_log.WarnFormat("[REZAVATAR]: {0}", request.ToString()); |
611 | 611 | ||
612 | LLSDMap responseMap = new LLSDMap(); | 612 | OSDMap responseMap = new OSDMap(); |
613 | 613 | ||
614 | AgentCircuitData userData = null; | 614 | AgentCircuitData userData = null; |
615 | 615 | ||
616 | // Only people we've issued a cap can go further | 616 | // Only people we've issued a cap can go further |
617 | if (TryGetAgentCircuitData(path,out userData)) | 617 | if (TryGetAgentCircuitData(path,out userData)) |
618 | { | 618 | { |
619 | LLSDMap requestMap = (LLSDMap)request; | 619 | OSDMap requestMap = (OSDMap)request; |
620 | 620 | ||
621 | // take these values to start. There's a few more | 621 | // take these values to start. There's a few more |
622 | UUID SecureSessionID=requestMap["secure_session_id"].AsUUID(); | 622 | UUID SecureSessionID=requestMap["secure_session_id"].AsUUID(); |
623 | UUID SessionID = requestMap["session_id"].AsUUID(); | 623 | UUID SessionID = requestMap["session_id"].AsUUID(); |
624 | int circuitcode = requestMap["circuit_code"].AsInteger(); | 624 | int circuitcode = requestMap["circuit_code"].AsInteger(); |
625 | LLSDArray Parameter = new LLSDArray(); | 625 | OSDArray Parameter = new OSDArray(); |
626 | if (requestMap.ContainsKey("parameter")) | 626 | if (requestMap.ContainsKey("parameter")) |
627 | { | 627 | { |
628 | Parameter = (LLSDArray)((LLSD)requestMap["parameter"]); | 628 | Parameter = (OSDArray)requestMap["parameter"]; |
629 | } | 629 | } |
630 | 630 | ||
631 | //int version = 1; | 631 | //int version = 1; |
@@ -636,7 +636,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
636 | 636 | ||
637 | for (int i = 0; i < Parameter.Count; i++) | 637 | for (int i = 0; i < Parameter.Count; i++) |
638 | { | 638 | { |
639 | LLSDMap item = (LLSDMap)Parameter[i]; | 639 | OSDMap item = (OSDMap)Parameter[i]; |
640 | // if (item.ContainsKey("version")) | 640 | // if (item.ContainsKey("version")) |
641 | // { | 641 | // { |
642 | // version = item["version"].AsInteger(); | 642 | // version = item["version"].AsInteger(); |
@@ -714,15 +714,15 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
714 | RegionInfo reg = homeScene.RegionInfo; | 714 | RegionInfo reg = homeScene.RegionInfo; |
715 | 715 | ||
716 | // Dummy positional and look at info.. we don't have it. | 716 | // Dummy positional and look at info.. we don't have it. |
717 | LLSDArray PositionArray = new LLSDArray(); | 717 | OSDArray PositionArray = new OSDArray(); |
718 | PositionArray.Add(LLSD.FromInteger(128)); | 718 | PositionArray.Add(OSD.FromInteger(128)); |
719 | PositionArray.Add(LLSD.FromInteger(128)); | 719 | PositionArray.Add(OSD.FromInteger(128)); |
720 | PositionArray.Add(LLSD.FromInteger(40)); | 720 | PositionArray.Add(OSD.FromInteger(40)); |
721 | 721 | ||
722 | LLSDArray LookAtArray = new LLSDArray(); | 722 | OSDArray LookAtArray = new OSDArray(); |
723 | LookAtArray.Add(LLSD.FromInteger(1)); | 723 | LookAtArray.Add(OSD.FromInteger(1)); |
724 | LookAtArray.Add(LLSD.FromInteger(1)); | 724 | LookAtArray.Add(OSD.FromInteger(1)); |
725 | LookAtArray.Add(LLSD.FromInteger(1)); | 725 | LookAtArray.Add(OSD.FromInteger(1)); |
726 | 726 | ||
727 | // Our region's X and Y position in OpenSimulator space. | 727 | // Our region's X and Y position in OpenSimulator space. |
728 | uint fooX = reg.RegionLocX; | 728 | uint fooX = reg.RegionLocX; |
@@ -732,31 +732,31 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
732 | m_log.InfoFormat("[OGO]: region UUID {0} ", reg.RegionID); | 732 | m_log.InfoFormat("[OGO]: region UUID {0} ", reg.RegionID); |
733 | 733 | ||
734 | // Convert the X and Y position to LL space | 734 | // Convert the X and Y position to LL space |
735 | responseMap["region_x"] = LLSD.FromInteger(fooX * (uint)Constants.RegionSize); // convert it to LL X | 735 | responseMap["region_x"] = OSD.FromInteger(fooX * (uint)Constants.RegionSize); // convert it to LL X |
736 | responseMap["region_y"] = LLSD.FromInteger(fooY * (uint)Constants.RegionSize); // convert it to LL Y | 736 | responseMap["region_y"] = OSD.FromInteger(fooY * (uint)Constants.RegionSize); // convert it to LL Y |
737 | 737 | ||
738 | // Give em a new seed capability | 738 | // Give em a new seed capability |
739 | responseMap["seed_capability"] = LLSD.FromString("http://" + reg.ExternalHostName + ":" + reg.HttpPort + "/CAPS/" + userCap.CapsObjectPath + "0000/"); | 739 | responseMap["seed_capability"] = OSD.FromString("http://" + reg.ExternalHostName + ":" + reg.HttpPort + "/CAPS/" + userCap.CapsObjectPath + "0000/"); |
740 | responseMap["region"] = LLSD.FromUUID(reg.originRegionID); | 740 | responseMap["region"] = OSD.FromUUID(reg.originRegionID); |
741 | responseMap["look_at"] = LookAtArray; | 741 | responseMap["look_at"] = LookAtArray; |
742 | 742 | ||
743 | responseMap["sim_port"] = LLSD.FromInteger(reg.InternalEndPoint.Port); | 743 | responseMap["sim_port"] = OSD.FromInteger(reg.InternalEndPoint.Port); |
744 | responseMap["sim_host"] = LLSD.FromString(reg.ExternalHostName);// + ":" + reg.InternalEndPoint.Port.ToString()); | 744 | responseMap["sim_host"] = OSD.FromString(reg.ExternalHostName);// + ":" + reg.InternalEndPoint.Port.ToString()); |
745 | 745 | ||
746 | // DEPRECIATED | 746 | // DEPRECIATED |
747 | responseMap["sim_ip"] = LLSD.FromString(Util.GetHostFromDNS(reg.ExternalHostName).ToString()); | 747 | responseMap["sim_ip"] = OSD.FromString(Util.GetHostFromDNS(reg.ExternalHostName).ToString()); |
748 | 748 | ||
749 | responseMap["session_id"] = LLSD.FromUUID(SessionID); | 749 | responseMap["session_id"] = OSD.FromUUID(SessionID); |
750 | responseMap["secure_session_id"] = LLSD.FromUUID(SecureSessionID); | 750 | responseMap["secure_session_id"] = OSD.FromUUID(SecureSessionID); |
751 | responseMap["circuit_code"] = LLSD.FromInteger(circuitcode); | 751 | responseMap["circuit_code"] = OSD.FromInteger(circuitcode); |
752 | 752 | ||
753 | responseMap["position"] = PositionArray; | 753 | responseMap["position"] = PositionArray; |
754 | 754 | ||
755 | responseMap["region_id"] = LLSD.FromUUID(reg.originRegionID); | 755 | responseMap["region_id"] = OSD.FromUUID(reg.originRegionID); |
756 | 756 | ||
757 | responseMap["sim_access"] = LLSD.FromString("Mature"); | 757 | responseMap["sim_access"] = OSD.FromString("Mature"); |
758 | 758 | ||
759 | responseMap["connect"] = LLSD.FromBoolean(true); | 759 | responseMap["connect"] = OSD.FromBoolean(true); |
760 | 760 | ||
761 | 761 | ||
762 | 762 | ||
@@ -767,12 +767,12 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
767 | return responseMap; | 767 | return responseMap; |
768 | } | 768 | } |
769 | 769 | ||
770 | public LLSD DerezAvatarMethod(string path, LLSD request) | 770 | public OSD DerezAvatarMethod(string path, OSD request) |
771 | { | 771 | { |
772 | m_log.ErrorFormat("DerezPath: {0}, Request: {1}", path, request.ToString()); | 772 | m_log.ErrorFormat("DerezPath: {0}, Request: {1}", path, request.ToString()); |
773 | 773 | ||
774 | //LLSD llsdResponse = null; | 774 | //LLSD llsdResponse = null; |
775 | LLSDMap responseMap = new LLSDMap(); | 775 | OSDMap responseMap = new OSDMap(); |
776 | 776 | ||
777 | string[] PathArray = path.Split('/'); | 777 | string[] PathArray = path.Split('/'); |
778 | m_log.InfoFormat("[OGP]: prefix {0}, uuid {1}, suffix {2}", PathArray[1], PathArray[2], PathArray[3]); | 778 | m_log.InfoFormat("[OGP]: prefix {0}, uuid {1}, suffix {2}", PathArray[1], PathArray[2], PathArray[3]); |
@@ -790,34 +790,34 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
790 | OGPState userState = GetOGPState(LocalID); | 790 | OGPState userState = GetOGPState(LocalID); |
791 | if (userState.agent_id != UUID.Zero) | 791 | if (userState.agent_id != UUID.Zero) |
792 | { | 792 | { |
793 | //LLSDMap outboundRequestMap = new LLSDMap(); | 793 | //OSDMap outboundRequestMap = new OSDMap(); |
794 | LLSDMap inboundRequestMap = (LLSDMap)request; | 794 | OSDMap inboundRequestMap = (OSDMap)request; |
795 | string rezAvatarString = inboundRequestMap["rez_avatar"].AsString(); | 795 | string rezAvatarString = inboundRequestMap["rez_avatar"].AsString(); |
796 | if (rezAvatarString.Length == 0) | 796 | if (rezAvatarString.Length == 0) |
797 | { | 797 | { |
798 | rezAvatarString = inboundRequestMap["rez_avatar/rez"].AsString(); | 798 | rezAvatarString = inboundRequestMap["rez_avatar/rez"].AsString(); |
799 | } | 799 | } |
800 | LLSDArray LookAtArray = new LLSDArray(); | 800 | OSDArray LookAtArray = new OSDArray(); |
801 | LookAtArray.Add(LLSD.FromInteger(1)); | 801 | LookAtArray.Add(OSD.FromInteger(1)); |
802 | LookAtArray.Add(LLSD.FromInteger(1)); | 802 | LookAtArray.Add(OSD.FromInteger(1)); |
803 | LookAtArray.Add(LLSD.FromInteger(1)); | 803 | LookAtArray.Add(OSD.FromInteger(1)); |
804 | 804 | ||
805 | LLSDArray PositionArray = new LLSDArray(); | 805 | OSDArray PositionArray = new OSDArray(); |
806 | PositionArray.Add(LLSD.FromInteger(128)); | 806 | PositionArray.Add(OSD.FromInteger(128)); |
807 | PositionArray.Add(LLSD.FromInteger(128)); | 807 | PositionArray.Add(OSD.FromInteger(128)); |
808 | PositionArray.Add(LLSD.FromInteger(40)); | 808 | PositionArray.Add(OSD.FromInteger(40)); |
809 | 809 | ||
810 | LLSDArray lookArray = new LLSDArray(); | 810 | OSDArray lookArray = new OSDArray(); |
811 | lookArray.Add(LLSD.FromInteger(128)); | 811 | lookArray.Add(OSD.FromInteger(128)); |
812 | lookArray.Add(LLSD.FromInteger(128)); | 812 | lookArray.Add(OSD.FromInteger(128)); |
813 | lookArray.Add(LLSD.FromInteger(40)); | 813 | lookArray.Add(OSD.FromInteger(40)); |
814 | 814 | ||
815 | responseMap["connect"] = LLSD.FromBoolean(true);// it's okay to give this user up | 815 | responseMap["connect"] = OSD.FromBoolean(true);// it's okay to give this user up |
816 | responseMap["look_at"] = LookAtArray; | 816 | responseMap["look_at"] = LookAtArray; |
817 | 817 | ||
818 | m_log.WarnFormat("[OGP]: Invoking rez_avatar on host:{0} for avatar: {1} {2}", rezAvatarString, userState.first_name, userState.last_name); | 818 | m_log.WarnFormat("[OGP]: Invoking rez_avatar on host:{0} for avatar: {1} {2}", rezAvatarString, userState.first_name, userState.last_name); |
819 | 819 | ||
820 | LLSDMap rezResponseMap = invokeRezAvatarCap(responseMap, rezAvatarString,userState); | 820 | OSDMap rezResponseMap = invokeRezAvatarCap(responseMap, rezAvatarString,userState); |
821 | 821 | ||
822 | // If invoking it returned an error, parse and end | 822 | // If invoking it returned an error, parse and end |
823 | if (rezResponseMap.ContainsKey("connect")) | 823 | if (rezResponseMap.ContainsKey("connect")) |
@@ -852,34 +852,34 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
852 | int rrY = rezResponseMap["region_y"].AsInteger(); | 852 | int rrY = rezResponseMap["region_y"].AsInteger(); |
853 | m_log.ErrorFormat("X:{0}, Y:{1}", rrX, rrY); | 853 | m_log.ErrorFormat("X:{0}, Y:{1}", rrX, rrY); |
854 | UUID rrRID = rezResponseMap["region_id"].AsUUID(); | 854 | UUID rrRID = rezResponseMap["region_id"].AsUUID(); |
855 | LLSDArray RezResponsePositionArray = null; | 855 | OSDArray RezResponsePositionArray = null; |
856 | string rrAccess = rezResponseMap["sim_access"].AsString(); | 856 | string rrAccess = rezResponseMap["sim_access"].AsString(); |
857 | if (rezResponseMap.ContainsKey("position")) | 857 | if (rezResponseMap.ContainsKey("position")) |
858 | { | 858 | { |
859 | RezResponsePositionArray = (LLSDArray)rezResponseMap["position"]; | 859 | RezResponsePositionArray = (OSDArray)rezResponseMap["position"]; |
860 | } | 860 | } |
861 | // DEPRECIATED | 861 | // DEPRECIATED |
862 | responseMap["seed_capability"] = LLSD.FromString(rezRespSeedCap); | 862 | responseMap["seed_capability"] = OSD.FromString(rezRespSeedCap); |
863 | 863 | ||
864 | // REPLACEMENT r3 | 864 | // REPLACEMENT r3 |
865 | responseMap["region_seed_capability"] = LLSD.FromString(rezRespSeedCap); | 865 | responseMap["region_seed_capability"] = OSD.FromString(rezRespSeedCap); |
866 | 866 | ||
867 | // DEPRECIATED | 867 | // DEPRECIATED |
868 | responseMap["sim_ip"] = LLSD.FromString(Util.GetHostFromDNS(rezRespSim_ip).ToString()); | 868 | responseMap["sim_ip"] = OSD.FromString(Util.GetHostFromDNS(rezRespSim_ip).ToString()); |
869 | 869 | ||
870 | responseMap["sim_host"] = LLSD.FromString(rezRespSim_host); | 870 | responseMap["sim_host"] = OSD.FromString(rezRespSim_host); |
871 | responseMap["sim_port"] = LLSD.FromInteger(rrPort); | 871 | responseMap["sim_port"] = OSD.FromInteger(rrPort); |
872 | responseMap["region_x"] = LLSD.FromInteger(rrX ); | 872 | responseMap["region_x"] = OSD.FromInteger(rrX ); |
873 | responseMap["region_y"] = LLSD.FromInteger(rrY ); | 873 | responseMap["region_y"] = OSD.FromInteger(rrY ); |
874 | responseMap["region_id"] = LLSD.FromUUID(rrRID); | 874 | responseMap["region_id"] = OSD.FromUUID(rrRID); |
875 | responseMap["sim_access"] = LLSD.FromString(rrAccess); | 875 | responseMap["sim_access"] = OSD.FromString(rrAccess); |
876 | 876 | ||
877 | if (RezResponsePositionArray != null) | 877 | if (RezResponsePositionArray != null) |
878 | { | 878 | { |
879 | responseMap["position"] = RezResponsePositionArray; | 879 | responseMap["position"] = RezResponsePositionArray; |
880 | } | 880 | } |
881 | responseMap["look_at"] = lookArray; | 881 | responseMap["look_at"] = lookArray; |
882 | responseMap["connect"] = LLSD.FromBoolean(true); | 882 | responseMap["connect"] = OSD.FromBoolean(true); |
883 | 883 | ||
884 | ShutdownConnection(LocalID,this); | 884 | ShutdownConnection(LocalID,this); |
885 | // PLEASE STOP CHANGING THIS TO an M_LOG, M_LOG DOESN'T WORK ON MULTILINE .TOSTRINGS | 885 | // PLEASE STOP CHANGING THIS TO an M_LOG, M_LOG DOESN'T WORK ON MULTILINE .TOSTRINGS |
@@ -899,7 +899,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
899 | //return responseMap; | 899 | //return responseMap; |
900 | } | 900 | } |
901 | 901 | ||
902 | private LLSDMap invokeRezAvatarCap(LLSDMap responseMap, string CapAddress, OGPState userState) | 902 | private OSDMap invokeRezAvatarCap(OSDMap responseMap, string CapAddress, OGPState userState) |
903 | { | 903 | { |
904 | Scene reg = GetRootScene(); | 904 | Scene reg = GetRootScene(); |
905 | 905 | ||
@@ -907,38 +907,38 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
907 | DeRezRequest.Method = "POST"; | 907 | DeRezRequest.Method = "POST"; |
908 | DeRezRequest.ContentType = "application/xml+llsd"; | 908 | DeRezRequest.ContentType = "application/xml+llsd"; |
909 | 909 | ||
910 | LLSDMap RAMap = new LLSDMap(); | 910 | OSDMap RAMap = new OSDMap(); |
911 | LLSDMap AgentParms = new LLSDMap(); | 911 | OSDMap AgentParms = new OSDMap(); |
912 | LLSDMap RegionParms = new LLSDMap(); | 912 | OSDMap RegionParms = new OSDMap(); |
913 | 913 | ||
914 | LLSDArray Parameter = new LLSDArray(2); | 914 | OSDArray Parameter = new OSDArray(2); |
915 | 915 | ||
916 | LLSDMap version = new LLSDMap(); | 916 | OSDMap version = new OSDMap(); |
917 | version["version"] = LLSD.FromInteger(userState.src_version); | 917 | version["version"] = OSD.FromInteger(userState.src_version); |
918 | Parameter.Add((LLSD)version); | 918 | Parameter.Add(version); |
919 | 919 | ||
920 | LLSDMap SrcData = new LLSDMap(); | 920 | OSDMap SrcData = new OSDMap(); |
921 | SrcData["estate_id"] = LLSD.FromInteger(reg.RegionInfo.EstateSettings.EstateID); | 921 | SrcData["estate_id"] = OSD.FromInteger(reg.RegionInfo.EstateSettings.EstateID); |
922 | SrcData["parent_estate_id"] = LLSD.FromInteger((reg.RegionInfo.EstateSettings.ParentEstateID == 100 ? 1 : reg.RegionInfo.EstateSettings.ParentEstateID)); | 922 | SrcData["parent_estate_id"] = OSD.FromInteger((reg.RegionInfo.EstateSettings.ParentEstateID == 100 ? 1 : reg.RegionInfo.EstateSettings.ParentEstateID)); |
923 | SrcData["region_id"] = LLSD.FromUUID(reg.RegionInfo.originRegionID); | 923 | SrcData["region_id"] = OSD.FromUUID(reg.RegionInfo.originRegionID); |
924 | SrcData["visible_to_parent"] = LLSD.FromBoolean(userState.visible_to_parent); | 924 | SrcData["visible_to_parent"] = OSD.FromBoolean(userState.visible_to_parent); |
925 | Parameter.Add((LLSD)SrcData); | 925 | Parameter.Add(SrcData); |
926 | 926 | ||
927 | AgentParms["first_name"] = LLSD.FromString(userState.first_name); | 927 | AgentParms["first_name"] = OSD.FromString(userState.first_name); |
928 | AgentParms["last_name"] = LLSD.FromString(userState.last_name); | 928 | AgentParms["last_name"] = OSD.FromString(userState.last_name); |
929 | AgentParms["agent_id"] = LLSD.FromUUID(userState.agent_id); | 929 | AgentParms["agent_id"] = OSD.FromUUID(userState.agent_id); |
930 | RegionParms["region_id"] = LLSD.FromUUID(userState.region_id); | 930 | RegionParms["region_id"] = OSD.FromUUID(userState.region_id); |
931 | AgentParms["circuit_code"] = LLSD.FromInteger(userState.circuit_code); | 931 | AgentParms["circuit_code"] = OSD.FromInteger(userState.circuit_code); |
932 | AgentParms["secure_session_id"] = LLSD.FromUUID(userState.secure_session_id); | 932 | AgentParms["secure_session_id"] = OSD.FromUUID(userState.secure_session_id); |
933 | AgentParms["session_id"] = LLSD.FromUUID(userState.session_id); | 933 | AgentParms["session_id"] = OSD.FromUUID(userState.session_id); |
934 | AgentParms["agent_access"] = LLSD.FromBoolean(userState.agent_access); | 934 | AgentParms["agent_access"] = OSD.FromBoolean(userState.agent_access); |
935 | AgentParms["god_level"] = LLSD.FromInteger(userState.god_level); | 935 | AgentParms["god_level"] = OSD.FromInteger(userState.god_level); |
936 | AgentParms["god_overide"] = LLSD.FromBoolean(userState.god_overide); | 936 | AgentParms["god_overide"] = OSD.FromBoolean(userState.god_overide); |
937 | AgentParms["identified"] = LLSD.FromBoolean(userState.identified); | 937 | AgentParms["identified"] = OSD.FromBoolean(userState.identified); |
938 | AgentParms["transacted"] = LLSD.FromBoolean(userState.transacted); | 938 | AgentParms["transacted"] = OSD.FromBoolean(userState.transacted); |
939 | AgentParms["age_verified"] = LLSD.FromBoolean(userState.age_verified); | 939 | AgentParms["age_verified"] = OSD.FromBoolean(userState.age_verified); |
940 | AgentParms["limited_to_estate"] = LLSD.FromInteger(userState.limited_to_estate); | 940 | AgentParms["limited_to_estate"] = OSD.FromInteger(userState.limited_to_estate); |
941 | AgentParms["inventory_host"] = LLSD.FromString(userState.inventory_host); | 941 | AgentParms["inventory_host"] = OSD.FromString(userState.inventory_host); |
942 | 942 | ||
943 | // version 1 | 943 | // version 1 |
944 | RAMap = AgentParms; | 944 | RAMap = AgentParms; |
@@ -951,11 +951,11 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
951 | 951 | ||
952 | string RAMapString = RAMap.ToString(); | 952 | string RAMapString = RAMap.ToString(); |
953 | m_log.InfoFormat("[OGP] RAMap string {0}", RAMapString); | 953 | m_log.InfoFormat("[OGP] RAMap string {0}", RAMapString); |
954 | LLSD LLSDofRAMap = RAMap; // RENAME if this works | 954 | OSD LLSDofRAMap = RAMap; // RENAME if this works |
955 | 955 | ||
956 | m_log.InfoFormat("[OGP]: LLSD of map as string was {0}", LLSDofRAMap.ToString()); | 956 | m_log.InfoFormat("[OGP]: LLSD of map as string was {0}", LLSDofRAMap.ToString()); |
957 | //m_log.InfoFormat("[OGP]: LLSD+XML: {0}", LLSDParser.SerializeXmlString(LLSDofRAMap)); | 957 | //m_log.InfoFormat("[OGP]: LLSD+XML: {0}", LLSDParser.SerializeXmlString(LLSDofRAMap)); |
958 | byte[] buffer = LLSDParser.SerializeXmlBytes(LLSDofRAMap); | 958 | byte[] buffer = OSDParser.SerializeLLSDXmlBytes(LLSDofRAMap); |
959 | 959 | ||
960 | //string bufferDump = System.Text.Encoding.ASCII.GetString(buffer); | 960 | //string bufferDump = System.Text.Encoding.ASCII.GetString(buffer); |
961 | //m_log.InfoFormat("[OGP]: buffer form is {0}",bufferDump); | 961 | //m_log.InfoFormat("[OGP]: buffer form is {0}",bufferDump); |
@@ -973,7 +973,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
973 | catch (WebException ex) | 973 | catch (WebException ex) |
974 | { | 974 | { |
975 | m_log.InfoFormat("[OGP] Bad send on de_rez_avatar {0}", ex.Message); | 975 | m_log.InfoFormat("[OGP] Bad send on de_rez_avatar {0}", ex.Message); |
976 | responseMap["connect"] = LLSD.FromBoolean(false); | 976 | responseMap["connect"] = OSD.FromBoolean(false); |
977 | 977 | ||
978 | return responseMap; | 978 | return responseMap; |
979 | } | 979 | } |
@@ -997,21 +997,21 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
997 | catch (WebException ex) | 997 | catch (WebException ex) |
998 | { | 998 | { |
999 | m_log.InfoFormat("[OGP]: exception on read after send of rez avatar {0}", ex.Message); | 999 | m_log.InfoFormat("[OGP]: exception on read after send of rez avatar {0}", ex.Message); |
1000 | responseMap["connect"] = LLSD.FromBoolean(false); | 1000 | responseMap["connect"] = OSD.FromBoolean(false); |
1001 | 1001 | ||
1002 | return responseMap; | 1002 | return responseMap; |
1003 | } | 1003 | } |
1004 | LLSD rezResponse = null; | 1004 | OSD rezResponse = null; |
1005 | try | 1005 | try |
1006 | { | 1006 | { |
1007 | rezResponse = LLSDParser.DeserializeXml(rez_avatar_reply); | 1007 | rezResponse = OSDParser.DeserializeLLSDXml(rez_avatar_reply); |
1008 | 1008 | ||
1009 | responseMap = (LLSDMap)rezResponse; | 1009 | responseMap = (OSDMap)rezResponse; |
1010 | } | 1010 | } |
1011 | catch (Exception ex) | 1011 | catch (Exception ex) |
1012 | { | 1012 | { |
1013 | m_log.InfoFormat("[OGP]: exception on parse of rez reply {0}", ex.Message); | 1013 | m_log.InfoFormat("[OGP]: exception on parse of rez reply {0}", ex.Message); |
1014 | responseMap["connect"] = LLSD.FromBoolean(false); | 1014 | responseMap["connect"] = OSD.FromBoolean(false); |
1015 | 1015 | ||
1016 | return responseMap; | 1016 | return responseMap; |
1017 | } | 1017 | } |
@@ -1019,22 +1019,22 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
1019 | return responseMap; | 1019 | return responseMap; |
1020 | } | 1020 | } |
1021 | 1021 | ||
1022 | public LLSD GenerateNoHandlerMessage() | 1022 | public OSD GenerateNoHandlerMessage() |
1023 | { | 1023 | { |
1024 | LLSDMap map = new LLSDMap(); | 1024 | OSDMap map = new OSDMap(); |
1025 | map["reason"] = LLSD.FromString("LLSDRequest"); | 1025 | map["reason"] = OSD.FromString("LLSDRequest"); |
1026 | map["message"] = LLSD.FromString("No handler registered for LLSD Requests"); | 1026 | map["message"] = OSD.FromString("No handler registered for LLSD Requests"); |
1027 | map["login"] = LLSD.FromString("false"); | 1027 | map["login"] = OSD.FromString("false"); |
1028 | map["connect"] = LLSD.FromString("false"); | 1028 | map["connect"] = OSD.FromString("false"); |
1029 | return map; | 1029 | return map; |
1030 | } | 1030 | } |
1031 | public LLSD GenerateNoStateMessage(UUID passedAvatar) | 1031 | public OSD GenerateNoStateMessage(UUID passedAvatar) |
1032 | { | 1032 | { |
1033 | LLSDMap map = new LLSDMap(); | 1033 | OSDMap map = new OSDMap(); |
1034 | map["reason"] = LLSD.FromString("derez failed"); | 1034 | map["reason"] = OSD.FromString("derez failed"); |
1035 | map["message"] = LLSD.FromString("Unable to locate OGP state for avatar " + passedAvatar.ToString()); | 1035 | map["message"] = OSD.FromString("Unable to locate OGP state for avatar " + passedAvatar.ToString()); |
1036 | map["login"] = LLSD.FromString("false"); | 1036 | map["login"] = OSD.FromString("false"); |
1037 | map["connect"] = LLSD.FromString("false"); | 1037 | map["connect"] = OSD.FromString("false"); |
1038 | return map; | 1038 | return map; |
1039 | } | 1039 | } |
1040 | private bool TryGetAgentCircuitData(string path, out AgentCircuitData userdata) | 1040 | private bool TryGetAgentCircuitData(string path, out AgentCircuitData userdata) |
diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs b/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs index 27c7014..197d5c2 100644 --- a/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs +++ b/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs | |||
@@ -369,7 +369,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
369 | List<ParcelManager.ParcelAccessEntry> toRemove = new List<ParcelManager.ParcelAccessEntry>(); | 369 | List<ParcelManager.ParcelAccessEntry> toRemove = new List<ParcelManager.ParcelAccessEntry>(); |
370 | foreach (ParcelManager.ParcelAccessEntry entry in newData.ParcelAccessList) | 370 | foreach (ParcelManager.ParcelAccessEntry entry in newData.ParcelAccessList) |
371 | { | 371 | { |
372 | if (entry.Flags == (AccessList) flags) | 372 | if (entry.Flags == (AccessList)flags) |
373 | { | 373 | { |
374 | toRemove.Add(entry); | 374 | toRemove.Add(entry); |
375 | } | 375 | } |
@@ -384,7 +384,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
384 | ParcelManager.ParcelAccessEntry temp = new ParcelManager.ParcelAccessEntry(); | 384 | ParcelManager.ParcelAccessEntry temp = new ParcelManager.ParcelAccessEntry(); |
385 | temp.AgentID = entry.AgentID; | 385 | temp.AgentID = entry.AgentID; |
386 | temp.Time = new DateTime(); //Pointless? Yes. | 386 | temp.Time = new DateTime(); //Pointless? Yes. |
387 | temp.Flags = (AccessList) flags; | 387 | temp.Flags = (AccessList)flags; |
388 | 388 | ||
389 | if (!newData.ParcelAccessList.Contains(temp)) | 389 | if (!newData.ParcelAccessList.Contains(temp)) |
390 | { | 390 | { |
diff --git a/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs index c51a314..8318cdc 100644 --- a/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs +++ b/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs | |||
@@ -48,9 +48,9 @@ using OpenSim.Region.Environment.Scenes; | |||
48 | using OpenSim.Region.Environment.Types; | 48 | using OpenSim.Region.Environment.Types; |
49 | using Caps = OpenSim.Framework.Communications.Capabilities.Caps; | 49 | using Caps = OpenSim.Framework.Communications.Capabilities.Caps; |
50 | 50 | ||
51 | using LLSD = OpenMetaverse.StructuredData.LLSD; | 51 | using OSD = OpenMetaverse.StructuredData.OSD; |
52 | using LLSDMap = OpenMetaverse.StructuredData.LLSDMap; | 52 | using OSDMap = OpenMetaverse.StructuredData.OSDMap; |
53 | using LLSDArray = OpenMetaverse.StructuredData.LLSDArray; | 53 | using OSDArray = OpenMetaverse.StructuredData.OSDArray; |
54 | 54 | ||
55 | namespace OpenSim.Region.Environment.Modules.World.WorldMap | 55 | namespace OpenSim.Region.Environment.Modules.World.WorldMap |
56 | { | 56 | { |
@@ -202,7 +202,7 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap | |||
202 | } | 202 | } |
203 | } | 203 | } |
204 | LLSDMapLayerResponse mapResponse = new LLSDMapLayerResponse(); | 204 | LLSDMapLayerResponse mapResponse = new LLSDMapLayerResponse(); |
205 | mapResponse.LayerData.Array.Add(GetLLSDMapLayerResponse()); | 205 | mapResponse.LayerData.Array.Add(GetOSDMapLayerResponse()); |
206 | return mapResponse.ToString(); | 206 | return mapResponse.ToString(); |
207 | } | 207 | } |
208 | 208 | ||
@@ -215,7 +215,7 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap | |||
215 | { | 215 | { |
216 | m_log.Debug("[CAPS]: MapLayer Request in region: " + m_scene.RegionInfo.RegionName); | 216 | m_log.Debug("[CAPS]: MapLayer Request in region: " + m_scene.RegionInfo.RegionName); |
217 | LLSDMapLayerResponse mapResponse = new LLSDMapLayerResponse(); | 217 | LLSDMapLayerResponse mapResponse = new LLSDMapLayerResponse(); |
218 | mapResponse.LayerData.Array.Add(GetLLSDMapLayerResponse()); | 218 | mapResponse.LayerData.Array.Add(GetOSDMapLayerResponse()); |
219 | return mapResponse; | 219 | return mapResponse; |
220 | } | 220 | } |
221 | 221 | ||
@@ -223,9 +223,9 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap | |||
223 | /// | 223 | /// |
224 | /// </summary> | 224 | /// </summary> |
225 | /// <returns></returns> | 225 | /// <returns></returns> |
226 | protected static LLSDMapLayer GetLLSDMapLayerResponse() | 226 | protected static OSDMapLayer GetOSDMapLayerResponse() |
227 | { | 227 | { |
228 | LLSDMapLayer mapLayer = new LLSDMapLayer(); | 228 | OSDMapLayer mapLayer = new OSDMapLayer(); |
229 | mapLayer.Right = 5000; | 229 | mapLayer.Right = 5000; |
230 | mapLayer.Top = 5000; | 230 | mapLayer.Top = 5000; |
231 | mapLayer.ImageID = new UUID("00000000-0000-1111-9999-000000000006"); | 231 | mapLayer.ImageID = new UUID("00000000-0000-1111-9999-000000000006"); |
@@ -321,7 +321,7 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap | |||
321 | } | 321 | } |
322 | uint xstart = 0; | 322 | uint xstart = 0; |
323 | uint ystart = 0; | 323 | uint ystart = 0; |
324 | Helpers.LongToUInts(m_scene.RegionInfo.RegionHandle, out xstart, out ystart); | 324 | Utils.LongToUInts(m_scene.RegionInfo.RegionHandle, out xstart, out ystart); |
325 | if (itemtype == 6) // we only sevice 6 right now (avatar green dots) | 325 | if (itemtype == 6) // we only sevice 6 right now (avatar green dots) |
326 | { | 326 | { |
327 | if (regionhandle == 0 || regionhandle == m_scene.RegionInfo.RegionHandle) | 327 | if (regionhandle == 0 || regionhandle == m_scene.RegionInfo.RegionHandle) |
@@ -407,7 +407,7 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap | |||
407 | 407 | ||
408 | if (dorequest) | 408 | if (dorequest) |
409 | { | 409 | { |
410 | LLSDMap response = RequestMapItemsAsync("", st.agentID, st.flags, st.EstateID, st.godlike, st.itemtype, st.regionhandle); | 410 | OSDMap response = RequestMapItemsAsync("", st.agentID, st.flags, st.EstateID, st.godlike, st.itemtype, st.regionhandle); |
411 | RequestMapItemsCompleted(response); | 411 | RequestMapItemsCompleted(response); |
412 | } | 412 | } |
413 | } | 413 | } |
@@ -433,8 +433,8 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap | |||
433 | /// <summary> | 433 | /// <summary> |
434 | /// Sends the mapitem response to the IClientAPI | 434 | /// Sends the mapitem response to the IClientAPI |
435 | /// </summary> | 435 | /// </summary> |
436 | /// <param name="response">The LLSDMap Response for the mapitem</param> | 436 | /// <param name="response">The OSDMap Response for the mapitem</param> |
437 | private void RequestMapItemsCompleted(LLSDMap response) | 437 | private void RequestMapItemsCompleted(OSDMap response) |
438 | { | 438 | { |
439 | UUID requestID = response["requestID"].AsUUID(); | 439 | UUID requestID = response["requestID"].AsUUID(); |
440 | 440 | ||
@@ -460,10 +460,10 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap | |||
460 | if (response.ContainsKey(mrs.itemtype.ToString())) | 460 | if (response.ContainsKey(mrs.itemtype.ToString())) |
461 | { | 461 | { |
462 | List<mapItemReply> returnitems = new List<mapItemReply>(); | 462 | List<mapItemReply> returnitems = new List<mapItemReply>(); |
463 | LLSDArray itemarray = (LLSDArray)response[mrs.itemtype.ToString()]; | 463 | OSDArray itemarray = (OSDArray)response[mrs.itemtype.ToString()]; |
464 | for (int i = 0; i < itemarray.Count; i++) | 464 | for (int i = 0; i < itemarray.Count; i++) |
465 | { | 465 | { |
466 | LLSDMap mapitem = (LLSDMap)itemarray[i]; | 466 | OSDMap mapitem = (OSDMap)itemarray[i]; |
467 | mapItemReply mi = new mapItemReply(); | 467 | mapItemReply mi = new mapItemReply(); |
468 | mi.x = (uint)mapitem["X"].AsInteger(); | 468 | mi.x = (uint)mapitem["X"].AsInteger(); |
469 | mi.y = (uint)mapitem["Y"].AsInteger(); | 469 | mi.y = (uint)mapitem["Y"].AsInteger(); |
@@ -517,7 +517,7 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap | |||
517 | /// <param name="itemtype">passed in from packet</param> | 517 | /// <param name="itemtype">passed in from packet</param> |
518 | /// <param name="regionhandle">Region we're looking up</param> | 518 | /// <param name="regionhandle">Region we're looking up</param> |
519 | /// <returns></returns> | 519 | /// <returns></returns> |
520 | private LLSDMap RequestMapItemsAsync(string httpserver, UUID id, uint flags, | 520 | private OSDMap RequestMapItemsAsync(string httpserver, UUID id, uint flags, |
521 | uint EstateID, bool godlike, uint itemtype, ulong regionhandle) | 521 | uint EstateID, bool godlike, uint itemtype, ulong regionhandle) |
522 | { | 522 | { |
523 | bool blacklisted = false; | 523 | bool blacklisted = false; |
@@ -528,7 +528,7 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap | |||
528 | } | 528 | } |
529 | 529 | ||
530 | if (blacklisted) | 530 | if (blacklisted) |
531 | return new LLSDMap(); | 531 | return new OSDMap(); |
532 | 532 | ||
533 | UUID requestID = UUID.Random(); | 533 | UUID requestID = UUID.Random(); |
534 | lock (m_cachedRegionMapItemsAddress) | 534 | lock (m_cachedRegionMapItemsAddress) |
@@ -569,7 +569,7 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap | |||
569 | 569 | ||
570 | // Can't find the http server | 570 | // Can't find the http server |
571 | if (httpserver.Length == 0 || blacklisted) | 571 | if (httpserver.Length == 0 || blacklisted) |
572 | return new LLSDMap(); | 572 | return new OSDMap(); |
573 | 573 | ||
574 | MapRequestState mrs = new MapRequestState(); | 574 | MapRequestState mrs = new MapRequestState(); |
575 | mrs.agentID = id; | 575 | mrs.agentID = id; |
@@ -585,14 +585,14 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap | |||
585 | WebRequest mapitemsrequest = WebRequest.Create(httpserver); | 585 | WebRequest mapitemsrequest = WebRequest.Create(httpserver); |
586 | mapitemsrequest.Method = "POST"; | 586 | mapitemsrequest.Method = "POST"; |
587 | mapitemsrequest.ContentType = "application/xml+llsd"; | 587 | mapitemsrequest.ContentType = "application/xml+llsd"; |
588 | LLSDMap RAMap = new LLSDMap(); | 588 | OSDMap RAMap = new OSDMap(); |
589 | 589 | ||
590 | // string RAMapString = RAMap.ToString(); | 590 | // string RAMapString = RAMap.ToString(); |
591 | LLSD LLSDofRAMap = RAMap; // RENAME if this works | 591 | OSD LLSDofRAMap = RAMap; // RENAME if this works |
592 | 592 | ||
593 | byte[] buffer = LLSDParser.SerializeXmlBytes(LLSDofRAMap); | 593 | byte[] buffer = OSDParser.SerializeLLSDXmlBytes(LLSDofRAMap); |
594 | LLSDMap responseMap = new LLSDMap(); | 594 | OSDMap responseMap = new OSDMap(); |
595 | responseMap["requestID"] = LLSD.FromUUID(requestID); | 595 | responseMap["requestID"] = OSD.FromUUID(requestID); |
596 | 596 | ||
597 | Stream os = null; | 597 | Stream os = null; |
598 | try | 598 | try |
@@ -606,7 +606,7 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap | |||
606 | catch (WebException ex) | 606 | catch (WebException ex) |
607 | { | 607 | { |
608 | m_log.InfoFormat("[WorldMap] Bad send on GetMapItems {0}", ex.Message); | 608 | m_log.InfoFormat("[WorldMap] Bad send on GetMapItems {0}", ex.Message); |
609 | responseMap["connect"] = LLSD.FromBoolean(false); | 609 | responseMap["connect"] = OSD.FromBoolean(false); |
610 | lock (m_blacklistedurls) | 610 | lock (m_blacklistedurls) |
611 | { | 611 | { |
612 | if (!m_blacklistedurls.ContainsKey(httpserver)) | 612 | if (!m_blacklistedurls.ContainsKey(httpserver)) |
@@ -630,12 +630,12 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap | |||
630 | } | 630 | } |
631 | else | 631 | else |
632 | { | 632 | { |
633 | return new LLSDMap(); | 633 | return new OSDMap(); |
634 | } | 634 | } |
635 | } | 635 | } |
636 | catch (WebException) | 636 | catch (WebException) |
637 | { | 637 | { |
638 | responseMap["connect"] = LLSD.FromBoolean(false); | 638 | responseMap["connect"] = OSD.FromBoolean(false); |
639 | lock (m_blacklistedurls) | 639 | lock (m_blacklistedurls) |
640 | { | 640 | { |
641 | if (!m_blacklistedurls.ContainsKey(httpserver)) | 641 | if (!m_blacklistedurls.ContainsKey(httpserver)) |
@@ -646,18 +646,18 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap | |||
646 | 646 | ||
647 | return responseMap; | 647 | return responseMap; |
648 | } | 648 | } |
649 | LLSD rezResponse = null; | 649 | OSD rezResponse = null; |
650 | try | 650 | try |
651 | { | 651 | { |
652 | rezResponse = LLSDParser.DeserializeXml(response_mapItems_reply); | 652 | rezResponse = OSDParser.DeserializeLLSDXml(response_mapItems_reply); |
653 | 653 | ||
654 | responseMap = (LLSDMap)rezResponse; | 654 | responseMap = (OSDMap)rezResponse; |
655 | responseMap["requestID"] = LLSD.FromUUID(requestID); | 655 | responseMap["requestID"] = OSD.FromUUID(requestID); |
656 | } | 656 | } |
657 | catch (Exception) | 657 | catch (Exception) |
658 | { | 658 | { |
659 | //m_log.InfoFormat("[OGP]: exception on parse of rez reply {0}", ex.Message); | 659 | //m_log.InfoFormat("[OGP]: exception on parse of rez reply {0}", ex.Message); |
660 | responseMap["connect"] = LLSD.FromBoolean(false); | 660 | responseMap["connect"] = OSD.FromBoolean(false); |
661 | 661 | ||
662 | return responseMap; | 662 | return responseMap; |
663 | } | 663 | } |
@@ -793,57 +793,57 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap | |||
793 | return null; | 793 | return null; |
794 | } | 794 | } |
795 | 795 | ||
796 | public LLSD HandleRemoteMapItemRequest(string path, LLSD request, string endpoint) | 796 | public OSD HandleRemoteMapItemRequest(string path, OSD request, string endpoint) |
797 | { | 797 | { |
798 | uint xstart = 0; | 798 | uint xstart = 0; |
799 | uint ystart = 0; | 799 | uint ystart = 0; |
800 | 800 | ||
801 | Helpers.LongToUInts(m_scene.RegionInfo.RegionHandle,out xstart,out ystart); | 801 | Utils.LongToUInts(m_scene.RegionInfo.RegionHandle,out xstart,out ystart); |
802 | 802 | ||
803 | LLSDMap responsemap = new LLSDMap(); | 803 | OSDMap responsemap = new OSDMap(); |
804 | List<ScenePresence> avatars = m_scene.GetAvatars(); | 804 | List<ScenePresence> avatars = m_scene.GetAvatars(); |
805 | LLSDArray responsearr = new LLSDArray(avatars.Count); | 805 | OSDArray responsearr = new OSDArray(avatars.Count); |
806 | LLSDMap responsemapdata = new LLSDMap(); | 806 | OSDMap responsemapdata = new OSDMap(); |
807 | int tc = System.Environment.TickCount; | 807 | int tc = System.Environment.TickCount; |
808 | /* | 808 | /* |
809 | foreach (ScenePresence av in avatars) | 809 | foreach (ScenePresence av in avatars) |
810 | { | 810 | { |
811 | responsemapdata = new LLSDMap(); | 811 | responsemapdata = new OSDMap(); |
812 | responsemapdata["X"] = LLSD.FromInteger((int)(xstart + av.AbsolutePosition.X)); | 812 | responsemapdata["X"] = OSD.FromInteger((int)(xstart + av.AbsolutePosition.X)); |
813 | responsemapdata["Y"] = LLSD.FromInteger((int)(ystart + av.AbsolutePosition.Y)); | 813 | responsemapdata["Y"] = OSD.FromInteger((int)(ystart + av.AbsolutePosition.Y)); |
814 | responsemapdata["ID"] = LLSD.FromUUID(UUID.Zero); | 814 | responsemapdata["ID"] = OSD.FromUUID(UUID.Zero); |
815 | responsemapdata["Name"] = LLSD.FromString("TH"); | 815 | responsemapdata["Name"] = OSD.FromString("TH"); |
816 | responsemapdata["Extra"] = LLSD.FromInteger(0); | 816 | responsemapdata["Extra"] = OSD.FromInteger(0); |
817 | responsemapdata["Extra2"] = LLSD.FromInteger(0); | 817 | responsemapdata["Extra2"] = OSD.FromInteger(0); |
818 | responsearr.Add(responsemapdata); | 818 | responsearr.Add(responsemapdata); |
819 | } | 819 | } |
820 | responsemap["1"] = responsearr; | 820 | responsemap["1"] = responsearr; |
821 | */ | 821 | */ |
822 | if (avatars.Count == 0) | 822 | if (avatars.Count == 0) |
823 | { | 823 | { |
824 | responsemapdata = new LLSDMap(); | 824 | responsemapdata = new OSDMap(); |
825 | responsemapdata["X"] = LLSD.FromInteger((int)(xstart + 1)); | 825 | responsemapdata["X"] = OSD.FromInteger((int)(xstart + 1)); |
826 | responsemapdata["Y"] = LLSD.FromInteger((int)(ystart + 1)); | 826 | responsemapdata["Y"] = OSD.FromInteger((int)(ystart + 1)); |
827 | responsemapdata["ID"] = LLSD.FromUUID(UUID.Zero); | 827 | responsemapdata["ID"] = OSD.FromUUID(UUID.Zero); |
828 | responsemapdata["Name"] = LLSD.FromString(Util.Md5Hash(m_scene.RegionInfo.RegionName + tc.ToString())); | 828 | responsemapdata["Name"] = OSD.FromString(Util.Md5Hash(m_scene.RegionInfo.RegionName + tc.ToString())); |
829 | responsemapdata["Extra"] = LLSD.FromInteger(0); | 829 | responsemapdata["Extra"] = OSD.FromInteger(0); |
830 | responsemapdata["Extra2"] = LLSD.FromInteger(0); | 830 | responsemapdata["Extra2"] = OSD.FromInteger(0); |
831 | responsearr.Add(responsemapdata); | 831 | responsearr.Add(responsemapdata); |
832 | 832 | ||
833 | responsemap["6"] = responsearr; | 833 | responsemap["6"] = responsearr; |
834 | } | 834 | } |
835 | else | 835 | else |
836 | { | 836 | { |
837 | responsearr = new LLSDArray(avatars.Count); | 837 | responsearr = new OSDArray(avatars.Count); |
838 | foreach (ScenePresence av in avatars) | 838 | foreach (ScenePresence av in avatars) |
839 | { | 839 | { |
840 | responsemapdata = new LLSDMap(); | 840 | responsemapdata = new OSDMap(); |
841 | responsemapdata["X"] = LLSD.FromInteger((int)(xstart + av.AbsolutePosition.X)); | 841 | responsemapdata["X"] = OSD.FromInteger((int)(xstart + av.AbsolutePosition.X)); |
842 | responsemapdata["Y"] = LLSD.FromInteger((int)(ystart + av.AbsolutePosition.Y)); | 842 | responsemapdata["Y"] = OSD.FromInteger((int)(ystart + av.AbsolutePosition.Y)); |
843 | responsemapdata["ID"] = LLSD.FromUUID(UUID.Zero); | 843 | responsemapdata["ID"] = OSD.FromUUID(UUID.Zero); |
844 | responsemapdata["Name"] = LLSD.FromString(Util.Md5Hash(m_scene.RegionInfo.RegionName + tc.ToString())); | 844 | responsemapdata["Name"] = OSD.FromString(Util.Md5Hash(m_scene.RegionInfo.RegionName + tc.ToString())); |
845 | responsemapdata["Extra"] = LLSD.FromInteger(1); | 845 | responsemapdata["Extra"] = OSD.FromInteger(1); |
846 | responsemapdata["Extra2"] = LLSD.FromInteger(0); | 846 | responsemapdata["Extra2"] = OSD.FromInteger(0); |
847 | responsearr.Add(responsemapdata); | 847 | responsearr.Add(responsemapdata); |
848 | } | 848 | } |
849 | responsemap["6"] = responsearr; | 849 | responsemap["6"] = responsearr; |
diff --git a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs index 3948d31..8167c68 100644 --- a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs +++ b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs | |||
@@ -36,7 +36,7 @@ using log4net; | |||
36 | using OpenSim.Framework; | 36 | using OpenSim.Framework; |
37 | using OpenSim.Framework.Communications; | 37 | using OpenSim.Framework.Communications; |
38 | using OpenSim.Region.Interfaces; | 38 | using OpenSim.Region.Interfaces; |
39 | using LLSD = OpenMetaverse.StructuredData.LLSD; | 39 | using OSD = OpenMetaverse.StructuredData.OSD; |
40 | 40 | ||
41 | namespace OpenSim.Region.Environment.Scenes | 41 | namespace OpenSim.Region.Environment.Scenes |
42 | { | 42 | { |
@@ -284,7 +284,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
284 | IEventQueue eq = avatar.Scene.RequestModuleInterface<IEventQueue>(); | 284 | IEventQueue eq = avatar.Scene.RequestModuleInterface<IEventQueue>(); |
285 | if (eq != null) | 285 | if (eq != null) |
286 | { | 286 | { |
287 | LLSD Item = EventQueueHelper.EnableSimulator(regionHandle, endPoint); | 287 | OSD Item = EventQueueHelper.EnableSimulator(regionHandle, endPoint); |
288 | eq.Enqueue(Item, avatar.UUID); | 288 | eq.Enqueue(Item, avatar.UUID); |
289 | } | 289 | } |
290 | else | 290 | else |
@@ -698,7 +698,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
698 | 698 | ||
699 | if (eq != null) | 699 | if (eq != null) |
700 | { | 700 | { |
701 | LLSD Item = EventQueueHelper.TeleportFinishEvent(reg.RegionHandle, 13, reg.ExternalEndPoint, | 701 | OSD Item = EventQueueHelper.TeleportFinishEvent(reg.RegionHandle, 13, reg.ExternalEndPoint, |
702 | 4, teleportFlags, capsPath, avatar.UUID); | 702 | 4, teleportFlags, capsPath, avatar.UUID); |
703 | eq.Enqueue(Item, avatar.UUID); | 703 | eq.Enqueue(Item, avatar.UUID); |
704 | } | 704 | } |
@@ -748,7 +748,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
748 | 748 | ||
749 | // and set the map-tile to '(Offline)' | 749 | // and set the map-tile to '(Offline)' |
750 | uint regX, regY; | 750 | uint regX, regY; |
751 | Helpers.LongToUInts(regionHandle, out regX, out regY); | 751 | Utils.LongToUInts(regionHandle, out regX, out regY); |
752 | 752 | ||
753 | MapBlockData block = new MapBlockData(); | 753 | MapBlockData block = new MapBlockData(); |
754 | block.X = (ushort)(regX / Constants.RegionSize); | 754 | block.X = (ushort)(regX / Constants.RegionSize); |
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs index 1309e77..ba638e5 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | |||
@@ -584,11 +584,11 @@ namespace OpenSim.Region.Environment.Scenes | |||
584 | 584 | ||
585 | invString.AddPermissionsStart(); | 585 | invString.AddPermissionsStart(); |
586 | 586 | ||
587 | invString.AddNameValueLine("base_mask", Helpers.UIntToHexString(baseMask)); | 587 | invString.AddNameValueLine("base_mask", Utils.UIntToHexString(baseMask)); |
588 | invString.AddNameValueLine("owner_mask", Helpers.UIntToHexString(ownerMask)); | 588 | invString.AddNameValueLine("owner_mask", Utils.UIntToHexString(ownerMask)); |
589 | invString.AddNameValueLine("group_mask", Helpers.UIntToHexString(0)); | 589 | invString.AddNameValueLine("group_mask", Utils.UIntToHexString(0)); |
590 | invString.AddNameValueLine("everyone_mask", Helpers.UIntToHexString(everyoneMask)); | 590 | invString.AddNameValueLine("everyone_mask", Utils.UIntToHexString(everyoneMask)); |
591 | invString.AddNameValueLine("next_owner_mask", Helpers.UIntToHexString(item.NextPermissions)); | 591 | invString.AddNameValueLine("next_owner_mask", Utils.UIntToHexString(item.NextPermissions)); |
592 | 592 | ||
593 | invString.AddNameValueLine("creator_id", item.CreatorID.ToString()); | 593 | invString.AddNameValueLine("creator_id", item.CreatorID.ToString()); |
594 | invString.AddNameValueLine("owner_id", ownerID.ToString()); | 594 | invString.AddNameValueLine("owner_id", ownerID.ToString()); |
@@ -601,7 +601,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
601 | invString.AddNameValueLine("asset_id", item.AssetID.ToString()); | 601 | invString.AddNameValueLine("asset_id", item.AssetID.ToString()); |
602 | invString.AddNameValueLine("type", TaskInventoryItem.Types[item.Type]); | 602 | invString.AddNameValueLine("type", TaskInventoryItem.Types[item.Type]); |
603 | invString.AddNameValueLine("inv_type", TaskInventoryItem.InvTypes[item.InvType]); | 603 | invString.AddNameValueLine("inv_type", TaskInventoryItem.InvTypes[item.InvType]); |
604 | invString.AddNameValueLine("flags", Helpers.UIntToHexString(item.Flags)); | 604 | invString.AddNameValueLine("flags", Utils.UIntToHexString(item.Flags)); |
605 | 605 | ||
606 | invString.AddSaleStart(); | 606 | invString.AddSaleStart(); |
607 | invString.AddNameValueLine("sale_type", "not"); | 607 | invString.AddNameValueLine("sale_type", "not"); |
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 227a941..c7862ec 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -1089,9 +1089,9 @@ if (m_shape != null) { | |||
1089 | data[pos] = (byte)pTexAnim.SizeX; pos++; | 1089 | data[pos] = (byte)pTexAnim.SizeX; pos++; |
1090 | data[pos] = (byte)pTexAnim.SizeY; pos++; | 1090 | data[pos] = (byte)pTexAnim.SizeY; pos++; |
1091 | 1091 | ||
1092 | Helpers.FloatToBytes(pTexAnim.Start).CopyTo(data, pos); | 1092 | Utils.FloatToBytes(pTexAnim.Start).CopyTo(data, pos); |
1093 | Helpers.FloatToBytes(pTexAnim.Length).CopyTo(data, pos + 4); | 1093 | Utils.FloatToBytes(pTexAnim.Length).CopyTo(data, pos + 4); |
1094 | Helpers.FloatToBytes(pTexAnim.Rate).CopyTo(data, pos + 8); | 1094 | Utils.FloatToBytes(pTexAnim.Rate).CopyTo(data, pos + 8); |
1095 | 1095 | ||
1096 | m_TextureAnimation = data; | 1096 | m_TextureAnimation = data; |
1097 | } | 1097 | } |
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 19532e6..19f0f9c 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs | |||
@@ -39,7 +39,7 @@ using OpenSim.Region.Environment.Interfaces; | |||
39 | using OpenSim.Region.Environment.Types; | 39 | using OpenSim.Region.Environment.Types; |
40 | using OpenSim.Region.Interfaces; | 40 | using OpenSim.Region.Interfaces; |
41 | using OpenSim.Region.Physics.Manager; | 41 | using OpenSim.Region.Physics.Manager; |
42 | using LLSD = OpenMetaverse.StructuredData.LLSD; | 42 | using OSD = OpenMetaverse.StructuredData.OSD; |
43 | 43 | ||
44 | 44 | ||
45 | namespace OpenSim.Region.Environment.Scenes | 45 | namespace OpenSim.Region.Environment.Scenes |
@@ -2171,7 +2171,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2171 | } | 2171 | } |
2172 | 2172 | ||
2173 | Vector3 vel = m_velocity; | 2173 | Vector3 vel = m_velocity; |
2174 | ulong neighbourHandle = Helpers.UIntsToLong((uint)(neighbourx * Constants.RegionSize), (uint)(neighboury * Constants.RegionSize)); | 2174 | ulong neighbourHandle = Utils.UIntsToLong((uint)(neighbourx * Constants.RegionSize), (uint)(neighboury * Constants.RegionSize)); |
2175 | SimpleRegionInfo neighbourRegion = m_scene.RequestNeighbouringRegionInfo(neighbourHandle); | 2175 | SimpleRegionInfo neighbourRegion = m_scene.RequestNeighbouringRegionInfo(neighbourHandle); |
2176 | if (neighbourRegion != null && ValidateAttachments()) | 2176 | if (neighbourRegion != null && ValidateAttachments()) |
2177 | { | 2177 | { |
@@ -2209,7 +2209,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2209 | if (eq != null) | 2209 | if (eq != null) |
2210 | { | 2210 | { |
2211 | 2211 | ||
2212 | LLSD Item = EventQueueHelper.CrossRegion(neighbourHandle, newpos, vel, neighbourRegion.ExternalEndPoint, | 2212 | OSD Item = EventQueueHelper.CrossRegion(neighbourHandle, newpos, vel, neighbourRegion.ExternalEndPoint, |
2213 | capsPath, UUID, ControllingClient.SessionId); | 2213 | capsPath, UUID, ControllingClient.SessionId); |
2214 | eq.Enqueue(Item, UUID); | 2214 | eq.Enqueue(Item, UUID); |
2215 | } | 2215 | } |
diff --git a/OpenSim/Region/Interfaces/IEventQueue.cs b/OpenSim/Region/Interfaces/IEventQueue.cs index 42fdcae..5c327d9 100644 --- a/OpenSim/Region/Interfaces/IEventQueue.cs +++ b/OpenSim/Region/Interfaces/IEventQueue.cs | |||
@@ -36,6 +36,6 @@ namespace OpenSim.Region.Interfaces | |||
36 | { | 36 | { |
37 | public interface IEventQueue | 37 | public interface IEventQueue |
38 | { | 38 | { |
39 | bool Enqueue(LLSD o, UUID avatarID); | 39 | bool Enqueue(OSD o, UUID avatarID); |
40 | } | 40 | } |
41 | } | 41 | } |
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/AppDomainManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/AppDomainManager.cs index 9cdd006..eeca143 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/AppDomainManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/AppDomainManager.cs | |||
@@ -29,6 +29,9 @@ using System; | |||
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Reflection; | 31 | using System.Reflection; |
32 | using System.Security; | ||
33 | using System.Security.Policy; | ||
34 | using System.Security.Permissions; | ||
32 | using OpenSim.Region.ScriptEngine.Interfaces; | 35 | using OpenSim.Region.ScriptEngine.Interfaces; |
33 | using OpenSim.Region.ScriptEngine.Shared.ScriptBase; | 36 | using OpenSim.Region.ScriptEngine.Shared.ScriptBase; |
34 | 37 | ||
@@ -132,9 +135,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
132 | ads.ConfigurationFile = | 135 | ads.ConfigurationFile = |
133 | AppDomain.CurrentDomain.SetupInformation.ConfigurationFile; | 136 | AppDomain.CurrentDomain.SetupInformation.ConfigurationFile; |
134 | 137 | ||
135 | |||
136 | AppDomain AD = AppDomain.CreateDomain("ScriptAppDomain_" + | 138 | AppDomain AD = AppDomain.CreateDomain("ScriptAppDomain_" + |
137 | AppDomainNameCount, null, ads); | 139 | AppDomainNameCount, null, ads); |
140 | |||
138 | m_scriptEngine.Log.Info("[" + m_scriptEngine.ScriptEngineName + | 141 | m_scriptEngine.Log.Info("[" + m_scriptEngine.ScriptEngineName + |
139 | "]: AppDomain Loading: " + | 142 | "]: AppDomain Loading: " + |
140 | AssemblyName.GetAssemblyName( | 143 | AssemblyName.GetAssemblyName( |
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index e5dfb2b..98d4f3b 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -30,6 +30,7 @@ using System.IO; | |||
30 | using System.Threading; | 30 | using System.Threading; |
31 | using System.Collections; | 31 | using System.Collections; |
32 | using System.Collections.Generic; | 32 | using System.Collections.Generic; |
33 | using System.Security; | ||
33 | using System.Security.Policy; | 34 | using System.Security.Policy; |
34 | using System.Reflection; | 35 | using System.Reflection; |
35 | using System.Globalization; | 36 | using System.Globalization; |
@@ -540,7 +541,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
540 | AppDomain.CreateDomain( | 541 | AppDomain.CreateDomain( |
541 | m_Scene.RegionInfo.RegionID.ToString(), | 542 | m_Scene.RegionInfo.RegionID.ToString(), |
542 | evidence, appSetup); | 543 | evidence, appSetup); |
543 | 544 | ||
544 | m_AppDomains[appDomain].AssemblyResolve += | 545 | m_AppDomains[appDomain].AssemblyResolve += |
545 | new ResolveEventHandler( | 546 | new ResolveEventHandler( |
546 | AssemblyResolver.OnAssemblyResolve); | 547 | AssemblyResolver.OnAssemblyResolve); |
diff --git a/OpenSim/TestSuite/PhysicsBot.cs b/OpenSim/TestSuite/PhysicsBot.cs index c04e19e..fd20a1e 100644 --- a/OpenSim/TestSuite/PhysicsBot.cs +++ b/OpenSim/TestSuite/PhysicsBot.cs | |||
@@ -96,7 +96,7 @@ namespace OpenSim.TestSuite | |||
96 | client.Self.Movement.AtPos = true; | 96 | client.Self.Movement.AtPos = true; |
97 | Thread.Sleep(somthing.Next(25, 75)); // Makes sure the bots keep walking for this time. | 97 | Thread.Sleep(somthing.Next(25, 75)); // Makes sure the bots keep walking for this time. |
98 | } | 98 | } |
99 | client.Self.Jump(); | 99 | client.Self.Jump(true); |
100 | 100 | ||
101 | string randomf = talkarray[somthing.Next(talkarray.Length)]; | 101 | string randomf = talkarray[somthing.Next(talkarray.Length)]; |
102 | if (talkarray.Length > 1 && randomf.Length > 1) | 102 | if (talkarray.Length > 1 && randomf.Length > 1) |
@@ -142,7 +142,7 @@ namespace OpenSim.TestSuite | |||
142 | m_action.Elapsed += new ElapsedEventHandler(m_action_Elapsed); | 142 | m_action.Elapsed += new ElapsedEventHandler(m_action_Elapsed); |
143 | m_action.Start(); | 143 | m_action.Start(); |
144 | OnConnected(this, EventType.CONNECTED); | 144 | OnConnected(this, EventType.CONNECTED); |
145 | client.Self.Jump(); | 145 | client.Self.Jump(true); |
146 | } | 146 | } |
147 | } | 147 | } |
148 | else | 148 | else |
diff --git a/OpenSim/Tools/pCampBot/PhysicsBot.cs b/OpenSim/Tools/pCampBot/PhysicsBot.cs index 84987b2..862b4e8 100644 --- a/OpenSim/Tools/pCampBot/PhysicsBot.cs +++ b/OpenSim/Tools/pCampBot/PhysicsBot.cs | |||
@@ -96,7 +96,7 @@ namespace pCampBot | |||
96 | client.Self.Movement.AtPos = true; | 96 | client.Self.Movement.AtPos = true; |
97 | Thread.Sleep(somthing.Next(25, 75)); // Makes sure the bots keep walking for this time. | 97 | Thread.Sleep(somthing.Next(25, 75)); // Makes sure the bots keep walking for this time. |
98 | } | 98 | } |
99 | client.Self.Jump(); | 99 | client.Self.Jump(true); |
100 | 100 | ||
101 | string randomf = talkarray[somthing.Next(talkarray.Length)]; | 101 | string randomf = talkarray[somthing.Next(talkarray.Length)]; |
102 | if (talkarray.Length > 1 && randomf.Length > 1) | 102 | if (talkarray.Length > 1 && randomf.Length > 1) |
@@ -141,7 +141,7 @@ namespace pCampBot | |||
141 | m_action.Elapsed += new ElapsedEventHandler(m_action_Elapsed); | 141 | m_action.Elapsed += new ElapsedEventHandler(m_action_Elapsed); |
142 | m_action.Start(); | 142 | m_action.Start(); |
143 | OnConnected(this, EventType.CONNECTED); | 143 | OnConnected(this, EventType.CONNECTED); |
144 | client.Self.Jump(); | 144 | client.Self.Jump(true); |
145 | } | 145 | } |
146 | } | 146 | } |
147 | else | 147 | else |