Date: Tuesday, January 30, 2007 @ 11:55:32
  Author: marc
    Path: /cvsroot/carob/carob/include

Modified: DriverSocket.hpp (1.20 -> 1.21)

Implemented CAROB_UNBUFFERED_SOCKET macro


------------------+
 DriverSocket.hpp |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)


Index: carob/include/DriverSocket.hpp
diff -u carob/include/DriverSocket.hpp:1.20 carob/include/DriverSocket.hpp:1.21
--- carob/include/DriverSocket.hpp:1.20 Mon Jan 29 17:46:36 2007
+++ carob/include/DriverSocket.hpp      Tue Jan 30 11:55:32 2007
@@ -36,14 +36,25 @@
  * Defines handy methods to read/write to/from a controller following
  * the controller/driver communication protocol.
  */
-class DriverSocket : public BufferedSocket
+class DriverSocket
+#ifdef CAROB_UNBUFFERED_SOCKET
+  : public JavaSocket
+#else
+  : public BufferedSocket
+#endif
 {
 public:
   /**
    * Empty constructor
    * @throws ConnectionException if the connection fails
    */
-  DriverSocket() throw (CodecException, UnexpectedException) : 
BufferedSocket() {}
+  DriverSocket() throw (CodecException, UnexpectedException)
+#ifdef CAROB_UNBUFFERED_SOCKET
+    : JavaSocket()
+#else
+    : BufferedSocket()
+#endif
+  {}
 
   /**
    * Writes a string to the socket according to the controller protocol

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to