summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Instance.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2014-05-06 14:46:43 +0200
committerBenoit Foucher <benoit@zeroc.com>2014-05-06 14:46:43 +0200
commitb5b3a899f3418a1f477db3ce4044dda38c9cef47 (patch)
treeaef7ebcf67e31e993a8d821bc8f251aac749a6f1 /cpp/src/Ice/Instance.cpp
parentminor build fix (diff)
downloadice-b5b3a899f3418a1f477db3ce4044dda38c9cef47.tar.bz2
ice-b5b3a899f3418a1f477db3ce4044dda38c9cef47.tar.xz
ice-b5b3a899f3418a1f477db3ce4044dda38c9cef47.zip
Fixed WinRT build (transport re-factoring)
Diffstat (limited to 'cpp/src/Ice/Instance.cpp')
-rw-r--r--cpp/src/Ice/Instance.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/Ice/Instance.cpp b/cpp/src/Ice/Instance.cpp
index 9550e536180..361165c87ab 100644
--- a/cpp/src/Ice/Instance.cpp
+++ b/cpp/src/Ice/Instance.cpp
@@ -1104,9 +1104,12 @@ IceInternal::Instance::Instance(const CommunicatorPtr& communicator, const Initi
EndpointFactoryPtr tcpEndpointFactory = new TcpEndpointFactory(tcpProtocolInstance);
_endpointFactoryManager->add(tcpEndpointFactory);
#else
- EndpointFactoryPtr tcpStreamEndpointFactory = new StreamEndpointFactory(this, TCPEndpointType, "tcp");
+ ProtocolInstancePtr tcpProtocolInstance = new ProtocolInstance(this, TCPEndpointType, "tcp");
+ EndpointFactoryPtr tcpStreamEndpointFactory = new StreamEndpointFactory(tcpProtocolInstance);
_endpointFactoryManager->add(tcpStreamEndpointFactory);
- EndpointFactoryPtr sslStreamEndpointFactory = new StreamEndpointFactory(this, IceSSL::EndpointType, "ssl");
+
+ ProtocolInstancePtr sslProtocolInstance = new ProtocolInstance(this, IceSSL::EndpointType, "ssl");
+ EndpointFactoryPtr sslStreamEndpointFactory = new StreamEndpointFactory(sslProtocolInstance);
_endpointFactoryManager->add(sslStreamEndpointFactory);
#endif
ProtocolInstancePtr udpProtocolInstance = new ProtocolInstance(this, UDPEndpointType, "udp");