diff options
Diffstat (limited to 'TAO/examples/Simple/chat/client.cpp')
-rw-r--r-- | TAO/examples/Simple/chat/client.cpp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/TAO/examples/Simple/chat/client.cpp b/TAO/examples/Simple/chat/client.cpp new file mode 100644 index 00000000000..7caf6e595a0 --- /dev/null +++ b/TAO/examples/Simple/chat/client.cpp @@ -0,0 +1,43 @@ +// $Id$ + +// =========================================================== +// +// = LIBRARY +// TAO/tests/Simple/chat +// +// = FILENAME +// client.cpp +// +// = DESCRIPTION +// The Chat client program entry point. +// +// = AUTHOR +// Pradeep Gore <pradeep@cs.wustl.edu> +// +// =========================================================== + +#include "Client_i.h" + +int +main (int argc, char *argv[]) +{ + ACE_TRY_NEW_ENV + { + Client_i client_i; + + if (client_i.init (argc, argv) == -1 + || client_i.run () == -1) + return -1; + + ACE_TRY_CHECK; + } + ACE_CATCHANY + { + ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, + "client::main\t\n"); + return -1; + } + ACE_ENDTRY; + + return 0; +} |