summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/hello/Client.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2007-05-04 05:24:44 +0000
committerMichi Henning <michi@zeroc.com>2007-05-04 05:24:44 +0000
commitdf88a798fff56373464751cb95f0cb26e585ebc1 (patch)
tree99a83f212da9ca161a6ec408c895486bf71486d7 /cpp/demo/Ice/hello/Client.cpp
parenthttp://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=2181 (diff)
downloadice-df88a798fff56373464751cb95f0cb26e585ebc1.tar.bz2
ice-df88a798fff56373464751cb95f0cb26e585ebc1.tar.xz
ice-df88a798fff56373464751cb95f0cb26e585ebc1.zip
Bug 1022.
Diffstat (limited to 'cpp/demo/Ice/hello/Client.cpp')
-rw-r--r--cpp/demo/Ice/hello/Client.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/cpp/demo/Ice/hello/Client.cpp b/cpp/demo/Ice/hello/Client.cpp
index dbf877722d9..b87421f37c4 100644
--- a/cpp/demo/Ice/hello/Client.cpp
+++ b/cpp/demo/Ice/hello/Client.cpp
@@ -66,7 +66,17 @@ HelloClient::run(int argc, char* argv[])
{
cout << "==> ";
cin >> c;
- if(c == 't')
+ if(c == 'p')
+ {
+ cout << communicator()->proxyToString(twoway) << endl;
+ cout << twoway->proxy(twoway) << endl;
+ }
+ else if(c == 'e')
+ {
+ HelloPrx h = twoway->echo(twoway);
+ cout << communicator()->proxyToString(h) << endl;
+ }
+ else if(c == 't')
{
twoway->sayHello(delay);
}