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 /cs/demo/IceBox/hello/Client.cs | |
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 'cs/demo/IceBox/hello/Client.cs')
-rw-r--r-- | cs/demo/IceBox/hello/Client.cs | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/cs/demo/IceBox/hello/Client.cs b/cs/demo/IceBox/hello/Client.cs index da85199dc10..b60473701ab 100644 --- a/cs/demo/IceBox/hello/Client.cs +++ b/cs/demo/IceBox/hello/Client.cs @@ -21,12 +21,11 @@ public class Client : Ice.Application "O: send greeting as batch oneway\n" + "d: send greeting as datagram\n" + "D: send greeting as batch datagram\n" + - "f: flush all batch requests\n" + - "T: set a timeout"); + "f: flush all batch requests\n"); if(_haveSSL) { Console.Write("\nS: switch secure mode on/off"); - } + } Console.WriteLine( "\nx: exit\n" + "?: help\n"); @@ -56,7 +55,6 @@ public class Client : Ice.Application HelloPrx batchDatagram = HelloPrxHelper.uncheckedCast(twoway.ice_batchDatagram()); bool secure = false; - int timeout = -1; menu(); @@ -110,30 +108,6 @@ public class Client : 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) - { - Console.WriteLine("timeout is now switched off"); - } - else - { - Console.WriteLine("timeout is now set to 2000ms"); - } - } else if(_haveSSL && line.Equals("S")) { secure = !secure; |