blob: 50291c468180c37c5f127b52a5871b98e6560f36 (
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
57
58
59
60
|
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO/performance-tests/Demux
//
// = FILENAME
// server.cpp
//
// Server-side driver program
//
// = AUTHOR
//
// Aniruddha Gokhale
//
// ============================================================================
#include "demux_test_server.h"
ACE_RCSID(CodeGen, server, "$Id$")
int main (int argc, char *argv [])
{
// Set TAO_debug_level to 0 to ensure silent running unless
// debugging is explicitly invoked
TAO_debug_level = 0;
Demux_Test_Server demux_test_server;
TAO_TRY
{
if (demux_test_server.init (argc, argv, TAO_TRY_ENV) == -1)
return -1;
else
{
TAO_CHECK_ENV;
demux_test_server.run (TAO_TRY_ENV);
TAO_CHECK_ENV;
}
}
TAO_CATCH (CORBA::SystemException, sysex)
{
ACE_UNUSED_ARG (sysex);
TAO_TRY_ENV.print_exception ("System Exception");
return -1;
}
TAO_CATCH (CORBA::UserException, userex)
{
ACE_UNUSED_ARG (userex);
TAO_TRY_ENV.print_exception ("User Exception");
return -1;
}
TAO_ENDTRY;
return 0;
}
|