From fcd722bf5050ea9f3b96288bc30fe539744b3e00 Mon Sep 17 00:00:00 2001 From: Anthony Neal Date: Tue, 13 Nov 2001 15:42:30 +0000 Subject: Incorporates SSL, with all Ice tests running under SSL. --- cpp/test/Ice/exceptions/Server.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'cpp/test/Ice/exceptions/Server.cpp') diff --git a/cpp/test/Ice/exceptions/Server.cpp b/cpp/test/Ice/exceptions/Server.cpp index eb62046032a..3f9234a91ee 100644 --- a/cpp/test/Ice/exceptions/Server.cpp +++ b/cpp/test/Ice/exceptions/Server.cpp @@ -16,7 +16,16 @@ using namespace std; int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - string endpts("tcp -p 12345 -t 2000"); + Ice::PropertiesPtr properties = communicator->getProperties(); + + string protocol = properties->getProperty("Ice.Protocol"); + + if (protocol.empty()) + { + protocol = "tcp"; + } + + string endpts = protocol + " -p 12345 -t 2000"; Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("TestAdapter", endpts); Ice::ObjectPtr object = new ThrowerI(adapter); adapter->add(object, "thrower"); -- cgit v1.2.3