* Added the "show connections" command to print out all of the currently tracked IClientAPIs
parent
c033477d2f
commit
25878d6828
|
@ -239,6 +239,10 @@ namespace OpenSim
|
||||||
"show users [full]",
|
"show users [full]",
|
||||||
"Show user data", HandleShow);
|
"Show user data", HandleShow);
|
||||||
|
|
||||||
|
m_console.Commands.AddCommand("region", false, "show connections",
|
||||||
|
"show connections",
|
||||||
|
"Show connection data", HandleShow);
|
||||||
|
|
||||||
m_console.Commands.AddCommand("region", false, "show users full",
|
m_console.Commands.AddCommand("region", false, "show users full",
|
||||||
"show users full",
|
"show users full",
|
||||||
String.Empty, HandleShow);
|
String.Empty, HandleShow);
|
||||||
|
@ -921,7 +925,25 @@ namespace OpenSim
|
||||||
regionName));
|
regionName));
|
||||||
}
|
}
|
||||||
|
|
||||||
m_log.Info("");
|
m_log.Info(String.Empty);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "connections":
|
||||||
|
System.Text.StringBuilder connections = new System.Text.StringBuilder("Connections:\n");
|
||||||
|
m_sceneManager.ForEachScene(
|
||||||
|
delegate(Scene scene)
|
||||||
|
{
|
||||||
|
scene.ClientManager.ForEach(
|
||||||
|
delegate(IClientAPI client)
|
||||||
|
{
|
||||||
|
connections.AppendFormat("{0}: {1} ({2}) from {3} on circuit {4}\n",
|
||||||
|
scene.RegionInfo.RegionName, client.Name, client.AgentId, client.RemoteEndPoint, client.CircuitCode);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
m_log.Info(connections.ToString());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "modules":
|
case "modules":
|
||||||
|
|
Loading…
Reference in New Issue