Revision: 40831
          http://brlcad.svn.sourceforge.net/brlcad/?rev=40831&view=rev
Author:   davidloman
Date:     2010-09-29 15:24:11 +0000 (Wed, 29 Sep 2010)

Log Message:
-----------
Setup GeometryService's routing table to include PortalManager

Modified Paths:
--------------
    rt^3/trunk/src/GS/GeometryService.cxx

Modified: rt^3/trunk/src/GS/GeometryService.cxx
===================================================================
--- rt^3/trunk/src/GS/GeometryService.cxx       2010-09-29 15:23:07 UTC (rev 
40830)
+++ rt^3/trunk/src/GS/GeometryService.cxx       2010-09-29 15:24:11 UTC (rev 
40831)
@@ -25,7 +25,6 @@
 
 #include "GeometryService.h"
 #include "SessionManager.h"
-#include "libnet.h"
 
 GeometryService::GeometryService(const QString localNodeName, quint16 
listenPort) :
 localNodeName(localNodeName), listenPort(listenPort)
@@ -33,13 +32,15 @@
     this->log = Logger::getInstance();
     this->log->logINFO("GeometryService", localNodeName + " is starting 
up...");
 
+    this->pm = new PortalManager(listenPort);
+
     this->registerMsgRoutes();
 
 }
 
 GeometryService::~GeometryService()
 {
-
+       delete pm;
 }
 
 void
@@ -51,7 +52,7 @@
        router->registerType(SESSIONINFO, SessionManager::getInstance());
        router->registerType(DISCONNECTREQ, SessionManager::getInstance());
 
-       //TODO need to register the PortalManager so it can recv DISCONNECTREQ 
msg also.
+       router->registerType(DISCONNECTREQ, this->pm);
 
 }
 
@@ -65,6 +66,8 @@
 
 void
 GeometryService::_run() {
+       this->log->logINFO("GeometryService", "Starting PortalManager");
+       this->pm->start();
 
        GSThread::sleep(2);
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to