diff options
author | Marc Laukien <marc@zeroc.com> | 2001-08-16 11:26:24 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-08-16 11:26:24 +0000 |
commit | 73e01bb42f2f75a8dbea664a664e1a19e74c28c3 (patch) | |
tree | 401359fe34493546e28880e82e6fd4629cde8eb7 /cpp/test/IcePack/simple/Client.cpp | |
parent | fixes (diff) | |
download | ice-73e01bb42f2f75a8dbea664a664e1a19e74c28c3.tar.bz2 ice-73e01bb42f2f75a8dbea664a664e1a19e74c28c3.tar.xz ice-73e01bb42f2f75a8dbea664a664e1a19e74c28c3.zip |
IcePack/simple
Diffstat (limited to 'cpp/test/IcePack/simple/Client.cpp')
-rw-r--r-- | cpp/test/IcePack/simple/Client.cpp | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/cpp/test/IcePack/simple/Client.cpp b/cpp/test/IcePack/simple/Client.cpp new file mode 100644 index 00000000000..6a73321427d --- /dev/null +++ b/cpp/test/IcePack/simple/Client.cpp @@ -0,0 +1,57 @@ +// ********************************************************************** +// +// Copyright (c) 2001 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#include <Ice/Ice.h> +#include <TestCommon.h> +#include <Test.h> + +using namespace std; + +int +run(int argc, char* argv[], Ice::CommunicatorPtr communicator) +{ + TestPrx allTests(Ice::CommunicatorPtr); + TestPrx test = allTests(communicator); + test->shutdown(); + return EXIT_SUCCESS; +} + +int +main(int argc, char* argv[]) +{ + int status; + Ice::CommunicatorPtr communicator; + + try + { + communicator = Ice::initialize(argc, argv); + status = run(argc, argv, communicator); + } + catch(const Ice::LocalException& ex) + { + cerr << ex << endl; + status = EXIT_FAILURE; + } + + if (communicator) + { + try + { + communicator->destroy(); + } + catch(const Ice::LocalException& ex) + { + cerr << ex << endl; + status = EXIT_FAILURE; + } + } + + return status; +} |