diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-07-15 12:59:43 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-07-15 12:59:43 +0200 |
commit | 1652b782824c9c24638512b57b74dae8745d2c79 (patch) | |
tree | ebf6200f98a6ede37d47028447e32e0197aa8f8b /cpp/src/IceGrid/Client.cpp | |
parent | Fixed Java IceWS bug which was cuasing 100% CPU usage for Ice client/server (diff) | |
download | ice-1652b782824c9c24638512b57b74dae8745d2c79.tar.bz2 ice-1652b782824c9c24638512b57b74dae8745d2c79.tar.xz ice-1652b782824c9c24638512b57b74dae8745d2c79.zip |
Fixed ICE-4611: added finder objects for locator/router/IceStorm to allow easily retrieving proxies without knowning the instance name
Diffstat (limited to 'cpp/src/IceGrid/Client.cpp')
-rw-r--r-- | cpp/src/IceGrid/Client.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/IceGrid/Client.cpp b/cpp/src/IceGrid/Client.cpp index 191d5749a88..df2a0979b52 100644 --- a/cpp/src/IceGrid/Client.cpp +++ b/cpp/src/IceGrid/Client.cpp @@ -527,13 +527,13 @@ Client::run(StringSeq& originalArgs) { const int timeout = 3000; // 3s connection timeout. ostringstream os; - os << "IceGridDiscovery/Lookup" << (ssl ? " -s" : ""); + os << "Ice/LocatorFinder" << (ssl ? " -s" : ""); os << ":tcp -h \"" << host << "\" -p " << (port == 0 ? 4061 : port) << " -t " << timeout; os << ":ssl -h \"" << host << "\" -p " << (port == 0 ? 4063 : port) << " -t " << timeout; - LookupPrx lookup = LookupPrx::uncheckedCast(communicator()->stringToProxy(os.str())); + LocatorFinderPrx finder = LocatorFinderPrx::uncheckedCast(communicator()->stringToProxy(os.str())); try { - communicator()->setDefaultLocator(lookup->getLocator()); + communicator()->setDefaultLocator(finder->getLocator()); } catch(const Ice::LocalException&) { |