diff options
author | Marc Laukien <marc@zeroc.com> | 2001-11-13 20:28:08 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-11-13 20:28:08 +0000 |
commit | 7d200cf8404655ce2e0ba62360d7030b67eb8514 (patch) | |
tree | 9de4d4a471480bb30a4bad05fcb3859a47a1b09e /cpp/test/Ice/exceptions/Collocated.cpp | |
parent | Added for testing purposes. "cacert.pem" is a self-signed Mutable Realms CA (diff) | |
download | ice-7d200cf8404655ce2e0ba62360d7030b67eb8514.tar.bz2 ice-7d200cf8404655ce2e0ba62360d7030b67eb8514.tar.xz ice-7d200cf8404655ce2e0ba62360d7030b67eb8514.zip |
fixes
Diffstat (limited to 'cpp/test/Ice/exceptions/Collocated.cpp')
-rw-r--r-- | cpp/test/Ice/exceptions/Collocated.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cpp/test/Ice/exceptions/Collocated.cpp b/cpp/test/Ice/exceptions/Collocated.cpp index c7e199b9eff..6b067900c42 100644 --- a/cpp/test/Ice/exceptions/Collocated.cpp +++ b/cpp/test/Ice/exceptions/Collocated.cpp @@ -16,15 +16,15 @@ using namespace std; int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - Ice::PropertiesPtr properties = communicator->getProperties();
-
- string protocol = properties->getProperty("Ice.Protocol");
-
- if (protocol.empty())
- {
- protocol = "tcp";
- }
-
+ 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); |