diff options
author | Michi Henning <michi@zeroc.com> | 2007-10-16 16:04:22 +1000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2007-10-16 16:04:22 +1000 |
commit | 17bc57e6e22cffa7942d03c168afa278b0a4d7fd (patch) | |
tree | ae9134b9e5b3c10d70b8f69f01fad365d32b9a94 /cpp/src/IceGrid/Client.cpp | |
parent | Finished implementation of custom sequence mapping. (diff) | |
parent | Fixed bug #2098 (diff) | |
download | ice-17bc57e6e22cffa7942d03c168afa278b0a4d7fd.tar.bz2 ice-17bc57e6e22cffa7942d03c168afa278b0a4d7fd.tar.xz ice-17bc57e6e22cffa7942d03c168afa278b0a4d7fd.zip |
Merge branch 'master' of ssh://cvs.zeroc.com/home/git/ice
Diffstat (limited to 'cpp/src/IceGrid/Client.cpp')
-rw-r--r-- | cpp/src/IceGrid/Client.cpp | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/cpp/src/IceGrid/Client.cpp b/cpp/src/IceGrid/Client.cpp index c814f9cb0cb..ff7dde0bf98 100644 --- a/cpp/src/IceGrid/Client.cpp +++ b/cpp/src/IceGrid/Client.cpp @@ -360,17 +360,8 @@ Client::run(int argc, char* argv[]) cerr << argv[0] << ": could not contact the default router:" << endl << ex << endl; return EXIT_FAILURE; } - - // Use SSL if available. - try - { - Glacier2::RouterPrx secureRouter = router->ice_secure(true); - secureRouter->ice_ping(); - router = secureRouter; - } - catch(const Ice::NoEndpointException&) - { - } + + router = router->ice_preferSecure(true); // Use SSL if available. if(ssl) { @@ -483,16 +474,7 @@ Client::run(int argc, char* argv[]) } } - // Use SSL if available. - try - { - RegistryPrx secureRegistry = registry->ice_secure(true); - secureRegistry->ice_ping(); - registry = secureRegistry; - } - catch(const Ice::NoEndpointException&) - { - } + registry = registry->ice_preferSecure(true); // Use SSL if available. if(ssl) { |