diff options
author | Marc Laukien <marc@zeroc.com> | 2001-09-17 22:04:17 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-09-17 22:04:17 +0000 |
commit | 60f51d6688e98ed87d24e6e9d1f179ca5db8f07a (patch) | |
tree | 7c99579afb6e99ea7a76cc5e564db694bdc6d8aa /cpp/demo/Ice/latency/Client.cpp | |
parent | fixes (diff) | |
download | ice-60f51d6688e98ed87d24e6e9d1f179ca5db8f07a.tar.bz2 ice-60f51d6688e98ed87d24e6e9d1f179ca5db8f07a.tar.xz ice-60f51d6688e98ed87d24e6e9d1f179ca5db8f07a.zip |
tons of fixes
Diffstat (limited to 'cpp/demo/Ice/latency/Client.cpp')
-rw-r--r-- | cpp/demo/Ice/latency/Client.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cpp/demo/Ice/latency/Client.cpp b/cpp/demo/Ice/latency/Client.cpp index 78d6734d948..0af75905205 100644 --- a/cpp/demo/Ice/latency/Client.cpp +++ b/cpp/demo/Ice/latency/Client.cpp @@ -22,9 +22,15 @@ int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { Ice::PropertiesPtr properties = communicator->getProperties(); - std::string ref = properties->getProperty("Latency.Ping"); - Ice::ObjectPrx base = communicator->stringToProxy(ref); + const char* refProperty = "Latency.Ping"; + std::string ref = properties->getProperty(refProperty); + if (ref.empty()) + { + cerr << argv[0] << ": property `" << refProperty << "' not set" << endl; + return EXIT_FAILURE; + } + Ice::ObjectPrx base = communicator->stringToProxy(ref); PingPrx ping = PingPrx::checkedCast(base); if (!ping) { |