blob: 534198112542042f73587cef1c7bd772b1e51270 (
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
|
// $Id$
#include "MT_AMH_Server.h"
#include "AMH_Servant.h"
int
ACE_TMAIN(int argc, ACE_TCHAR *argv[])
{
MT_AMH_Server amh_server (argc, argv);
amh_server.try_RT_scheduling();
amh_server.start_orb_and_poa ();
if (amh_server.parse_args () != 1)
{
amh_server.usage ("");
ACE_OS::exit (1);
}
AMH_Servant servant (amh_server.orb ());
if (servant.parse_args (argc, argv) != 1)
{
amh_server.usage ("sleep time unspecified");
ACE_OS::exit (1);
}
amh_server.register_servant (&servant);
amh_server.start_threads ();
amh_server.shutdown_orb_and_poa ();
return 1;
}
|