Revision: 41754
http://brlcad.svn.sourceforge.net/brlcad/?rev=41754&view=rev
Author: davidloman
Date: 2010-12-22 13:04:38 +0000 (Wed, 22 Dec 2010)
Log Message:
-----------
Implement PING handling in GSClient class.
Modified Paths:
--------------
rt^3/trunk/src/GS/GSClient.cxx
Modified: rt^3/trunk/src/GS/GSClient.cxx
===================================================================
--- rt^3/trunk/src/GS/GSClient.cxx 2010-12-22 13:02:11 UTC (rev 41753)
+++ rt^3/trunk/src/GS/GSClient.cxx 2010-12-22 13:04:38 UTC (rev 41754)
@@ -96,9 +96,22 @@
QUuid re = fMsg->getReUUID();
- log->logINFO("GSClient", "Recv'ed A FailureMsg with
code: " +QString::number( fc) + " (" + QString::number(fc, 16)+ ")");
+ log->logINFO("GeometryService", "Recv'ed A FailureMsg
with code: " +QString::number( fc) + " (" + QString::number(fc, 16)+ ")");
return true;
}
+ case PING:
+ Portal* p = msg->getOrigin();
+
+ if (p != NULL) {
+ QString remNodeName = p->getRemoteNodeName();
+ log->logINFO("GeometryService", "PING from: '" +
remNodeName + "'");
+ PongMsg pongMsg((PingMsg*)msg);
+ p->send(&pongMsg);
+ } else {
+ log->logINFO("GeometryService", "Can't return ping.
NULL Portal*");
+ }
+
+ return true;
}
return false;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months. Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits