summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/hello/Client.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-07-29 17:17:00 +0000
committerMarc Laukien <marc@zeroc.com>2002-07-29 17:17:00 +0000
commit8baa5365a1eb65ec4c3cb7d956ef6d147d5d57df (patch)
treea388849f132073d7a8970b6f8c9e25200e507cc1 /cpp/demo/Ice/hello/Client.cpp
parentAdded --ice option to Windows build files. (diff)
downloadice-8baa5365a1eb65ec4c3cb7d956ef6d147d5d57df.tar.bz2
ice-8baa5365a1eb65ec4c3cb7d956ef6d147d5d57df.tar.xz
ice-8baa5365a1eb65ec4c3cb7d956ef6d147d5d57df.zip
fixed cyclic dependency
Diffstat (limited to 'cpp/demo/Ice/hello/Client.cpp')
-rw-r--r--cpp/demo/Ice/hello/Client.cpp23
1 files changed, 20 insertions, 3 deletions
diff --git a/cpp/demo/Ice/hello/Client.cpp b/cpp/demo/Ice/hello/Client.cpp
index f0706496c83..66eb660fbc3 100644
--- a/cpp/demo/Ice/hello/Client.cpp
+++ b/cpp/demo/Ice/hello/Client.cpp
@@ -81,16 +81,33 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
}
else if(c == 'd')
{
- datagram->sayHello();
+ if(secure)
+ {
+ cout << "secure datagrams are not supported" << endl;
+ }
+ else
+ {
+ datagram->sayHello();
+ }
}
else if(c == 'D')
{
- batchDatagram->sayHello();
+ if(secure)
+ {
+ cout << "secure datagrams are not supported" << endl;
+ }
+ else
+ {
+ batchDatagram->sayHello();
+ }
}
else if(c == 'f')
{
batchOneway->ice_flush();
- batchDatagram->ice_flush();
+ if(!secure)
+ {
+ batchDatagram->ice_flush();
+ }
}
else if(c == 'T')
{