From 2c578015edcb36cdc0acd0227295de1dcca1b995 Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Mon, 23 Nov 2009 13:28:08 +0100 Subject: New AMI mapping --- cpp/src/Ice/TcpTransceiver.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp/src/Ice/TcpTransceiver.cpp') 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(buf.b.end() - buf.i); } void -- cgit v1.2.3