From dac8dbec370a76133fb6596bf490f95e31a01dbf Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Thu, 22 May 2003 18:06:01 +0000 Subject: prevent secure datagram attempts --- cpp/demo/IceBox/hello/Client.cpp | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'cpp/demo/IceBox/hello/Client.cpp') 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') { -- cgit v1.2.3