summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/winrt
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/winrt')
-rw-r--r--cpp/src/Ice/winrt/Makefile.mak2
-rw-r--r--cpp/src/Ice/winrt/StreamAcceptor.cpp2
-rw-r--r--cpp/src/Ice/winrt/StreamAcceptor.h2
-rw-r--r--cpp/src/Ice/winrt/StreamConnector.cpp2
-rw-r--r--cpp/src/Ice/winrt/StreamConnector.h2
-rw-r--r--cpp/src/Ice/winrt/StreamEndpointI.cpp2
-rw-r--r--cpp/src/Ice/winrt/StreamEndpointI.h2
-rw-r--r--cpp/src/Ice/winrt/StreamTransceiver.cpp18
-rw-r--r--cpp/src/Ice/winrt/StreamTransceiver.h10
9 files changed, 26 insertions, 16 deletions
diff --git a/cpp/src/Ice/winrt/Makefile.mak b/cpp/src/Ice/winrt/Makefile.mak
index 271660bb9e8..72753c98b66 100644
--- a/cpp/src/Ice/winrt/Makefile.mak
+++ b/cpp/src/Ice/winrt/Makefile.mak
@@ -1,6 +1,6 @@
# **********************************************************************
#
-# Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
+# Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
diff --git a/cpp/src/Ice/winrt/StreamAcceptor.cpp b/cpp/src/Ice/winrt/StreamAcceptor.cpp
index c91f14e7729..71f836481f4 100644
--- a/cpp/src/Ice/winrt/StreamAcceptor.cpp
+++ b/cpp/src/Ice/winrt/StreamAcceptor.cpp
@@ -1,6 +1,6 @@
// **********************************************************************
//
-// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
+// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
diff --git a/cpp/src/Ice/winrt/StreamAcceptor.h b/cpp/src/Ice/winrt/StreamAcceptor.h
index c7d00eb9a6c..c3550872918 100644
--- a/cpp/src/Ice/winrt/StreamAcceptor.h
+++ b/cpp/src/Ice/winrt/StreamAcceptor.h
@@ -1,6 +1,6 @@
// **********************************************************************
//
-// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
+// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
diff --git a/cpp/src/Ice/winrt/StreamConnector.cpp b/cpp/src/Ice/winrt/StreamConnector.cpp
index 82f9bb96b44..027fa4c97c0 100644
--- a/cpp/src/Ice/winrt/StreamConnector.cpp
+++ b/cpp/src/Ice/winrt/StreamConnector.cpp
@@ -1,6 +1,6 @@
// **********************************************************************
//
-// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
+// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
diff --git a/cpp/src/Ice/winrt/StreamConnector.h b/cpp/src/Ice/winrt/StreamConnector.h
index d528294e94a..f5295e88a63 100644
--- a/cpp/src/Ice/winrt/StreamConnector.h
+++ b/cpp/src/Ice/winrt/StreamConnector.h
@@ -1,6 +1,6 @@
// **********************************************************************
//
-// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
+// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
diff --git a/cpp/src/Ice/winrt/StreamEndpointI.cpp b/cpp/src/Ice/winrt/StreamEndpointI.cpp
index 78c169eb88c..a7e39df3d68 100644
--- a/cpp/src/Ice/winrt/StreamEndpointI.cpp
+++ b/cpp/src/Ice/winrt/StreamEndpointI.cpp
@@ -1,6 +1,6 @@
// **********************************************************************
//
-// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
+// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
diff --git a/cpp/src/Ice/winrt/StreamEndpointI.h b/cpp/src/Ice/winrt/StreamEndpointI.h
index 12ca011178b..5577c6052d6 100644
--- a/cpp/src/Ice/winrt/StreamEndpointI.h
+++ b/cpp/src/Ice/winrt/StreamEndpointI.h
@@ -1,6 +1,6 @@
// **********************************************************************
//
-// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
+// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
diff --git a/cpp/src/Ice/winrt/StreamTransceiver.cpp b/cpp/src/Ice/winrt/StreamTransceiver.cpp
index 3bc67733388..b47d92a8f8e 100644
--- a/cpp/src/Ice/winrt/StreamTransceiver.cpp
+++ b/cpp/src/Ice/winrt/StreamTransceiver.cpp
@@ -1,6 +1,6 @@
// **********************************************************************
//
-// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
+// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
@@ -86,7 +86,7 @@ IceInternal::StreamTransceiver::setCompletedHandler(SocketOperationCompletedHand
}
SocketOperation
-IceInternal::StreamTransceiver::initialize(Buffer&, Buffer&)
+IceInternal::StreamTransceiver::initialize(Buffer&, Buffer&,bool&)
{
if(_state == StateNeedConnect)
{
@@ -127,6 +127,14 @@ IceInternal::StreamTransceiver::initialize(Buffer&, Buffer&)
}
void
+IceInternal::StreamTransceiver::closing(bool, const Ice::LocalException&)
+{
+ // If we are initiating the connection closure, wait for the peer
+ // to close the TCP/IP connection. Otherwise, close immediately.
+ return initiator ? SocketOperationRead : SocketOperationNone;
+}
+
+void
IceInternal::StreamTransceiver::close()
{
if(_state == StateConnected && _traceLevels->network >= 1)
@@ -148,16 +156,16 @@ IceInternal::StreamTransceiver::close()
}
}
-bool
+SocketOperation
IceInternal::StreamTransceiver::write(Buffer&)
{
- return false;
+ return SocketOperationWrite;
}
bool
IceInternal::StreamTransceiver::read(Buffer&)
{
- return false;
+ return SocketOperationRead;
}
bool
diff --git a/cpp/src/Ice/winrt/StreamTransceiver.h b/cpp/src/Ice/winrt/StreamTransceiver.h
index 935c16b67bc..9c2c30f037b 100644
--- a/cpp/src/Ice/winrt/StreamTransceiver.h
+++ b/cpp/src/Ice/winrt/StreamTransceiver.h
@@ -1,6 +1,6 @@
// **********************************************************************
//
-// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
+// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
@@ -39,10 +39,12 @@ public:
virtual NativeInfoPtr getNativeInfo();
virtual void setCompletedHandler(SocketOperationCompletedHandler^);
- virtual SocketOperation initialize(Buffer&, Buffer&);
+ virtual SocketOperation initialize(Buffer&, Buffer&, bool&);
+ virtual SocketOperation initialize();
+ virtual SocketOperation closing(bool, const Ice::LocalException&);
virtual void close();
- virtual bool write(Buffer&);
- virtual bool read(Buffer&);
+ virtual SocketOperation write(Buffer&);
+ virtual SocketOperation read(Buffer&);
virtual bool startWrite(Buffer&);
virtual void finishWrite(Buffer&);