Revision: 41726
http://brlcad.svn.sourceforge.net/brlcad/?rev=41726&view=rev
Author: davidloman
Date: 2010-12-20 19:32:08 +0000 (Mon, 20 Dec 2010)
Log Message:
-----------
Make GSClient able to handle FailureMsg's and setup proper routing for this.
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-20 19:13:10 UTC (rev 41725)
+++ rt^3/trunk/src/GS/GSClient.cxx 2010-12-20 19:32:08 UTC (rev 41726)
@@ -75,6 +75,7 @@
router->registerType(DISCONNECTREQ, this->portMan);
router->registerType(SESSIONINFO, this);
+ router->registerType(FAILURE, this);
}
bool
@@ -83,9 +84,21 @@
quint16 type = msg->getMsgType();
switch(type) {
case SESSIONINFO:
- QString data =((SessionInfoMsg*)msg)->toString();
- log->logINFO("GSClient", "Received SessionInfo: " + data);
- return true;
+ {
+ QString data =((SessionInfoMsg*)msg)->toString();
+ log->logINFO("GSClient", "Recv'ed SessionInfo: " +
data);
+ return true;
+ }
+ case FAILURE:
+ {
+ FailureMsg* fMsg = (FailureMsg*)msg;
+ quint8 fc = fMsg->getFailureCode();
+
+ QUuid re = fMsg->getReUUID();
+
+ log->logINFO("GSClient", "Recv'ed A FailureMsg with
code: " +QString::number( fc) + " (" + QString::number(fc, 16)+ ")");
+ return true;
+ }
}
return false;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits