aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Application/OpenSimBase.cs37
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs5
2 files changed, 42 insertions, 0 deletions
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs
index 7aa9f99..18abcad 100644
--- a/OpenSim/Region/Application/OpenSimBase.cs
+++ b/OpenSim/Region/Application/OpenSimBase.cs
@@ -807,6 +807,43 @@ namespace OpenSim
807 } 807 }
808 } 808 }
809 809
810 /// <summary>
811 /// Handler to supply the current extended status of this sim
812 /// </summary>
813 /// Currently prints the same a "show stats" plus the uptime of the sim
814 public class XSimStatusHandler : IStreamedRequestHandler
815 {
816 OpenSimBase m_opensim;
817
818 public XSimStatusHandler(OpenSimBase sim)
819 // public XSimStatusHandler(BaseOpenSimServer sim)
820 {
821 m_opensim = sim;
822 }
823
824 public byte[] Handle(string path, Stream request,
825 OSHttpRequest httpRequest, OSHttpResponse httpResponse)
826 {
827 return Encoding.UTF8.GetBytes(m_opensim.StatReport());
828 }
829
830 public string ContentType
831 {
832 get { return "text/plain"; }
833 }
834
835 public string HttpMethod
836 {
837 get { return "GET"; }
838 }
839
840 public string Path
841 {
842 get { return "/simstatusx/"; }
843 }
844 }
845
846
810 #endregion 847 #endregion
811 848
812 /// <summary> 849 /// <summary>
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index ab1816f..6ac0acd 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -10290,5 +10290,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
10290 LLPacketHandler handler = (LLPacketHandler) m_PacketHandler; 10290 LLPacketHandler handler = (LLPacketHandler) m_PacketHandler;
10291 return handler.PacketQueue.GetStats(); 10291 return handler.PacketQueue.GetStats();
10292 } 10292 }
10293
10294 public string XReport()
10295 {
10296 return "";
10297 }
10293 } 10298 }
10294} 10299}