3 #include "ace/Get_Opt.h"
4 #include "ace/OS_NS_unistd.h"
11 parse_args (int argc
, ACE_TCHAR
*argv
[])
13 ACE_Get_Opt
get_opts (argc
, argv
, ACE_TEXT(""));
16 while ((c
= get_opts ()) != -1)
21 ACE_ERROR_RETURN ((LM_ERROR
,
27 // Indicates successful parsing of the command line
32 ACE_TMAIN (int argc
, ACE_TCHAR
*argv
[])
36 CORBA::ORB_var orb
= CORBA::ORB_init( argc
, argv
);
38 if (parse_args (argc
, argv
) != 0)
41 CORBA::Object_var obj
= orb
->resolve_initial_references("Test");
42 if (CORBA::is_nil(obj
.in()))
44 ACE_DEBUG ((LM_DEBUG
, "Client could not RIR Test\n"));
47 Test_var test
= Test::_narrow( obj
.in() );
48 if (CORBA::is_nil(test
.in()))
50 ACE_DEBUG ((LM_DEBUG
, "Client could not narrow Test\n"));
54 test
->_stubobj()->reset_profiles();
58 CORBA::Short n
= test
->get_call_count();
60 "DefSync client got call count of %d\n",
66 catch(const CORBA::Exception
& ex
) {
67 ex
._tao_print_exception ("client:");