summaryrefslogtreecommitdiff
path: root/cs/demo/IceBox/hello/Client.cs
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-11-30 18:38:44 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-11-30 18:38:44 +0000
commitbaf57cb9751f20fe3beb7e046b98ffdd1426c9de (patch)
treedb0bb3fa15fb3e885c194d2c9d3372d14ad0649b /cs/demo/IceBox/hello/Client.cs
parentadding CheckCertName test for server (diff)
downloadice-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.cs30
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;