diff options
author | Benoit Foucher <benoit@zeroc.com> | 2009-11-23 13:28:08 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2009-11-23 13:28:08 +0100 |
commit | 2c578015edcb36cdc0acd0227295de1dcca1b995 (patch) | |
tree | e163980b5dabb43a40089a29fdf8ff47a3e07f1c /cpp/src/Ice/TcpTransceiver.cpp | |
parent | no longer generating inspect method for each Ruby exception (diff) | |
download | ice-2c578015edcb36cdc0acd0227295de1dcca1b995.tar.bz2 ice-2c578015edcb36cdc0acd0227295de1dcca1b995.tar.xz ice-2c578015edcb36cdc0acd0227295de1dcca1b995.zip |
New AMI mapping
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 |