diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-05-04 15:44:49 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-05-04 15:44:49 +0000 |
commit | 389d3a4fb71243e279b984a68cd5c6837f4f6bd2 (patch) | |
tree | 35358d06e8b683621e366048a2973e327b21821d /cppe/demo/IceE/hello/Client.cpp | |
parent | Backed out endpoint stringification (diff) | |
download | ice-389d3a4fb71243e279b984a68cd5c6837f4f6bd2.tar.bz2 ice-389d3a4fb71243e279b984a68cd5c6837f4f6bd2.tar.xz ice-389d3a4fb71243e279b984a68cd5c6837f4f6bd2.zip |
Removed ^M
Diffstat (limited to 'cppe/demo/IceE/hello/Client.cpp')
-rw-r--r-- | cppe/demo/IceE/hello/Client.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cppe/demo/IceE/hello/Client.cpp b/cppe/demo/IceE/hello/Client.cpp index 9b111b5d7e4..c0a77e54c03 100644 --- a/cppe/demo/IceE/hello/Client.cpp +++ b/cppe/demo/IceE/hello/Client.cpp @@ -9,7 +9,7 @@ #include <IceE/IceE.h> #include <Hello.h> -
+ using namespace std; using namespace Demo; @@ -18,11 +18,11 @@ menu() { printf("usage:\n"); printf("t: send greeting as twoway\n"); - printf("o: send greeting as oneway\n");
-#ifdef ICEE_HAS_BATCH
+ printf("o: send greeting as oneway\n"); +#ifdef ICEE_HAS_BATCH printf("O: send greeting as batch oneway\n"); - printf("f: flush all batch requests\n");
-#endif
+ printf("f: flush all batch requests\n"); +#endif printf("T: set a timeout\n"); printf("P: set a server delay\n"); printf("s: shutdown server\n"); @@ -50,9 +50,9 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) return EXIT_FAILURE; } HelloPrx oneway = HelloPrx::uncheckedCast(twoway->ice_oneway()); -#ifdef ICEE_HAS_BATCH
+#ifdef ICEE_HAS_BATCH HelloPrx batchOneway = HelloPrx::uncheckedCast(twoway->ice_batchOneway()); -#endif
+#endif int timeout = -1; int delay = 0; @@ -78,7 +78,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { oneway->sayHello(delay); } -#ifdef ICEE_HAS_BATCH
+#ifdef ICEE_HAS_BATCH else if(c == 'O') { batchOneway->sayHello(delay); @@ -87,7 +87,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { communicator->flushBatchRequests(); } -#endif
+#endif else if(c == 'T') { if(timeout == -1) @@ -101,7 +101,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) twoway = HelloPrx::uncheckedCast(twoway->ice_timeout(timeout)); oneway = HelloPrx::uncheckedCast(oneway->ice_timeout(timeout)); -#ifdef ICEE_HAS_BATCH
+#ifdef ICEE_HAS_BATCH batchOneway = HelloPrx::uncheckedCast(batchOneway->ice_timeout(timeout)); #endif if(timeout == -1) |