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 /java/demo/IceBox/hello/Client.java | |
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 'java/demo/IceBox/hello/Client.java')
-rw-r--r-- | java/demo/IceBox/hello/Client.java | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/java/demo/IceBox/hello/Client.java b/java/demo/IceBox/hello/Client.java index da9b372364a..cfa4701dd7c 100644 --- a/java/demo/IceBox/hello/Client.java +++ b/java/demo/IceBox/hello/Client.java @@ -22,7 +22,6 @@ public class Client extends Ice.Application "d: send greeting as datagram\n" + "D: send greeting as batch datagram\n" + "f: flush all batch requests\n" + - "T: set a timeout\n" + "x: exit\n" + "?: help\n"); } @@ -42,8 +41,6 @@ public class Client extends Ice.Application HelloPrx datagram = HelloPrxHelper.uncheckedCast(twoway.ice_datagram()); HelloPrx batchDatagram = HelloPrxHelper.uncheckedCast(twoway.ice_batchDatagram()); - int timeout = -1; - menu(); java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(System.in)); @@ -84,30 +81,6 @@ public class Client extends Ice.Application { communicator().flushBatchRequests(); } - else if(line.equals("T")) - { - if(timeout == -1) - { - timeout = 2000; - } - else - { - timeout = -1; - } - - twoway = HelloPrxHelper.uncheckedCast(twoway.ice_timeout(timeout)); - oneway = HelloPrxHelper.uncheckedCast(oneway.ice_timeout(timeout)); - batchOneway = HelloPrxHelper.uncheckedCast(batchOneway.ice_timeout(timeout)); - - if(timeout == -1) - { - System.out.println("timeout is now switched off"); - } - else - { - System.out.println("timeout is now set to 2000ms"); - } - } else if(line.equals("x")) { // Nothing to do |