summaryrefslogtreecommitdiff
path: root/TAO/examples/Simple/chat/client.cpp
blob: 9cf87f0b0f7e2bbccc01222c038b943a23ee94b1 (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
40
// $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[])
{
  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;
}