diff options
author | Adam Frisby | 2007-07-17 18:53:19 +0000 |
---|---|---|
committer | Adam Frisby | 2007-07-17 18:53:19 +0000 |
commit | 7a8826085116161949f1856e627ffe4c34f885e9 (patch) | |
tree | 67275edce8d002e6c69ad671b43ab404e6879785 /OpenSim/Region/Communications | |
parent | * Attempting to fix a bug. (diff) | |
download | opensim-SC-7a8826085116161949f1856e627ffe4c34f885e9.zip opensim-SC-7a8826085116161949f1856e627ffe4c34f885e9.tar.gz opensim-SC-7a8826085116161949f1856e627ffe4c34f885e9.tar.bz2 opensim-SC-7a8826085116161949f1856e627ffe4c34f885e9.tar.xz |
* Added quick ping check reply system to OGS1GridServices
Diffstat (limited to 'OpenSim/Region/Communications')
-rw-r--r-- | OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | 19 |
1 files changed, 19 insertions, 0 deletions
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 | |||
34 | serversInfo = servers_info; | 34 | serversInfo = servers_info; |
35 | httpServer = httpServe; | 35 | httpServer = httpServe; |
36 | httpServer.AddXmlRPCHandler("expect_user", this.ExpectUser); | 36 | httpServer.AddXmlRPCHandler("expect_user", this.ExpectUser); |
37 | httpServer.AddXmlRPCHandler("check", this.PingCheckReply); | ||
37 | this.StartRemoting(); | 38 | this.StartRemoting(); |
38 | } | 39 | } |
39 | 40 | ||
@@ -248,6 +249,24 @@ namespace OpenSim.Region.Communications.OGS1 | |||
248 | return respData; | 249 | return respData; |
249 | } | 250 | } |
250 | 251 | ||
252 | /// <summary> | ||
253 | /// A ping / version check | ||
254 | /// </summary> | ||
255 | /// <param name="request"></param> | ||
256 | /// <returns></returns> | ||
257 | public XmlRpcResponse PingCheckReply(XmlRpcRequest request) | ||
258 | { | ||
259 | XmlRpcResponse response = new XmlRpcResponse(); | ||
260 | |||
261 | Hashtable respData = new Hashtable(); | ||
262 | respData["online"] = "true"; | ||
263 | |||
264 | response.Value = respData; | ||
265 | |||
266 | return response; | ||
267 | } | ||
268 | |||
269 | |||
251 | // Grid Request Processing | 270 | // Grid Request Processing |
252 | /// <summary> | 271 | /// <summary> |
253 | /// | 272 | /// |