summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/nested/Client.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-02-01 17:09:49 +0000
committerBernard Normier <bernard@zeroc.com>2007-02-01 17:09:49 +0000
commitabada90e3f84dc703b8ddc9efcbed8a946fadead (patch)
tree2c6f9dccd510ea97cb927a7bd635422efaae547a /cpp/demo/Ice/nested/Client.cpp
parentremoving trace message (diff)
downloadice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.bz2
ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.xz
ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.zip
Expanded tabs into spaces
Diffstat (limited to 'cpp/demo/Ice/nested/Client.cpp')
-rw-r--r--cpp/demo/Ice/nested/Client.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/cpp/demo/Ice/nested/Client.cpp b/cpp/demo/Ice/nested/Client.cpp
index 12235c1d0ea..30c6edc42f2 100644
--- a/cpp/demo/Ice/nested/Client.cpp
+++ b/cpp/demo/Ice/nested/Client.cpp
@@ -41,8 +41,8 @@ NestedClient::run(int argc, char* argv[])
NestedPrx nested = NestedPrx::checkedCast(communicator()->propertyToProxy("Nested.Client.NestedServer"));
if(!nested)
{
- cerr << appName() << ": invalid proxy" << endl;
- return EXIT_FAILURE;
+ cerr << appName() << ": invalid proxy" << endl;
+ return EXIT_FAILURE;
}
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Nested.Client");
@@ -51,28 +51,28 @@ NestedClient::run(int argc, char* argv[])
adapter->activate();
cout << "Note: The maximum nesting level is sz * 2, with sz being\n"
- << "the maximum number of threads in the server thread pool. if\n"
- << "you specify a value higher than that, the application will\n"
- << "block or timeout.\n"
- << endl;
+ << "the maximum number of threads in the server thread pool. if\n"
+ << "you specify a value higher than that, the application will\n"
+ << "block or timeout.\n"
+ << endl;
string s;
do
{
- try
- {
- cout << "enter nesting level or 'x' for exit: ";
- cin >> s;
- int level = atoi(s.c_str());
- if(level > 0)
- {
- nested->nestedCall(level, self);
- }
- }
- catch(const Ice::Exception& ex)
- {
- cerr << ex << endl;
- }
+ try
+ {
+ cout << "enter nesting level or 'x' for exit: ";
+ cin >> s;
+ int level = atoi(s.c_str());
+ if(level > 0)
+ {
+ nested->nestedCall(level, self);
+ }
+ }
+ catch(const Ice::Exception& ex)
+ {
+ cerr << ex << endl;
+ }
}
while(cin.good() && s != "x");
@@ -89,15 +89,15 @@ NestedClient::interruptCallback(int)
*
try
{
- communicator()->destroy();
+ communicator()->destroy();
}
catch(const IceUtil::Exception& ex)
{
- cerr << appName() << ": " << ex << endl;
+ cerr << appName() << ": " << ex << endl;
}
catch(...)
{
- cerr << appName() << ": unknown exception" << endl;
+ cerr << appName() << ": unknown exception" << endl;
}
*/
exit(EXIT_SUCCESS);