* Added quick ping check reply system to OGS1GridServices

afrisby
Adam Frisby 2007-07-17 18:53:19 +00:00
parent 61526951ef
commit 7a88260851
1 changed files with 19 additions and 0 deletions

View File

@ -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;
}
/// <summary>
/// A ping / version check
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
public XmlRpcResponse PingCheckReply(XmlRpcRequest request)
{
XmlRpcResponse response = new XmlRpcResponse();
Hashtable respData = new Hashtable();
respData["online"] = "true";
response.Value = respData;
return response;
}
// Grid Request Processing
/// <summary>
///