diff options
Diffstat (limited to 'ACE/TAO/examples/ior_corbaloc/client.cpp')
-rw-r--r-- | ACE/TAO/examples/ior_corbaloc/client.cpp | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/ACE/TAO/examples/ior_corbaloc/client.cpp b/ACE/TAO/examples/ior_corbaloc/client.cpp new file mode 100644 index 00000000000..828c18a5efe --- /dev/null +++ b/ACE/TAO/examples/ior_corbaloc/client.cpp @@ -0,0 +1,47 @@ +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// TAO/tests/ior_corbaloc/ +// +// = FILENAME +// client.cpp +// +// = DESCRIPTION +// This implements a simple CORBA client for the +// corbaloc: style IOR parser +// +// = AUTHOR +// Priyanka Gontla <pgontla@ece.uci.edu> +// +// ============================================================================ + +#include "ior_corbaloc_client_i.h" + +int ACE_TMAIN (int argc, ACE_TCHAR *argv []) +{ + try + { + IOR_corbaloc_Client_i client; + + int init_result; + init_result = client.init (argc, argv); + + if (init_result == 0) + { + client.run (); + } + return 0; + } + catch (const CORBA::SystemException&) + { + // + } + catch (const CORBA::Exception& ex) + { + ex._tao_print_exception ("client"); + } + + return 0; +} |