summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/hello/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Ice/hello/Client.cpp')
-rw-r--r--cpp/demo/Ice/hello/Client.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/demo/Ice/hello/Client.cpp b/cpp/demo/Ice/hello/Client.cpp
index d8f271cbee4..d325ab72627 100644
--- a/cpp/demo/Ice/hello/Client.cpp
+++ b/cpp/demo/Ice/hello/Client.cpp
@@ -69,7 +69,7 @@ HelloClient::run(int argc, char* argv[])
menu();
- char c;
+ char c = 'x';
do
{
try
@@ -124,11 +124,11 @@ HelloClient::run(int argc, char* argv[])
{
timeout = -1;
}
-
+
twoway = twoway->ice_invocationTimeout(timeout);
oneway = oneway->ice_invocationTimeout(timeout);
batchOneway = batchOneway->ice_invocationTimeout(timeout);
-
+
if(timeout == -1)
{
cout << "timeout is now switched off" << endl;
@@ -148,7 +148,7 @@ HelloClient::run(int argc, char* argv[])
{
delay = 0;
}
-
+
if(delay == 0)
{
cout << "server delay is now deactivated" << endl;
@@ -161,13 +161,13 @@ HelloClient::run(int argc, char* argv[])
else if(c == 'S')
{
secure = !secure;
-
+
twoway = twoway->ice_secure(secure);
oneway = oneway->ice_secure(secure);
batchOneway = batchOneway->ice_secure(secure);
datagram = datagram->ice_secure(secure);
batchDatagram = batchDatagram->ice_secure(secure);
-
+
if(secure)
{
cout << "secure mode is now on" << endl;