Revision: 40701
http://brlcad.svn.sourceforge.net/brlcad/?rev=40701&view=rev
Author: davidloman
Date: 2010-09-27 17:25:05 +0000 (Mon, 27 Sep 2010)
Log Message:
-----------
PkgServer:listen is supposed to return an int, (aka the File Descriptor for the
listener).
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-27 16:36:45 UTC (rev 40700)
+++ rt^3/trunk/include/PkgServer.h 2010-09-27 17:25:05 UTC (rev 40701)
@@ -35,7 +35,7 @@
PkgServer(std::string proto);
virtual ~PkgServer();
- bool listen(unsigned short port);
+ int listen(unsigned short port);
PkgClient* connectToHost(std::string ipOrHostname, short port);
/*
Modified: rt^3/trunk/src/libPkgCpp/PkgServer.cxx
===================================================================
--- rt^3/trunk/src/libPkgCpp/PkgServer.cxx 2010-09-27 16:36:45 UTC (rev
40700)
+++ rt^3/trunk/src/libPkgCpp/PkgServer.cxx 2010-09-27 17:25:05 UTC (rev
40701)
@@ -58,7 +58,7 @@
return this->getNewClient(conn);
}
-bool
+int
PkgServer::listen(unsigned short port)
{
//Convert port -> char* to make libpkg happy.
@@ -69,13 +69,13 @@
fd = pkg_permserver(portCString, this->proto.c_str(), 0, 0);
if (fd < 0)
- return false;
+ return fd;
this->listenFD = fd;
bu_log("Listening on port '%d'.\n", port);
- return true;
+ return fd;
}
int
PkgServer::getListeningFD()
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