diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-09-13 05:50:03 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-09-13 05:50:03 +0000 |
commit | 5e338257e63bfa8a82ddd787c73fb2444d5a0583 (patch) | |
tree | 91b8389ad71ca8ab97e614fd9fdf5e765c3d836c /cpp/demo/Ice/minimal/Client.cpp | |
parent | http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=460 (diff) | |
download | ice-5e338257e63bfa8a82ddd787c73fb2444d5a0583.tar.bz2 ice-5e338257e63bfa8a82ddd787c73fb2444d5a0583.tar.xz ice-5e338257e63bfa8a82ddd787c73fb2444d5a0583.zip |
simplified minimal demo.
Diffstat (limited to 'cpp/demo/Ice/minimal/Client.cpp')
-rw-r--r-- | cpp/demo/Ice/minimal/Client.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/cpp/demo/Ice/minimal/Client.cpp b/cpp/demo/Ice/minimal/Client.cpp index 589e7d619f7..829704ee003 100644 --- a/cpp/demo/Ice/minimal/Client.cpp +++ b/cpp/demo/Ice/minimal/Client.cpp @@ -26,17 +26,7 @@ menu() int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - Ice::PropertiesPtr properties = communicator->getProperties(); - const char* proxyProperty = "Hello.Proxy"; - string proxy = properties->getProperty(proxyProperty); - if(proxy.empty()) - { - cerr << argv[0] << ": property `" << proxyProperty << "' not set" << endl; - return EXIT_FAILURE; - } - - Ice::ObjectPrx base = communicator->stringToProxy(proxy); - HelloPrx hello = HelloPrx::checkedCast(base->ice_twoway()->ice_timeout(-1)->ice_secure(false)); + HelloPrx hello = HelloPrx::checkedCast(communicator->stringToProxy("hello:tcp -p 10000")); if(!hello) { cerr << argv[0] << ": invalid proxy" << endl; @@ -88,9 +78,7 @@ main(int argc, char* argv[]) try { - Ice::PropertiesPtr properties = Ice::createProperties(); - properties->load("config"); - communicator = Ice::initializeWithProperties(argc, argv, properties); + communicator = Ice::initialize(argc, argv); status = run(argc, argv, communicator); } catch(const Ice::Exception& ex) |