blob: 65cb736e0c73f22584979567814305b7872cc1a6 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
// $Id$
// ===========================================================
//
//
// = LIBRARY
// TAO/tests/Simple/chat
//
// = FILENAME
// server.cpp
//
// = DESCRIPTION
// Entry point for the chat server.
//
// = AUTHOR
// Pradeep Gore <pradeep@cs.wustl.edu>
//
// ===========================================================
#include "Server_i.h"
int
main (int argc, char *argv[])
{
CORBA::Environment TAO_TRY_ENV;
TAO_TRY
{
Server_i server_i;
if (server_i.init (argc, argv, TAO_TRY_ENV) != 0)
{
TAO_CHECK_ENV;
ACE_ERROR_RETURN ((LM_ERROR,
"\n error in init.\n"),
1);
}
if (server_i.run (TAO_TRY_ENV) != 0)
{
TAO_CHECK_ENV;
ACE_ERROR_RETURN ((LM_ERROR,
"\n error in run.\n"),
1);
}
}
TAO_CATCHANY
{
TAO_TRY_ENV.print_exception ("server::main\t\n");
return 1;
}
TAO_ENDTRY;
return 0;
}
|