summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Client.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-10-02 11:48:54 -0400
committerBernard Normier <bernard@zeroc.com>2007-10-02 11:48:54 -0400
commit2cb718a85b417fb6a58be04fe1f102f733b8d39c (patch)
tree26549f37c7307037f0bf8bf0d42b6c1da7eaeb4b /cpp/src/IceGrid/Client.cpp
parentFixed bug 2503 (diff)
downloadice-2cb718a85b417fb6a58be04fe1f102f733b8d39c.tar.bz2
ice-2cb718a85b417fb6a58be04fe1f102f733b8d39c.tar.xz
ice-2cb718a85b417fb6a58be04fe1f102f733b8d39c.zip
Squashed commit of the following:
commit 0ba15449d9dd44933d82cb643efded9dee12c5af Author: Bernard Normier <bernard@zeroc.com> Date: Tue Oct 2 11:48:07 2007 -0400 Documented updates commit cf49ee5a73bc62d1b6814dec5d9f288f0f45901d Author: Bernard Normier <bernard@zeroc.com> Date: Tue Oct 2 11:38:25 2007 -0400 Optimized implementation of various Prx ice_xxx functions/methods commit 706209d6d1a4e894fecf19dd1c0c3b6f12ef5842 Author: Bernard Normier <bernard@zeroc.com> Date: Fri Sep 28 14:34:02 2007 -0400 Updated code-generation to "overwrite" various Ice::ObjectPrx ice_ operations.
Diffstat (limited to 'cpp/src/IceGrid/Client.cpp')
-rw-r--r--cpp/src/IceGrid/Client.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/Client.cpp b/cpp/src/IceGrid/Client.cpp
index 3e67844adc0..c814f9cb0cb 100644
--- a/cpp/src/IceGrid/Client.cpp
+++ b/cpp/src/IceGrid/Client.cpp
@@ -364,7 +364,9 @@ Client::run(int argc, char* argv[])
// Use SSL if available.
try
{
- router = Glacier2::RouterPrx::checkedCast(router->ice_secure(true));
+ Glacier2::RouterPrx secureRouter = router->ice_secure(true);
+ secureRouter->ice_ping();
+ router = secureRouter;
}
catch(const Ice::NoEndpointException&)
{
@@ -484,7 +486,9 @@ Client::run(int argc, char* argv[])
// Use SSL if available.
try
{
- registry = RegistryPrx::checkedCast(registry->ice_secure(true));
+ RegistryPrx secureRegistry = registry->ice_secure(true);
+ secureRegistry->ice_ping();
+ registry = secureRegistry;
}
catch(const Ice::NoEndpointException&)
{