diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-09-13 05:52:11 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-09-13 05:52:11 +0000 |
commit | 76493de46a5fa51ef80cb122eed5793a2bf067d3 (patch) | |
tree | e4b41e2d2efc644c8377eb97a7acdadd0efd244b /cpp/demo/Ice/minimal/Client.cpp | |
parent | simplified minimal demo. (diff) | |
download | ice-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.cpp | 34 |
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; } |