diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-11-30 18:38:44 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-11-30 18:38:44 +0000 |
commit | baf57cb9751f20fe3beb7e046b98ffdd1426c9de (patch) | |
tree | db0bb3fa15fb3e885c194d2c9d3372d14ad0649b /cpp/demo/IceBox/hello/Client.cpp | |
parent | adding CheckCertName test for server (diff) | |
download | ice-baf57cb9751f20fe3beb7e046b98ffdd1426c9de.tar.bz2 ice-baf57cb9751f20fe3beb7e046b98ffdd1426c9de.tar.xz ice-baf57cb9751f20fe3beb7e046b98ffdd1426c9de.zip |
Allow hello demo to better test timeouts
Diffstat (limited to 'cpp/demo/IceBox/hello/Client.cpp')
-rw-r--r-- | cpp/demo/IceBox/hello/Client.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/cpp/demo/IceBox/hello/Client.cpp b/cpp/demo/IceBox/hello/Client.cpp index b4578d987e7..17764a6a845 100644 --- a/cpp/demo/IceBox/hello/Client.cpp +++ b/cpp/demo/IceBox/hello/Client.cpp @@ -42,7 +42,6 @@ HelloClient::menu() "d: send greeting as datagram\n" "D: send greeting as batch datagram\n" "f: flush all batch requests\n" - "T: set a timeout\n" "S: switch secure mode on/off\n" "x: exit\n" "?: help\n"; @@ -64,7 +63,6 @@ HelloClient::run(int argc, char* argv[]) HelloPrx batchDatagram = HelloPrx::uncheckedCast(twoway->ice_batchDatagram()); bool secure = false; - int timeout = -1; menu(); @@ -113,30 +111,6 @@ HelloClient::run(int argc, char* argv[]) { communicator()->flushBatchRequests(); } - else if(c == 'T') - { - if(timeout == -1) - { - timeout = 2000; - } - else - { - timeout = -1; - } - - twoway = HelloPrx::uncheckedCast(twoway->ice_timeout(timeout)); - oneway = HelloPrx::uncheckedCast(oneway->ice_timeout(timeout)); - batchOneway = HelloPrx::uncheckedCast(batchOneway->ice_timeout(timeout)); - - if(timeout == -1) - { - cout << "timeout is now switched off" << endl; - } - else - { - cout << "timeout is now set to 2000ms" << endl; - } - } else if(c == 'S') { secure = !secure; |