diff options
author | Marc Laukien <marc@zeroc.com> | 2002-07-29 17:17:00 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-07-29 17:17:00 +0000 |
commit | 8baa5365a1eb65ec4c3cb7d956ef6d147d5d57df (patch) | |
tree | a388849f132073d7a8970b6f8c9e25200e507cc1 /cpp/demo/Ice/hello/Client.cpp | |
parent | Added --ice option to Windows build files. (diff) | |
download | ice-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.cpp | 23 |
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') { |