aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application
diff options
context:
space:
mode:
authorJohn Hurliman2009-10-14 13:00:42 -0700
committerJohn Hurliman2009-10-14 13:00:42 -0700
commit25878d68287d89f2d1ab1061319439d93e6119e5 (patch)
tree2b8915f9b28240d329baa69a15511f74521253a0 /OpenSim/Region/Application
parent* Read scene_throttle_bps from the config file and use it (diff)
downloadopensim-SC-25878d68287d89f2d1ab1061319439d93e6119e5.zip
opensim-SC-25878d68287d89f2d1ab1061319439d93e6119e5.tar.gz
opensim-SC-25878d68287d89f2d1ab1061319439d93e6119e5.tar.bz2
opensim-SC-25878d68287d89f2d1ab1061319439d93e6119e5.tar.xz
* Added the "show connections" command to print out all of the currently tracked IClientAPIs
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs24
1 files changed, 23 insertions, 1 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 4d8409bb..0fcc21e 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -239,6 +239,10 @@ namespace OpenSim
239 "show users [full]", 239 "show users [full]",
240 "Show user data", HandleShow); 240 "Show user data", HandleShow);
241 241
242 m_console.Commands.AddCommand("region", false, "show connections",
243 "show connections",
244 "Show connection data", HandleShow);
245
242 m_console.Commands.AddCommand("region", false, "show users full", 246 m_console.Commands.AddCommand("region", false, "show users full",
243 "show users full", 247 "show users full",
244 String.Empty, HandleShow); 248 String.Empty, HandleShow);
@@ -921,7 +925,25 @@ namespace OpenSim
921 regionName)); 925 regionName));
922 } 926 }
923 927
924 m_log.Info(""); 928 m_log.Info(String.Empty);
929 break;
930
931 case "connections":
932 System.Text.StringBuilder connections = new System.Text.StringBuilder("Connections:\n");
933 m_sceneManager.ForEachScene(
934 delegate(Scene scene)
935 {
936 scene.ClientManager.ForEach(
937 delegate(IClientAPI client)
938 {
939 connections.AppendFormat("{0}: {1} ({2}) from {3} on circuit {4}\n",
940 scene.RegionInfo.RegionName, client.Name, client.AgentId, client.RemoteEndPoint, client.CircuitCode);
941 }
942 );
943 }
944 );
945
946 m_log.Info(connections.ToString());
925 break; 947 break;
926 948
927 case "modules": 949 case "modules":