Revision: 40641
http://brlcad.svn.sourceforge.net/brlcad/?rev=40641&view=rev
Author: davidloman
Date: 2010-09-22 13:47:22 +0000 (Wed, 22 Sep 2010)
Log Message:
-----------
Add a listening FileDescriptor getter for PkgServer
Modified Paths:
--------------
rt^3/trunk/include/PkgServer.h
rt^3/trunk/src/libPkgCpp/PkgServer.cxx
Modified: rt^3/trunk/include/PkgServer.h
===================================================================
--- rt^3/trunk/include/PkgServer.h 2010-09-22 13:39:10 UTC (rev 40640)
+++ rt^3/trunk/include/PkgServer.h 2010-09-22 13:47:22 UTC (rev 40641)
@@ -40,8 +40,8 @@
/*
* This function blocks if waitTime is set to '0'. '0' is default.
*/
- PkgClient*
- waitForClient(int waitTime = 0);
+ PkgClient* waitForClient(int waitTime = 0);
+ int getListeningFD();
private:
std::string proto;
Modified: rt^3/trunk/src/libPkgCpp/PkgServer.cxx
===================================================================
--- rt^3/trunk/src/libPkgCpp/PkgServer.cxx 2010-09-22 13:39:10 UTC (rev
40640)
+++ rt^3/trunk/src/libPkgCpp/PkgServer.cxx 2010-09-22 13:47:22 UTC (rev
40641)
@@ -55,6 +55,11 @@
return true;
}
+int
+PkgServer::getListeningFD()
+{
+ return this->listenFD;
+}
PkgClient*
PkgServer::waitForClient(int waitTime) {
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