Revision: 40645
http://brlcad.svn.sourceforge.net/brlcad/?rev=40645&view=rev
Author: davidloman
Date: 2010-09-22 18:06:48 +0000 (Wed, 22 Sep 2010)
Log Message:
-----------
Changed send/recv to write/read for better clarity and to match that of the
sockets API. Also broke out read and write into individual fns.
Modified Paths:
--------------
rt^3/trunk/include/Portal.h
rt^3/trunk/src/libNet/Portal.cxx
Modified: rt^3/trunk/include/Portal.h
===================================================================
--- rt^3/trunk/include/Portal.h 2010-09-22 17:59:55 UTC (rev 40644)
+++ rt^3/trunk/include/Portal.h 2010-09-22 18:06:48 UTC (rev 40645)
@@ -38,19 +38,35 @@
friend class PortalManager;
virtual ~Portal();
- /*
- * Returns:
- * <0 on error
- * 0 on EOF
- * >0 on success
- */
- int sendRecv();
QString getRemoteNodeName();
protected:
Portal(PkgTcpClient* client);
+ /*
+ * Returns:
+ * <0 on error
+ * 0 on EOF
+ * 1 on success
+ */
+ int readWrite();
+ /*
+ * Returns:
+ * <0 on error
+ * 0 on EOF
+ * 1 on success
+ */
+ int write();
+ /*
+ * Returns:
+ * <0 on error
+ * 0 on EOF
+ * 1 on success
+ */
+ int read();
+
+
private:
PkgTcpClient* pkgClient;
QString remoteNodeName;
Modified: rt^3/trunk/src/libNet/Portal.cxx
===================================================================
--- rt^3/trunk/src/libNet/Portal.cxx 2010-09-22 17:59:55 UTC (rev 40644)
+++ rt^3/trunk/src/libNet/Portal.cxx 2010-09-22 18:06:48 UTC (rev 40645)
@@ -44,8 +44,20 @@
{
}
+
int
-Portal::sendRecv(){
+Portal::readWrite(){
+
+}
+
+int
+Portal::write(){
+
+}
+
+int
+Portal::read(){
+
int retval = 0;
//recv first
@@ -72,10 +84,6 @@
return retval;
}//TODO do we need to check for ==0 ?
-
- //Now do send.
- //TODO do send
-
return 1;
}
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