diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-11-24 17:29:58 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-11-24 17:29:58 +0000 |
commit | 1126cea5189d035934f98822078f2ae23d9739ec (patch) | |
tree | 759430bdf201db72abddcd9bb83bed6fb034a6d2 /cpp/demo/IceBox/hello/Client.cpp | |
parent | Code cleanup (diff) | |
download | ice-1126cea5189d035934f98822078f2ae23d9739ec.tar.bz2 ice-1126cea5189d035934f98822078f2ae23d9739ec.tar.xz ice-1126cea5189d035934f98822078f2ae23d9739ec.zip |
Added propertyToProxy
Diffstat (limited to 'cpp/demo/IceBox/hello/Client.cpp')
-rw-r--r-- | cpp/demo/IceBox/hello/Client.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/cpp/demo/IceBox/hello/Client.cpp b/cpp/demo/IceBox/hello/Client.cpp index d8d0a3792aa..b4578d987e7 100644 --- a/cpp/demo/IceBox/hello/Client.cpp +++ b/cpp/demo/IceBox/hello/Client.cpp @@ -51,17 +51,8 @@ HelloClient::menu() int HelloClient::run(int argc, char* argv[]) { - Ice::PropertiesPtr properties = communicator()->getProperties(); - const char* proxyProperty = "Hello.Proxy"; - std::string proxy = properties->getProperty(proxyProperty); - if(proxy.empty()) - { - cerr << argv[0] << ": property `" << proxyProperty << "' not set" << endl; - return EXIT_FAILURE; - } - HelloPrx twoway = HelloPrx::checkedCast( - communicator()->stringToProxy(proxy)->ice_twoway()->ice_timeout(-1)->ice_secure(false)); + communicator()->propertyToProxy("Hello.Proxy")->ice_twoway()->ice_timeout(-1)->ice_secure(false)); if(!twoway) { cerr << argv[0] << ": invalid proxy" << endl; |