summaryrefslogtreecommitdiff
path: root/cppe/src/TcpTransport/Transceiver.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-08-05 07:54:40 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-08-05 07:54:40 +0000
commit9ad872312904cb29cbe8f031711a81cb55af63f0 (patch)
tree4710da697e429148bdf01f5830bfcdaa3354f34a /cppe/src/TcpTransport/Transceiver.cpp
parentcleanup. (diff)
downloadice-9ad872312904cb29cbe8f031711a81cb55af63f0.tar.bz2
ice-9ad872312904cb29cbe8f031711a81cb55af63f0.tar.xz
ice-9ad872312904cb29cbe8f031711a81cb55af63f0.zip
cleanup.
Diffstat (limited to 'cppe/src/TcpTransport/Transceiver.cpp')
-rw-r--r--cppe/src/TcpTransport/Transceiver.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/cppe/src/TcpTransport/Transceiver.cpp b/cppe/src/TcpTransport/Transceiver.cpp
index 82f53f36256..5b385b2a751 100644
--- a/cppe/src/TcpTransport/Transceiver.cpp
+++ b/cppe/src/TcpTransport/Transceiver.cpp
@@ -117,8 +117,8 @@ IceInternal::Transceiver::write(Buffer& buf, int timeout)
{
#ifdef _WIN32
repeatError:
-#endif
- if(interrupted())
+#endif
+ if(interrupted())
{
continue;
}
@@ -280,7 +280,7 @@ IceInternal::Transceiver::read(Buffer& buf, int timeout)
{
#ifdef _WIN32
repeatError:
-#endif
+#endif
if(interrupted())
{
continue;
@@ -435,10 +435,11 @@ IceInternal::Transceiver::Transceiver(const InstancePtr& instance, SOCKET fd) :
_event = WSACreateEvent();
if(_event == 0)
{
+ int error = WSAGetLastError();
closeSocket(_fd);
SocketException ex(__FILE__, __LINE__);
- ex.error = getSocketErrno();
+ ex.error = error;
throw ex;
}