summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/WSAcceptor.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2014-09-05 10:42:18 -0230
committerDwayne Boone <dwayne@zeroc.com>2014-09-05 10:42:18 -0230
commit9786853ab2d88598021aaec5c0409d3a45a50a13 (patch)
treed64858749513c529fdb84a98d8637d19f2c125e4 /cpp/src/Ice/WSAcceptor.cpp
parentMinor change to JS print stack traces (diff)
downloadice-9786853ab2d88598021aaec5c0409d3a45a50a13.tar.bz2
ice-9786853ab2d88598021aaec5c0409d3a45a50a13.tar.xz
ice-9786853ab2d88598021aaec5c0409d3a45a50a13.zip
ICE-4891 Refactor network tracing
Diffstat (limited to 'cpp/src/Ice/WSAcceptor.cpp')
-rw-r--r--cpp/src/Ice/WSAcceptor.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/cpp/src/Ice/WSAcceptor.cpp b/cpp/src/Ice/WSAcceptor.cpp
index a6d5f793fc5..8aa995a028d 100644
--- a/cpp/src/Ice/WSAcceptor.cpp
+++ b/cpp/src/Ice/WSAcceptor.cpp
@@ -9,6 +9,7 @@
#include <Ice/WSAcceptor.h>
#include <Ice/WSTransceiver.h>
+#include <Ice/WSEndpoint.h>
using namespace std;
using namespace Ice;
@@ -27,7 +28,7 @@ IceInternal::WSAcceptor::getAsyncInfo(IceInternal::SocketOperation status)
return _delegate->getNativeInfo()->getAsyncInfo(status);
}
#elif defined(ICE_OS_WINRT)
-void
+void
IceInternal::WSAcceptor::setCompletedHandler(IceInternal::SocketOperationCompletedHandler^ handler)
{
_delegate->getNativeInfo()->setCompletedHandler(handler);
@@ -40,10 +41,12 @@ IceInternal::WSAcceptor::close()
_delegate->close();
}
-void
-IceInternal::WSAcceptor::listen()
+EndpointIPtr
+IceInternal::WSAcceptor::listen(const EndpointIPtr& endp)
{
- _delegate->listen();
+ WSEndpoint* p = dynamic_cast<WSEndpoint*>(endp.get());
+ EndpointIPtr endpoint = _delegate->listen(p->delegate());
+ return endp->endpoint(this);
}
#if defined(ICE_USE_IOCP) || defined(ICE_OS_WINRT)
@@ -82,6 +85,12 @@ IceInternal::WSAcceptor::toString() const
return _delegate->toString();
}
+string
+IceInternal::WSAcceptor::toDetailedString() const
+{
+ return _delegate->toDetailedString();
+}
+
IceInternal::WSAcceptor::WSAcceptor(const ProtocolInstancePtr& instance, const IceInternal::AcceptorPtr& del) :
_instance(instance), _delegate(del)
{