summaryrefslogtreecommitdiff
path: root/cpp/demo/IceBox/hello
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/IceBox/hello')
-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')
{