Revision: 40653
          http://brlcad.svn.sourceforge.net/brlcad/?rev=40653&view=rev
Author:   davidloman
Date:     2010-09-22 19:26:53 +0000 (Wed, 22 Sep 2010)

Log Message:
-----------
Implement simple Portal::send() function.

Modified Paths:
--------------
    rt^3/trunk/src/libNet/Portal.cxx

Modified: rt^3/trunk/src/libNet/Portal.cxx
===================================================================
--- rt^3/trunk/src/libNet/Portal.cxx    2010-09-22 19:19:59 UTC (rev 40652)
+++ rt^3/trunk/src/libNet/Portal.cxx    2010-09-22 19:26:53 UTC (rev 40653)
@@ -47,8 +47,10 @@
 
 int
 Portal::send(NetMsg* msg){
-//     this->pkgClient->send(PKG_MAGIC2,);
-       return 1;
+       QByteArray* ba = msg->serialize();
+       int retval = this->pkgClient->send(PKG_MAGIC2, ba->data(), ba->size());
+       delete ba;
+       return retval;
 }
 
 int


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