summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/minimal/Client.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-09-13 05:52:11 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-09-13 05:52:11 +0000
commit76493de46a5fa51ef80cb122eed5793a2bf067d3 (patch)
treee4b41e2d2efc644c8377eb97a7acdadd0efd244b /cpp/demo/Ice/minimal/Client.cpp
parentsimplified minimal demo. (diff)
downloadice-76493de46a5fa51ef80cb122eed5793a2bf067d3.tar.bz2
ice-76493de46a5fa51ef80cb122eed5793a2bf067d3.tar.xz
ice-76493de46a5fa51ef80cb122eed5793a2bf067d3.zip
simplified minimal demo.
Diffstat (limited to 'cpp/demo/Ice/minimal/Client.cpp')
-rw-r--r--cpp/demo/Ice/minimal/Client.cpp34
1 files changed, 1 insertions, 33 deletions
diff --git a/cpp/demo/Ice/minimal/Client.cpp b/cpp/demo/Ice/minimal/Client.cpp
index 829704ee003..19b4f372040 100644
--- a/cpp/demo/Ice/minimal/Client.cpp
+++ b/cpp/demo/Ice/minimal/Client.cpp
@@ -33,39 +33,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
return EXIT_FAILURE;
}
- menu();
-
- char c;
- do
- {
- try
- {
- cout << "==> ";
- cin >> c;
- if(c == 'h')
- {
- hello->sayHello();
- }
- else if(c == 'x')
- {
- // Nothing to do
- }
- else if(c == '?')
- {
- menu();
- }
- else
- {
- cout << "unknown command `" << c << "'" << endl;
- menu();
- }
- }
- catch(const Ice::Exception& ex)
- {
- cerr << ex << endl;
- }
- }
- while(cin.good() && c != 'x');
+ hello->sayHello();
return EXIT_SUCCESS;
}