diff options
author | Mark Spruiell <mes@zeroc.com> | 2003-05-22 18:06:01 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2003-05-22 18:06:01 +0000 |
commit | dac8dbec370a76133fb6596bf490f95e31a01dbf (patch) | |
tree | cf4a41a538e7e68eaa0512533d5d396796f340bb /cpp/demo/IceBox/hello/Client.cpp | |
parent | Temporary fix (diff) | |
download | ice-dac8dbec370a76133fb6596bf490f95e31a01dbf.tar.bz2 ice-dac8dbec370a76133fb6596bf490f95e31a01dbf.tar.xz ice-dac8dbec370a76133fb6596bf490f95e31a01dbf.zip |
prevent secure datagram attempts
Diffstat (limited to 'cpp/demo/IceBox/hello/Client.cpp')
-rw-r--r-- | cpp/demo/IceBox/hello/Client.cpp | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/cpp/demo/IceBox/hello/Client.cpp b/cpp/demo/IceBox/hello/Client.cpp index 6713e547060..95867585949 100644 --- a/cpp/demo/IceBox/hello/Client.cpp +++ b/cpp/demo/IceBox/hello/Client.cpp @@ -84,16 +84,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') { |