diff options
author | Michi Henning <michi@zeroc.com> | 2005-03-01 03:28:43 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2005-03-01 03:28:43 +0000 |
commit | 4aca2ce3a4734b6baaf6f4f966bff53c972d0e93 (patch) | |
tree | f65b2860d7f376d619fd6acf76fcc5919de088aa /cs/demo/Ice/throughput/Client.cs | |
parent | Ported new C++ throughput demo to VB. (diff) | |
download | ice-4aca2ce3a4734b6baaf6f4f966bff53c972d0e93.tar.bz2 ice-4aca2ce3a4734b6baaf6f4f966bff53c972d0e93.tar.xz ice-4aca2ce3a4734b6baaf6f4f966bff53c972d0e93.zip |
Minor fix.
Diffstat (limited to 'cs/demo/Ice/throughput/Client.cs')
-rwxr-xr-x | cs/demo/Ice/throughput/Client.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cs/demo/Ice/throughput/Client.cs b/cs/demo/Ice/throughput/Client.cs index e013317ba37..8913c357a3b 100755 --- a/cs/demo/Ice/throughput/Client.cs +++ b/cs/demo/Ice/throughput/Client.cs @@ -20,6 +20,7 @@ public class Client + "1: sequence of bytes (default)\n" + "2: sequence of strings (\"hello\")\n" + "3: sequence structs with a string (\"hello\") and a double\n" + + "\n" + "select test to run:\n" + "t: Send sequence as twoway\n" + "o: Send sequence as oneway\n" @@ -85,9 +86,13 @@ public class Client Console.Write("==> "); Console.Out.Flush(); line = Console.In.ReadLine(); + if(line == null) + { + break; + } long tmsec = System.DateTime.Now.Ticks / 10000; - const int repetitions = 1000; + const int repetitions = 100; if(line.Equals("1") || line.Equals("2") || line.Equals("3")) { @@ -120,6 +125,10 @@ public class Client switch (c) { case 't': + { + Console.Write("sending"); + break; + } case 'o': { Console.Write("sending"); |