summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/callback/Client.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2003-05-22 17:18:50 +0000
committerMark Spruiell <mes@zeroc.com>2003-05-22 17:18:50 +0000
commit11f6e3ff963404598c494fb0d2518f9082a5b5fa (patch)
tree673888f25f9feb74f944dcc62adec8c7de9f2a06 /cpp/demo/Ice/callback/Client.cpp
parentFixed missing custom build step for debug build of slicing tests. (diff)
downloadice-11f6e3ff963404598c494fb0d2518f9082a5b5fa.tar.bz2
ice-11f6e3ff963404598c494fb0d2518f9082a5b5fa.tar.xz
ice-11f6e3ff963404598c494fb0d2518f9082a5b5fa.zip
avoid exception for secure datagram attempts
Diffstat (limited to 'cpp/demo/Ice/callback/Client.cpp')
-rw-r--r--cpp/demo/Ice/callback/Client.cpp39
1 files changed, 28 insertions, 11 deletions
diff --git a/cpp/demo/Ice/callback/Client.cpp b/cpp/demo/Ice/callback/Client.cpp
index 8143f28891e..45401b1a861 100644
--- a/cpp/demo/Ice/callback/Client.cpp
+++ b/cpp/demo/Ice/callback/Client.cpp
@@ -126,24 +126,41 @@ CallbackClient::run(int argc, char* argv[])
}
else if(c == 'd')
{
- Context context;
- context["_fwd"] = "d" + secureStr;
- datagram->initiateCallback(datagramR, context);
+ if(secure)
+ {
+ cout << "secure datagrams are not supported" << endl;
+ }
+ else
+ {
+ Context context;
+ context["_fwd"] = "d";
+ datagram->initiateCallback(datagramR, context);
+ }
}
else if(c == 'D')
{
- Context context;
- context["_fwd"] = "D" + secureStr;
- if(!overwrite.empty())
- {
- context["ovrd"] = overwrite;
- }
- batchDatagram->initiateCallback(datagramR, context);
+ if(secure)
+ {
+ cout << "secure datagrams are not supported" << endl;
+ }
+ else
+ {
+ Context context;
+ context["_fwd"] = "D";
+ if(!overwrite.empty())
+ {
+ context["ovrd"] = overwrite;
+ }
+ batchDatagram->initiateCallback(datagramR, context);
+ }
}
else if(c == 'f')
{
batchOneway->ice_flush();
- batchDatagram->ice_flush();
+ if(!secure)
+ {
+ batchDatagram->ice_flush();
+ }
}
else if(c == 'S')
{