diff options
author | Bernard Normier <bernard@zeroc.com> | 2003-04-29 19:51:33 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2003-04-29 19:51:33 +0000 |
commit | d6b805efcf63a16a759f0a104db74c5e9c009f7d (patch) | |
tree | 2a73b6a3e15c2cf711a0c4f1ab12dd52687e003e /cpp/src/Ice/TcpTransceiver.cpp | |
parent | file UserExceptionFactory.h was initially added on branch slicing. (diff) | |
download | ice-d6b805efcf63a16a759f0a104db74c5e9c009f7d.tar.bz2 ice-d6b805efcf63a16a759f0a104db74c5e9c009f7d.tar.xz ice-d6b805efcf63a16a759f0a104db74c5e9c009f7d.zip |
Sun: 64 bit + CC 5.3 support
Diffstat (limited to 'cpp/src/Ice/TcpTransceiver.cpp')
-rw-r--r-- | cpp/src/Ice/TcpTransceiver.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/Ice/TcpTransceiver.cpp b/cpp/src/Ice/TcpTransceiver.cpp index 79aff442209..f4fbd688dde 100644 --- a/cpp/src/Ice/TcpTransceiver.cpp +++ b/cpp/src/Ice/TcpTransceiver.cpp @@ -62,7 +62,7 @@ IceInternal::TcpTransceiver::shutdown() void IceInternal::TcpTransceiver::write(Buffer& buf, int timeout) { - int packetSize = buf.b.end() - buf.i; + Buffer::Container::difference_type packetSize = buf.b.end() - buf.i; #ifdef _WIN32 // @@ -77,7 +77,7 @@ IceInternal::TcpTransceiver::write(Buffer& buf, int timeout) while(buf.i != buf.b.end()) { assert(_fd != INVALID_SOCKET); - int ret = ::send(_fd, &*buf.i, packetSize, 0); + ssize_t ret = ::send(_fd, &*buf.i, packetSize, 0); if(ret == 0) { @@ -161,7 +161,7 @@ IceInternal::TcpTransceiver::write(Buffer& buf, int timeout) if(_stats) { - _stats->bytesSent(_name, ret); + _stats->bytesSent(_name, static_cast<Int>(ret)); } buf.i += ret; @@ -176,12 +176,12 @@ IceInternal::TcpTransceiver::write(Buffer& buf, int timeout) void IceInternal::TcpTransceiver::read(Buffer& buf, int timeout) { - int packetSize = buf.b.end() - buf.i; + Buffer::Container::difference_type packetSize = buf.b.end() - buf.i; while(buf.i != buf.b.end()) { assert(_fd != INVALID_SOCKET); - int ret = ::recv(_fd, &*buf.i, packetSize, 0); + ssize_t ret = ::recv(_fd, &*buf.i, packetSize, 0); if(ret == 0) { @@ -265,7 +265,7 @@ IceInternal::TcpTransceiver::read(Buffer& buf, int timeout) if(_stats) { - _stats->bytesReceived(_name, ret); + _stats->bytesReceived(_name, static_cast<Int>(ret)); } buf.i += ret; |