summaryrefslogtreecommitdiff
path: root/cppe/demo/IceE/hello/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/demo/IceE/hello/Client.cpp')
-rw-r--r--cppe/demo/IceE/hello/Client.cpp20
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)