summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/Log/Basic/main.cpp
blob: 3b5098b43ad7a4adc5612ae768edef03bae158c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "TLS_Client.h"
#include "ace/OS_main.h"

ACE_RCSID (Basic,
           main,
           "$Id$")


int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
  TLS_Client client; // Telecom Log Service Client

  ACE_TRY_NEW_ENV
    {
      client.init (argc, argv
                   ACE_ENV_ARG_PARAMETER); //Init the Client
      ACE_TRY_CHECK;

      client.run_tests (ACE_ENV_SINGLE_ARG_PARAMETER); //Init the Client

      ACE_TRY_CHECK;
    }
  ACE_CATCH (CORBA::UserException, ue)
    {
      ACE_PRINT_EXCEPTION (ue,
                           "TLS_Client user error: ");
      return 1;
    }
  ACE_CATCH (CORBA::SystemException, se)
    {
      ACE_PRINT_EXCEPTION (se,
                           "TLS_Client system error: ");
      return 1;
    }
  ACE_ENDTRY;

  return 0;
}