summaryrefslogtreecommitdiff
path: root/cpp/demo/IceBox/hello/Client.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2003-05-22 18:06:01 +0000
committerMark Spruiell <mes@zeroc.com>2003-05-22 18:06:01 +0000
commitdac8dbec370a76133fb6596bf490f95e31a01dbf (patch)
treecf4a41a538e7e68eaa0512533d5d396796f340bb /cpp/demo/IceBox/hello/Client.cpp
parentTemporary fix (diff)
downloadice-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.cpp23
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')
{