From 7a8826085116161949f1856e627ffe4c34f885e9 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 17 Jul 2007 18:53:19 +0000 Subject: * Added quick ping check reply system to OGS1GridServices --- .../Region/Communications/OGS1/OGS1GridServices.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index 3cb2889..5ddad00 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs @@ -34,6 +34,7 @@ namespace OpenSim.Region.Communications.OGS1 serversInfo = servers_info; httpServer = httpServe; httpServer.AddXmlRPCHandler("expect_user", this.ExpectUser); + httpServer.AddXmlRPCHandler("check", this.PingCheckReply); this.StartRemoting(); } @@ -248,6 +249,24 @@ namespace OpenSim.Region.Communications.OGS1 return respData; } + /// + /// A ping / version check + /// + /// + /// + public XmlRpcResponse PingCheckReply(XmlRpcRequest request) + { + XmlRpcResponse response = new XmlRpcResponse(); + + Hashtable respData = new Hashtable(); + respData["online"] = "true"; + + response.Value = respData; + + return response; + } + + // Grid Request Processing /// /// -- cgit v1.1