diff options
author | Michi Henning <michi@zeroc.com> | 2009-12-07 14:48:27 +1000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2009-12-07 14:48:27 +1000 |
commit | 8d0c264fc218d2806eb610f325602353e58e6034 (patch) | |
tree | 939c96e2c7ab4ae0d8a3cd16fcba53574149dcc1 /cpp/src/Ice/TcpTransceiver.cpp | |
parent | Added Excel demo. (diff) | |
parent | 4424 - .NET FxCop Globalization Rules (diff) | |
download | ice-8d0c264fc218d2806eb610f325602353e58e6034.tar.bz2 ice-8d0c264fc218d2806eb610f325602353e58e6034.tar.xz ice-8d0c264fc218d2806eb610f325602353e58e6034.zip |
Merge branch 'master' of ssh://cvs.zeroc.com/home/git/ice
Diffstat (limited to 'cpp/src/Ice/TcpTransceiver.cpp')
-rw-r--r-- | cpp/src/Ice/TcpTransceiver.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/Ice/TcpTransceiver.cpp b/cpp/src/Ice/TcpTransceiver.cpp index d26545f22de..ca7f250a259 100644 --- a/cpp/src/Ice/TcpTransceiver.cpp +++ b/cpp/src/Ice/TcpTransceiver.cpp @@ -277,14 +277,14 @@ IceInternal::TcpTransceiver::read(Buffer& buf) } #ifdef ICE_USE_IOCP -void +bool IceInternal::TcpTransceiver::startWrite(Buffer& buf) { if(_state < StateConnected) { doConnectAsync(_fd, _connectAddr, _write); _desc = fdToString(_fd); - return; + return false; } assert(!buf.b.empty() && buf.i != buf.b.end()); @@ -316,6 +316,7 @@ IceInternal::TcpTransceiver::startWrite(Buffer& buf) } } } + return packetSize == static_cast<int>(buf.b.end() - buf.i); } void |