summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/WSAcceptor.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2014-09-17 13:50:35 -0230
committerDwayne Boone <dwayne@zeroc.com>2014-09-17 13:50:35 -0230
commita3d676c4199ff53edd458abf7ce52f6cf83213b4 (patch)
treed6975ba5b7c3d9e58b5378f2e27ec536e4157517 /cpp/src/Ice/WSAcceptor.cpp
parentSimplified creation of Admin facets in IceBox; simplified test for Admin enab... (diff)
downloadice-a3d676c4199ff53edd458abf7ce52f6cf83213b4.tar.bz2
ice-a3d676c4199ff53edd458abf7ce52f6cf83213b4.tar.xz
ice-a3d676c4199ff53edd458abf7ce52f6cf83213b4.zip
ICE-4891 some minor improvements
Diffstat (limited to 'cpp/src/Ice/WSAcceptor.cpp')
-rw-r--r--cpp/src/Ice/WSAcceptor.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/cpp/src/Ice/WSAcceptor.cpp b/cpp/src/Ice/WSAcceptor.cpp
index 8aa995a028d..012363c400f 100644
--- a/cpp/src/Ice/WSAcceptor.cpp
+++ b/cpp/src/Ice/WSAcceptor.cpp
@@ -42,11 +42,10 @@ IceInternal::WSAcceptor::close()
}
EndpointIPtr
-IceInternal::WSAcceptor::listen(const EndpointIPtr& endp)
+IceInternal::WSAcceptor::listen()
{
- WSEndpoint* p = dynamic_cast<WSEndpoint*>(endp.get());
- EndpointIPtr endpoint = _delegate->listen(p->delegate());
- return endp->endpoint(this);
+ _endpoint = _endpoint->endpoint(_delegate->listen());
+ return _endpoint;
}
#if defined(ICE_USE_IOCP) || defined(ICE_OS_WINRT)
@@ -91,8 +90,11 @@ IceInternal::WSAcceptor::toDetailedString() const
return _delegate->toDetailedString();
}
-IceInternal::WSAcceptor::WSAcceptor(const ProtocolInstancePtr& instance, const IceInternal::AcceptorPtr& del) :
- _instance(instance), _delegate(del)
+IceInternal::WSAcceptor::WSAcceptor(const WSEndpointPtr& endpoint, const ProtocolInstancePtr& instance,
+ const AcceptorPtr& del) :
+ _endpoint(endpoint),
+ _instance(instance),
+ _delegate(del)
{
}