aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications
diff options
context:
space:
mode:
authorJeff Ames2007-12-20 05:43:02 +0000
committerJeff Ames2007-12-20 05:43:02 +0000
commitbe2ad79e52efb5eb543057e8e73fa601d0b91c87 (patch)
tree688a11b5737835b3cd46b2beaf01c6e9d23ace09 /OpenSim/Framework/Communications
parent*Added event called after any movement is handled (OnClientMovement) - will b... (diff)
downloadopensim-SC-be2ad79e52efb5eb543057e8e73fa601d0b91c87.zip
opensim-SC-be2ad79e52efb5eb543057e8e73fa601d0b91c87.tar.gz
opensim-SC-be2ad79e52efb5eb543057e8e73fa601d0b91c87.tar.bz2
opensim-SC-be2ad79e52efb5eb543057e8e73fa601d0b91c87.tar.xz
Added patch from Johan. First attempt to solve the LibSL.Packet GC problem. Works with LibSL rev>1532
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r--OpenSim/Framework/Communications/Cache/AssetServerBase.cs2
-rw-r--r--OpenSim/Framework/Communications/Cache/AssetTransactions.cs4
-rw-r--r--OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs6
-rw-r--r--OpenSim/Framework/Communications/Capabilities/Caps.cs4
-rw-r--r--OpenSim/Framework/Communications/Capabilities/LLSD.cs4
-rw-r--r--OpenSim/Framework/Communications/LoginResponse.cs8
-rw-r--r--OpenSim/Framework/Communications/LoginService.cs16
7 files changed, 22 insertions, 22 deletions
diff --git a/OpenSim/Framework/Communications/Cache/AssetServerBase.cs b/OpenSim/Framework/Communications/Cache/AssetServerBase.cs
index 4d03fee..f5ebab7 100644
--- a/OpenSim/Framework/Communications/Cache/AssetServerBase.cs
+++ b/OpenSim/Framework/Communications/Cache/AssetServerBase.cs
@@ -232,7 +232,7 @@ namespace OpenSim.Framework.Communications.Cache
232 for (int i = 0; i < source.Configs.Count; i++) 232 for (int i = 0; i < source.Configs.Count; i++)
233 { 233 {
234 // System.Console.WriteLine("loading asset into database"); 234 // System.Console.WriteLine("loading asset into database");
235 string assetIdStr = source.Configs[i].GetString("assetID", LLUUID.Random().ToStringHyphenated()); 235 string assetIdStr = source.Configs[i].GetString("assetID", LLUUID.Random().ToString());
236 string name = source.Configs[i].GetString("name", ""); 236 string name = source.Configs[i].GetString("name", "");
237 sbyte type = (sbyte) source.Configs[i].GetInt("assetType", 0); 237 sbyte type = (sbyte) source.Configs[i].GetInt("assetType", 0);
238 sbyte invType = (sbyte) source.Configs[i].GetInt("inventoryType", 0); 238 sbyte invType = (sbyte) source.Configs[i].GetInt("inventoryType", 0);
diff --git a/OpenSim/Framework/Communications/Cache/AssetTransactions.cs b/OpenSim/Framework/Communications/Cache/AssetTransactions.cs
index 51b80e5..57c1fa6 100644
--- a/OpenSim/Framework/Communications/Cache/AssetTransactions.cs
+++ b/OpenSim/Framework/Communications/Cache/AssetTransactions.cs
@@ -355,7 +355,7 @@ namespace OpenSim.Framework.Communications.Cache
355 LLUUID inventoryItemID = this.inventoryItemID; 355 LLUUID inventoryItemID = this.inventoryItemID;
356 string text = ""; 356 string text = "";
357 LLSDAssetUploadComplete complete = new LLSDAssetUploadComplete(); 357 LLSDAssetUploadComplete complete = new LLSDAssetUploadComplete();
358 complete.new_asset = newAssetID.ToStringHyphenated(); 358 complete.new_asset = newAssetID.ToString();
359 complete.new_inventory_item = inventoryItemID; 359 complete.new_inventory_item = inventoryItemID;
360 complete.state = "complete"; 360 complete.state = "complete";
361 text = LLSDHelpers.SerialiseLLSDReply(complete); 361 text = LLSDHelpers.SerialiseLLSDReply(complete);
@@ -408,7 +408,7 @@ namespace OpenSim.Framework.Communications.Cache
408 LLUUID inventoryItemID = this.inventoryItemID; 408 LLUUID inventoryItemID = this.inventoryItemID;
409 string text = ""; 409 string text = "";
410 LLSDAssetUploadComplete complete = new LLSDAssetUploadComplete(); 410 LLSDAssetUploadComplete complete = new LLSDAssetUploadComplete();
411 complete.new_asset = newAssetID.ToStringHyphenated(); 411 complete.new_asset = newAssetID.ToString();
412 complete.new_inventory_item = inventoryItemID; 412 complete.new_inventory_item = inventoryItemID;
413 complete.state = "complete"; 413 complete.state = "complete";
414 text = LLSDHelpers.SerialiseLLSDReply(complete); 414 text = LLSDHelpers.SerialiseLLSDReply(complete);
diff --git a/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs b/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs
index fdb2afe..ffc94bf 100644
--- a/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs
+++ b/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs
@@ -144,8 +144,8 @@ namespace OpenSim.Framework.Communications.Cache
144 item.avatarID = libOwner; 144 item.avatarID = libOwner;
145 item.creatorsID = libOwner; 145 item.creatorsID = libOwner;
146 item.inventoryID = 146 item.inventoryID =
147 new LLUUID(source.Configs[i].GetString("inventoryID", LLUUID.Random().ToStringHyphenated())); 147 new LLUUID(source.Configs[i].GetString("inventoryID", LLUUID.Random().ToString()));
148 item.assetID = new LLUUID(source.Configs[i].GetString("assetID", LLUUID.Random().ToStringHyphenated())); 148 item.assetID = new LLUUID(source.Configs[i].GetString("assetID", LLUUID.Random().ToString()));
149 item.inventoryDescription = source.Configs[i].GetString("description", ""); 149 item.inventoryDescription = source.Configs[i].GetString("description", "");
150 item.inventoryName = source.Configs[i].GetString("name", ""); 150 item.inventoryName = source.Configs[i].GetString("name", "");
151 item.assetType = source.Configs[i].GetInt("assetType", 0); 151 item.assetType = source.Configs[i].GetInt("assetType", 0);
@@ -167,4 +167,4 @@ namespace OpenSim.Framework.Communications.Cache
167 } 167 }
168 } 168 }
169 } 169 }
170} \ No newline at end of file 170}
diff --git a/OpenSim/Framework/Communications/Capabilities/Caps.cs b/OpenSim/Framework/Communications/Capabilities/Caps.cs
index e439ed8..eb678a0 100644
--- a/OpenSim/Framework/Communications/Capabilities/Caps.cs
+++ b/OpenSim/Framework/Communications/Capabilities/Caps.cs
@@ -421,7 +421,7 @@ namespace OpenSim.Region.Capabilities
421 LLUUID inv = inventoryItemID; 421 LLUUID inv = inventoryItemID;
422 string res = ""; 422 string res = "";
423 LLSDAssetUploadComplete uploadComplete = new LLSDAssetUploadComplete(); 423 LLSDAssetUploadComplete uploadComplete = new LLSDAssetUploadComplete();
424 uploadComplete.new_asset = newAssetID.ToStringHyphenated(); 424 uploadComplete.new_asset = newAssetID.ToString();
425 uploadComplete.new_inventory_item = inv; 425 uploadComplete.new_inventory_item = inv;
426 uploadComplete.state = "complete"; 426 uploadComplete.state = "complete";
427 427
@@ -489,7 +489,7 @@ namespace OpenSim.Region.Capabilities
489 assetID = OnUpLoad(inv, data); 489 assetID = OnUpLoad(inv, data);
490 } 490 }
491 491
492 uploadComplete.new_asset = assetID.ToStringHyphenated(); 492 uploadComplete.new_asset = assetID.ToString();
493 uploadComplete.new_inventory_item = inv; 493 uploadComplete.new_inventory_item = inv;
494 uploadComplete.state = "complete"; 494 uploadComplete.state = "complete";
495 495
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSD.cs b/OpenSim/Framework/Communications/Capabilities/LLSD.cs
index ea8ee9d..987d6e6 100644
--- a/OpenSim/Framework/Communications/Capabilities/LLSD.cs
+++ b/OpenSim/Framework/Communications/Capabilities/LLSD.cs
@@ -159,7 +159,7 @@ namespace OpenSim.Region.Capabilities
159 { 159 {
160 LLUUID u = (LLUUID)obj; 160 LLUUID u = (LLUUID)obj;
161 writer.WriteStartElement(String.Empty, "uuid", String.Empty); 161 writer.WriteStartElement(String.Empty, "uuid", String.Empty);
162 writer.WriteString(u.ToStringHyphenated()); 162 writer.WriteString(u.ToString());
163 writer.WriteEndElement(); 163 writer.WriteEndElement();
164 } 164 }
165 else if (obj is Hashtable) 165 else if (obj is Hashtable)
@@ -475,7 +475,7 @@ namespace OpenSim.Region.Capabilities
475 } 475 }
476 else if (obj is LLUUID) 476 else if (obj is LLUUID)
477 { 477 {
478 return GetSpaces(indent) + "- uuid " + ((LLUUID)obj).ToStringHyphenated() + Environment.NewLine; 478 return GetSpaces(indent) + "- uuid " + ((LLUUID)obj).ToString() + Environment.NewLine;
479 } 479 }
480 else if (obj is Hashtable) 480 else if (obj is Hashtable)
481 { 481 {
diff --git a/OpenSim/Framework/Communications/LoginResponse.cs b/OpenSim/Framework/Communications/LoginResponse.cs
index bce518b..ede3148 100644
--- a/OpenSim/Framework/Communications/LoginResponse.cs
+++ b/OpenSim/Framework/Communications/LoginResponse.cs
@@ -266,9 +266,9 @@ namespace OpenSim.Framework.UserManagement
266 responseData["sim_port"] = (Int32) SimPort; 266 responseData["sim_port"] = (Int32) SimPort;
267 responseData["sim_ip"] = SimAddress; 267 responseData["sim_ip"] = SimAddress;
268 268
269 responseData["agent_id"] = AgentID.ToStringHyphenated(); 269 responseData["agent_id"] = AgentID.ToString();
270 responseData["session_id"] = SessionID.ToStringHyphenated(); 270 responseData["session_id"] = SessionID.ToString();
271 responseData["secure_session_id"] = SecureSessionID.ToStringHyphenated(); 271 responseData["secure_session_id"] = SecureSessionID.ToString();
272 responseData["circuit_code"] = CircuitCode; 272 responseData["circuit_code"] = CircuitCode;
273 responseData["seconds_since_epoch"] = (Int32) (DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; 273 responseData["seconds_since_epoch"] = (Int32) (DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
274 responseData["login-flags"] = loginFlags; 274 responseData["login-flags"] = loginFlags;
@@ -585,7 +585,7 @@ namespace OpenSim.Framework.UserManagement
585 Hashtable hTable = new Hashtable(); 585 Hashtable hTable = new Hashtable();
586 hTable["buddy_rights_has"] = BuddyRightsHave; 586 hTable["buddy_rights_has"] = BuddyRightsHave;
587 hTable["buddy_rights_given"] = BuddyRightsGiven; 587 hTable["buddy_rights_given"] = BuddyRightsGiven;
588 hTable["buddy_id"] = BuddyID.ToStringHyphenated(); 588 hTable["buddy_id"] = BuddyID.ToString();
589 return hTable; 589 return hTable;
590 } 590 }
591 } 591 }
diff --git a/OpenSim/Framework/Communications/LoginService.cs b/OpenSim/Framework/Communications/LoginService.cs
index 7012602..58dab9b 100644
--- a/OpenSim/Framework/Communications/LoginService.cs
+++ b/OpenSim/Framework/Communications/LoginService.cs
@@ -126,7 +126,7 @@ namespace OpenSim.Framework.UserManagement
126 ArrayList AgentInventoryArray = inventData.InventoryArray; 126 ArrayList AgentInventoryArray = inventData.InventoryArray;
127 127
128 Hashtable InventoryRootHash = new Hashtable(); 128 Hashtable InventoryRootHash = new Hashtable();
129 InventoryRootHash["folder_id"] = inventData.RootFolderID.ToStringHyphenated(); 129 InventoryRootHash["folder_id"] = inventData.RootFolderID.ToString();
130 ArrayList InventoryRoot = new ArrayList(); 130 ArrayList InventoryRoot = new ArrayList();
131 InventoryRoot.Add(InventoryRootHash); 131 InventoryRoot.Add(InventoryRootHash);
132 userProfile.rootInventoryFolderID = inventData.RootFolderID; 132 userProfile.rootInventoryFolderID = inventData.RootFolderID;
@@ -136,9 +136,9 @@ namespace OpenSim.Framework.UserManagement
136 136
137 logResponse.Lastname = userProfile.surname; 137 logResponse.Lastname = userProfile.surname;
138 logResponse.Firstname = userProfile.username; 138 logResponse.Firstname = userProfile.username;
139 logResponse.AgentID = agentID.ToStringHyphenated(); 139 logResponse.AgentID = agentID.ToString();
140 logResponse.SessionID = userProfile.currentAgent.sessionID.ToStringHyphenated(); 140 logResponse.SessionID = userProfile.currentAgent.sessionID.ToString();
141 logResponse.SecureSessionID = userProfile.currentAgent.secureSessionID.ToStringHyphenated(); 141 logResponse.SecureSessionID = userProfile.currentAgent.secureSessionID.ToString();
142 logResponse.InventoryRoot = InventoryRoot; 142 logResponse.InventoryRoot = InventoryRoot;
143 logResponse.InventorySkeleton = AgentInventoryArray; 143 logResponse.InventorySkeleton = AgentInventoryArray;
144 logResponse.InventoryLibrary = GetInventoryLibrary(); 144 logResponse.InventoryLibrary = GetInventoryLibrary();
@@ -263,7 +263,7 @@ namespace OpenSim.Framework.UserManagement
263 //return new ArrayList(); 263 //return new ArrayList();
264 Hashtable TempHash = new Hashtable(); 264 Hashtable TempHash = new Hashtable();
265 TempHash["name"] = "OpenSim Library"; 265 TempHash["name"] = "OpenSim Library";
266 TempHash["parent_id"] = LLUUID.Zero.ToStringHyphenated(); 266 TempHash["parent_id"] = LLUUID.Zero.ToString();
267 TempHash["version"] = 1; 267 TempHash["version"] = 1;
268 TempHash["type_default"] = -1; 268 TempHash["type_default"] = -1;
269 TempHash["folder_id"] = "00000112-000f-0000-0000-000100bba000"; 269 TempHash["folder_id"] = "00000112-000f-0000-0000-000100bba000";
@@ -305,10 +305,10 @@ namespace OpenSim.Framework.UserManagement
305 { 305 {
306 TempHash = new Hashtable(); 306 TempHash = new Hashtable();
307 TempHash["name"] = InvFolder.FolderName; 307 TempHash["name"] = InvFolder.FolderName;
308 TempHash["parent_id"] = InvFolder.ParentID.ToStringHyphenated(); 308 TempHash["parent_id"] = InvFolder.ParentID.ToString();
309 TempHash["version"] = (Int32) InvFolder.Version; 309 TempHash["version"] = (Int32) InvFolder.Version;
310 TempHash["type_default"] = (Int32) InvFolder.DefaultType; 310 TempHash["type_default"] = (Int32) InvFolder.DefaultType;
311 TempHash["folder_id"] = InvFolder.FolderID.ToStringHyphenated(); 311 TempHash["folder_id"] = InvFolder.FolderID.ToString();
312 AgentInventoryArray.Add(TempHash); 312 AgentInventoryArray.Add(TempHash);
313 } 313 }
314 314
@@ -327,4 +327,4 @@ namespace OpenSim.Framework.UserManagement
327 } 327 }
328 } 328 }
329 } 329 }
330} \ No newline at end of file 330}