summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/TcpTransceiver.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2009-11-23 13:28:08 +0100
committerBenoit Foucher <benoit@zeroc.com>2009-11-23 13:28:08 +0100
commit2c578015edcb36cdc0acd0227295de1dcca1b995 (patch)
treee163980b5dabb43a40089a29fdf8ff47a3e07f1c /cpp/src/Ice/TcpTransceiver.cpp
parentno longer generating inspect method for each Ruby exception (diff)
downloadice-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.cpp5
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