summaryrefslogtreecommitdiff
path: root/cpp/test/IceSSL/certificateVerification/Server.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2004-03-04 17:44:23 +0000
committerBenoit Foucher <benoit@zeroc.com>2004-03-04 17:44:23 +0000
commit025b9aaad4891b037ffd97a426207e1446d311e1 (patch)
tree006cff43819be3dbb92c6ad454177f25c58549cf /cpp/test/IceSSL/certificateVerification/Server.cpp
parentAdded MacOS X support (diff)
downloadice-025b9aaad4891b037ffd97a426207e1446d311e1.tar.bz2
ice-025b9aaad4891b037ffd97a426207e1446d311e1.tar.xz
ice-025b9aaad4891b037ffd97a426207e1446d311e1.zip
Make sure only one adapter ready is printed to make sure the client isn't
started before the server is fully initiailized
Diffstat (limited to 'cpp/test/IceSSL/certificateVerification/Server.cpp')
-rw-r--r--cpp/test/IceSSL/certificateVerification/Server.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/test/IceSSL/certificateVerification/Server.cpp b/cpp/test/IceSSL/certificateVerification/Server.cpp
index 128785bd2d1..10e193594e8 100644
--- a/cpp/test/IceSSL/certificateVerification/Server.cpp
+++ b/cpp/test/IceSSL/certificateVerification/Server.cpp
@@ -163,6 +163,8 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
}
properties->setProperty("KeyManagerAdapter.Endpoints", "tcp -p 12344 -t 10000");
+ bool printAdapterReady = properties->getPropertyAsInt("Ice.PrintAdapterReady") > 0;
+ properties->setProperty("Ice.PrintAdapterReady", "0");
Ice::ObjectAdapterPtr kmAdapter = communicator->createObjectAdapter("KeyManagerAdapter");
kmAdapter->add(object, Ice::stringToIdentity("keyManager"));
kmAdapter->activate();
@@ -173,6 +175,10 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
":ssl -p 12347 -t 10000"
":ssl -p 12348 -t 10000"
":ssl -p 12349 -t 10000";
+ if(printAdapterReady)
+ {
+ properties->setProperty("Ice.PrintAdapterReady", "1");
+ }
properties->setProperty("PingerAdapter.Endpoints", pingerEndpoints);
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("PingerAdapter");
adapter->add(new PingerI(), Ice::stringToIdentity("pinger"));