aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorAdam Frisby2007-07-04 05:25:40 +0000
committerAdam Frisby2007-07-04 05:25:40 +0000
commitdaf7b8ec76bb333d4808e8cd4392a002042ac2d0 (patch)
tree23bbe29092f5e42d04bdb6a7babe939b26056120 /OpenSim
parent* Started work on converting BaseHttpServer to a stream dispatcher (diff)
downloadopensim-SC-daf7b8ec76bb333d4808e8cd4392a002042ac2d0.zip
opensim-SC-daf7b8ec76bb333d4808e8cd4392a002042ac2d0.tar.gz
opensim-SC-daf7b8ec76bb333d4808e8cd4392a002042ac2d0.tar.bz2
opensim-SC-daf7b8ec76bb333d4808e8cd4392a002042ac2d0.tar.xz
* Cleaning - attempting to get compiler warnings back down to zero.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Framework/Servers/BaseHttpServer.cs2
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs15
-rw-r--r--OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs2
-rw-r--r--OpenSim/Region/Environment/Scenes/scripting/Engines/CSharpScriptEngine.cs4
-rw-r--r--OpenSim/Region/Environment/Scenes/scripting/Engines/JScriptEngine.cs4
-rw-r--r--OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs6
6 files changed, 18 insertions, 15 deletions
diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs
index 81028b0..8fa577c 100644
--- a/OpenSim/Framework/Servers/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/BaseHttpServer.cs
@@ -187,7 +187,7 @@ namespace OpenSim.Framework.Servers
187 187
188 responseString = ProcessXMLRPCMethod(methodName, request); 188 responseString = ProcessXMLRPCMethod(methodName, request);
189 } 189 }
190 catch (Exception e) 190 catch
191 { 191 {
192 //Console.WriteLine(e.ToString()); 192 //Console.WriteLine(e.ToString());
193 } 193 }
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index 17a32cf..eaa067b 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -446,15 +446,18 @@ namespace OpenSim
446 break; 446 break;
447 case "users": 447 case "users":
448 ScenePresence TempAv; 448 ScenePresence TempAv;
449 m_log.Error( String.Format("{0,-16}{1,-16}{2,-25}{3,-25}{4,-16}{5,-16}", "Firstname", "Lastname", "Agent ID", "Session ID", "Circuit", "IP")); 449 m_log.Error( String.Format("{0,-16}{1,-16}{2,-25}{3,-25}{4,-16}{5,-16}{6,-16}", "Firstname", "Lastname", "Agent ID", "Session ID", "Circuit", "IP","World"));
450 /* foreach (libsecondlife.LLUUID UUID in LocalWorld.Entities.Keys) 450 for (int i = 0; i < m_localWorld.Count; i++)
451 {
452 foreach (libsecondlife.LLUUID UUID in ((Scene)m_localWorld[i]).Entities.Keys)
451 { 453 {
452 if (LocalWorld.Entities[UUID].ToString() == "OpenSim.world.Avatar") 454 if (((Scene)m_localWorld[i]).Entities[UUID].ToString() == "OpenSim.world.Avatar")
453 { 455 {
454 TempAv = (OpenSim.world.Avatar)LocalWorld.Entities[UUID]; 456 TempAv = (ScenePresence)((Scene)m_localWorld[i]).Entities[UUID];
455 m_log.Error( String.Format("{0,-16}{1,-16}{2,-25}{3,-25}{4,-16},{5,-16}", TempAv.firstname, TempAv.lastname, UUID, TempAv.ControllingClient.SessionID, TempAv.ControllingClient.CircuitCode, TempAv.ControllingClient.userEP.ToString())); 457 m_log.Error(String.Format("{0,-16}{1,-16}{2,-25}{3,-25}{4,-16},{5,-16}{6,-16}", TempAv.firstname, TempAv.lastname, UUID, TempAv.ControllingClient.AgentId, "Unknown", "Unknown"), ((Scene)m_localWorld[i]).RegionInfo.RegionName);
456 } 458 }
457 }*/ 459 }
460 }
458 break; 461 break;
459 } 462 }
460 } 463 }
diff --git a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs
index 8419906..7f961ef 100644
--- a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs
+++ b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs
@@ -378,7 +378,7 @@ namespace OpenSim.Region.ClientStack
378 // Console.WriteLine(Pack.ToString()); 378 // Console.WriteLine(Pack.ToString());
379 RequestTaskInventoryPacket requesttask = (RequestTaskInventoryPacket)Pack; 379 RequestTaskInventoryPacket requesttask = (RequestTaskInventoryPacket)Pack;
380 ReplyTaskInventoryPacket replytask = new ReplyTaskInventoryPacket(); 380 ReplyTaskInventoryPacket replytask = new ReplyTaskInventoryPacket();
381 bool foundent = false; 381 //bool foundent = false;
382 /* foreach (Entity ent in m_world.Entities.Values) 382 /* foreach (Entity ent in m_world.Entities.Values)
383 { 383 {
384 if (ent.localid == requesttask.InventoryData.LocalID) 384 if (ent.localid == requesttask.InventoryData.LocalID)
diff --git a/OpenSim/Region/Environment/Scenes/scripting/Engines/CSharpScriptEngine.cs b/OpenSim/Region/Environment/Scenes/scripting/Engines/CSharpScriptEngine.cs
index 56f5c0b..7928088 100644
--- a/OpenSim/Region/Environment/Scenes/scripting/Engines/CSharpScriptEngine.cs
+++ b/OpenSim/Region/Environment/Scenes/scripting/Engines/CSharpScriptEngine.cs
@@ -40,7 +40,7 @@ namespace OpenSim.Region.Enviorment.Scripting
40 return ".cs"; 40 return ".cs";
41 } 41 }
42 42
43 private Dictionary<string,IScript> LoadDotNetScript(ICodeCompiler compiler, string filename) 43 private Dictionary<string,IScript> LoadDotNetScript(CodeDomProvider compiler, string filename)
44 { 44 {
45 CompilerParameters compilerParams = new CompilerParameters(); 45 CompilerParameters compilerParams = new CompilerParameters();
46 CompilerResults compilerResults; 46 CompilerResults compilerResults;
@@ -96,7 +96,7 @@ namespace OpenSim.Region.Enviorment.Scripting
96 public Dictionary<string,IScript> compile(string filename) 96 public Dictionary<string,IScript> compile(string filename)
97 { 97 {
98 CSharpCodeProvider csharpProvider = new CSharpCodeProvider(); 98 CSharpCodeProvider csharpProvider = new CSharpCodeProvider();
99 return LoadDotNetScript(csharpProvider.CreateCompiler(), filename); 99 return LoadDotNetScript(csharpProvider, filename);
100 } 100 }
101 } 101 }
102} 102}
diff --git a/OpenSim/Region/Environment/Scenes/scripting/Engines/JScriptEngine.cs b/OpenSim/Region/Environment/Scenes/scripting/Engines/JScriptEngine.cs
index 2cea6e0..d9d6f7e 100644
--- a/OpenSim/Region/Environment/Scenes/scripting/Engines/JScriptEngine.cs
+++ b/OpenSim/Region/Environment/Scenes/scripting/Engines/JScriptEngine.cs
@@ -40,7 +40,7 @@ namespace OpenSim.Region.Enviorment.Scripting
40 return ".js"; 40 return ".js";
41 } 41 }
42 42
43 private Dictionary<string, IScript> LoadDotNetScript(ICodeCompiler compiler, string filename) 43 private Dictionary<string, IScript> LoadDotNetScript(CodeDomProvider compiler, string filename)
44 { 44 {
45 CompilerParameters compilerParams = new CompilerParameters(); 45 CompilerParameters compilerParams = new CompilerParameters();
46 CompilerResults compilerResults; 46 CompilerResults compilerResults;
@@ -96,7 +96,7 @@ namespace OpenSim.Region.Enviorment.Scripting
96 public Dictionary<string, IScript> compile(string filename) 96 public Dictionary<string, IScript> compile(string filename)
97 { 97 {
98 JScriptCodeProvider jscriptProvider = new JScriptCodeProvider(); 98 JScriptCodeProvider jscriptProvider = new JScriptCodeProvider();
99 return LoadDotNetScript(jscriptProvider.CreateCompiler(), filename); 99 return LoadDotNetScript(jscriptProvider, filename);
100 } 100 }
101 } 101 }
102} 102}
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs
index feb9327..a38be07 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs
@@ -63,7 +63,7 @@ namespace OpenSim.Region.Terrain
63 { 63 {
64 public Dictionary<string, ITerrainFilter> filters = new Dictionary<string, ITerrainFilter>(); 64 public Dictionary<string, ITerrainFilter> filters = new Dictionary<string, ITerrainFilter>();
65 65
66 private void LoadFilter(ICodeCompiler compiler, string filename) 66 private void LoadFilter(CodeDomProvider compiler, string filename)
67 { 67 {
68 CompilerParameters compilerParams = new CompilerParameters(); 68 CompilerParameters compilerParams = new CompilerParameters();
69 CompilerResults compilerResults; 69 CompilerResults compilerResults;
@@ -114,13 +114,13 @@ namespace OpenSim.Region.Terrain
114 public void LoadFilterCSharp(string filename) 114 public void LoadFilterCSharp(string filename)
115 { 115 {
116 CSharpCodeProvider compiler = new CSharpCodeProvider(); 116 CSharpCodeProvider compiler = new CSharpCodeProvider();
117 LoadFilter(compiler.CreateCompiler(), filename); 117 LoadFilter(compiler, filename);
118 } 118 }
119 119
120 public void LoadFilterJScript(string filename) 120 public void LoadFilterJScript(string filename)
121 { 121 {
122 JScriptCodeProvider compiler = new JScriptCodeProvider(); 122 JScriptCodeProvider compiler = new JScriptCodeProvider();
123 LoadFilter(compiler.CreateCompiler(), filename); 123 LoadFilter(compiler, filename);
124 } 124 }
125 } 125 }
126} 126}