diff options
Diffstat (limited to 'cpp/demo/IceBox')
-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') { |