diff options
Diffstat (limited to 'cpp/demo/IceDiscovery/hello/Client.cpp')
-rw-r--r-- | cpp/demo/IceDiscovery/hello/Client.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/demo/IceDiscovery/hello/Client.cpp b/cpp/demo/IceDiscovery/hello/Client.cpp index 602a91fb9e8..41b0b7b23f8 100644 --- a/cpp/demo/IceDiscovery/hello/Client.cpp +++ b/cpp/demo/IceDiscovery/hello/Client.cpp @@ -53,7 +53,7 @@ HelloClient::run(int argc, char* argv[]) // // Create a well-known proxy for the `hello' Ice object. A well-known proxy - // only includes the Ice object identity. It's resolved using the Ice locator + // only includes the Ice object identity. It's resolved using the Ice locator // implementation. // HelloPrx twoway = HelloPrx::checkedCast(communicator()->stringToProxy("hello")); @@ -73,7 +73,7 @@ HelloClient::run(int argc, char* argv[]) menu(); - char c; + char c = 'x'; do { try @@ -128,11 +128,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; @@ -152,7 +152,7 @@ HelloClient::run(int argc, char* argv[]) { delay = 0; } - + if(delay == 0) { cout << "server delay is now deactivated" << endl; @@ -165,13 +165,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; |