blob: c60982f2f45bbc863043515d02855d06c2077191 (
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
61
62
63
64
|
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO/orbsvcs/tests/AVStreams
//
// = FILENAME
// server.cpp
//
// = DESCRIPTION
// Test server for the AVStreams demo
//
// = AUTHORS
// Sumedh Mungee <sumedh@cs.wustl.edu>
//
// ============================================================================
#include "orbsvcs/AVStreams_i.h"
/* #include "tao/tao.h" */
#include "tao/tao_util.h"
int
main (int argc, char ** argv)
{
TAO_TRY
{
TAO_ORB_Manager m;
m.init (argc,
argv,
TAO_TRY_ENV);
TAO_CHECK_ENV;
TAO_MMDevice *mmdevice_impl = new TAO_MMDevice;
TAO_CHECK_ENV;
CORBA::String_var s;
s = m.activate (mmdevice_impl,
TAO_TRY_ENV);
TAO_CHECK_ENV;
ACE_DEBUG ((LM_DEBUG,
"\nThe IOR is: <%s>\n",
s.in ()));
m.run (TAO_TRY_ENV);
TAO_CHECK_ENV;
}
TAO_CATCH (CORBA::SystemException, sysex)
{
TAO_TRY_ENV.print_exception ("System Exception");
return -1;
}
TAO_CATCH (CORBA::UserException, userex)
{
TAO_TRY_ENV.print_exception ("User Exception");
return -1;
}
TAO_ENDTRY;
ACE_DEBUG ((LM_DEBUG, "\nServer is terminating"));
return 0;
}
|