summaryrefslogtreecommitdiff
path: root/cpp/test/Glacier2/ssl/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Glacier2/ssl/Client.cpp')
-rwxr-xr-xcpp/test/Glacier2/ssl/Client.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/cpp/test/Glacier2/ssl/Client.cpp b/cpp/test/Glacier2/ssl/Client.cpp
index 0daff0085b4..3c3e2f24b24 100755
--- a/cpp/test/Glacier2/ssl/Client.cpp
+++ b/cpp/test/Glacier2/ssl/Client.cpp
@@ -42,7 +42,7 @@ int
CallbackClient::run(int argc, char* argv[])
{
Glacier2::RouterPrx router = Glacier2::RouterPrx::uncheckedCast(
- communicator()->stringToProxy("Glacier2/router:tcp -h 127.0.0.1 -p 12347 -t 10000"));
+ communicator()->stringToProxy("Glacier2/router:tcp -h 127.0.0.1 -p 12347 -t 10000"));
communicator()->setDefaultRouter(router);
//
@@ -51,24 +51,24 @@ CallbackClient::run(int argc, char* argv[])
cout << "creating non-ssl session with tcp connection... ";
try
{
- Glacier2::SessionPrx session = router->createSession("nossl", "");
- session->ice_ping();
- router->destroySession();
+ Glacier2::SessionPrx session = router->createSession("nossl", "");
+ session->ice_ping();
+ router->destroySession();
}
catch(const Ice::ConnectionLostException&)
{
}
catch(const Glacier2::PermissionDeniedException&)
{
- test(false);
+ test(false);
}
cout << "ok" << endl;
cout << "creating ssl session with tcp connection... ";
try
{
- Glacier2::SessionPrx session = router->createSessionFromSecureConnection();
- test(false);
+ Glacier2::SessionPrx session = router->createSessionFromSecureConnection();
+ test(false);
}
catch(const Glacier2::PermissionDeniedException&)
{
@@ -81,7 +81,7 @@ CallbackClient::run(int argc, char* argv[])
//
communicator()->setDefaultRouter(Glacier2::RouterPrx());
router = Glacier2::RouterPrx::uncheckedCast(
- communicator()->stringToProxy("Glacier2/router:ssl -h 127.0.0.1 -p 12348 -t 10000"));
+ communicator()->stringToProxy("Glacier2/router:ssl -h 127.0.0.1 -p 12348 -t 10000"));
communicator()->setDefaultRouter(router);
//
@@ -90,38 +90,38 @@ CallbackClient::run(int argc, char* argv[])
cout << "creating non-ssl session with ssl connection... ";
try
{
- Glacier2::SessionPrx session = router->createSession("nossl", "");
- session->ice_ping();
- router->destroySession();
+ Glacier2::SessionPrx session = router->createSession("nossl", "");
+ session->ice_ping();
+ router->destroySession();
}
catch(const Ice::ConnectionLostException&)
{
}
catch(const Glacier2::PermissionDeniedException&)
{
- test(false);
+ test(false);
}
cout << "ok" << endl;
cout << "creating ssl session with ssl connection... ";
try
{
- Glacier2::SessionPrx session = router->createSessionFromSecureConnection();
- session->ice_ping();
- router->destroySession();
+ Glacier2::SessionPrx session = router->createSessionFromSecureConnection();
+ session->ice_ping();
+ router->destroySession();
}
catch(const Ice::ConnectionLostException&)
{
}
catch(const Glacier2::PermissionDeniedException&)
{
- test(false);
+ test(false);
}
cout << "ok" << endl;
communicator()->setDefaultRouter(0);
Glacier2::AdminPrx admin = Glacier2::AdminPrx::checkedCast(
- communicator()->stringToProxy("Glacier2/admin:tcp -h 127.0.0.1 -p 12349 -t 10000"));
+ communicator()->stringToProxy("Glacier2/admin:tcp -h 127.0.0.1 -p 12349 -t 10000"));
admin->shutdown();
return EXIT_SUCCESS;