diff options
author | mk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-31 13:19:49 +0000 |
---|---|---|
committer | mk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-31 13:19:49 +0000 |
commit | 0787e2b979bf26654b71bb68e1b09c06d86b37bc (patch) | |
tree | 60d55ec39a86893b21eada5c9ae221fa57e4eeab /TAO/tests/AMI/server.cpp | |
parent | eb98d75c4dae8f5e71b387bffc0a9da0e0c3f2ab (diff) | |
download | ATCD-0787e2b979bf26654b71bb68e1b09c06d86b37bc.tar.gz |
ChangeLogTag: Tue Aug 31 8:15:00 1999 Michael Kircher <Michael.Kircher@mchp.siemens.de>
Diffstat (limited to 'TAO/tests/AMI/server.cpp')
-rw-r--r-- | TAO/tests/AMI/server.cpp | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/TAO/tests/AMI/server.cpp b/TAO/tests/AMI/server.cpp index cb7ee7c7860..397d1f70232 100644 --- a/TAO/tests/AMI/server.cpp +++ b/TAO/tests/AMI/server.cpp @@ -1,16 +1,33 @@ // $Id$ +// ============================================================================ +// +// = LIBRARY +// TAO/tests/AMI +// +// = FILENAME +// server.cpp +// +// = DESCRIPTION +// Implementation of the server. +// +// = AUTHOR +// Alexander Babu Arulanthu <alex@cs.wustl.edu>, +// Michael Kircher <Michael.Kircher@mchp.siemens.de> +// +// ============================================================================ + #include "ace/Get_Opt.h" -#include "test_i.h" +#include "ami_test_i.h" -ACE_RCSID(MT_Client, server, "$Id$") +ACE_RCSID(AMI, server, "$Id$") const char *ior_output_file = 0; int parse_args (int argc, char *argv[]) { - ACE_Get_Opt get_opts (argc, argv, "o:"); + ACE_Get_Opt get_opts (argc, argv, "o:d"); int c; while ((c = get_opts ()) != -1) @@ -19,6 +36,9 @@ parse_args (int argc, char *argv[]) case 'o': ior_output_file = get_opts.optarg; break; + case 'd': + TAO_debug_level++; + break; case '?': default: ACE_ERROR_RETURN ((LM_ERROR, @@ -59,14 +79,14 @@ main (int argc, char *argv[]) if (parse_args (argc, argv) != 0) return 1; - Simple_Server_i server_impl (orb.in ()); + AMI_Test_i ami_test_i (orb.in ()); - A::Simple_Server_var server = - server_impl._this (ACE_TRY_ENV); + A::AMI_Test_var ami_test_var = + ami_test_i._this (ACE_TRY_ENV); ACE_TRY_CHECK; CORBA::String_var ior = - orb->object_to_string (server.in (), ACE_TRY_ENV); + orb->object_to_string (ami_test_var.in (), ACE_TRY_ENV); ACE_TRY_CHECK; ACE_DEBUG ((LM_DEBUG, "Activated as <%s>\n", ior.in ())); |