summaryrefslogtreecommitdiff
path: root/TAO/examples/Simple/chat/client.cpp
blob: fe85eeff2f314a721fcf8eb8c7bfdb375213c8fb (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

//=============================================================================
/**
 *  @file    client.cpp
 *
 *  The Chat client program entry point.
 *
 *
 *  @author Pradeep Gore <pradeep@cs.wustl.edu>
 */
//=============================================================================


#include "Client_i.h"

int
ACE_TMAIN(int argc, ACE_TCHAR *argv[])
{
  try
    {
      Client_i client_i;

      if (client_i.init (argc, argv) == -1 || client_i.run () == -1)
        return -1;
    }
  catch (const CORBA::Exception& ex)
    {
      ex._tao_print_exception ("client::main\t\n");
      return -1;
    }

  return 0;
}