summaryrefslogtreecommitdiff
path: root/cppe
diff options
context:
space:
mode:
Diffstat (limited to 'cppe')
-rw-r--r--cppe/include/IceE/Config.h2
-rw-r--r--cppe/src/TcpTransport/Transceiver.cpp4
2 files changed, 5 insertions, 1 deletions
diff --git a/cppe/include/IceE/Config.h b/cppe/include/IceE/Config.h
index aa3a19b89b7..8302122057c 100644
--- a/cppe/include/IceE/Config.h
+++ b/cppe/include/IceE/Config.h
@@ -72,7 +72,7 @@
// timeouts.
//
#if defined(_WIN32_WCE)
-# define ICE_USE_SELECT_FOR_TIMEOUTS
+# define ICEE_USE_SELECT_FOR_TIMEOUTS
#endif
//
diff --git a/cppe/src/TcpTransport/Transceiver.cpp b/cppe/src/TcpTransport/Transceiver.cpp
index 25d4443e1da..e464764b487 100644
--- a/cppe/src/TcpTransport/Transceiver.cpp
+++ b/cppe/src/TcpTransport/Transceiver.cpp
@@ -27,10 +27,14 @@ void
IceInternal::Transceiver::setTimeouts(int readTimeout, int writeTimeout)
{
_readTimeout = readTimeout;
+#ifndef ICEE_USE_SELECT_FOR_TIMEOUTS
setTimeout(_fd, true, _readTimeout);
+#endif
_writeTimeout = writeTimeout;
+#ifndef ICEE_USE_SELECT_FOR_TIMEOUTS
setTimeout(_fd, false, _writeTimeout);
+#endif
}
SOCKET