summaryrefslogtreecommitdiff
path: root/TAO/examples/Simple/time-date/server.cpp
blob: ca745af355821be698eaad12acc8a4f0139f50a4 (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
// $Id$

// ============================================================================
//
// = LIBRARY
//    examples/DLL_ORB/Misc
//
// = FILENAME
//    main.cpp
//
// = DESCRIPTION
//   This directory contains an example that illustrates how the ACE
//   Service Configurator can dynamically configure an ORB from a
//   svc.config file.  
//
// = AUTHOR
//    Doug Schmidt <schmidt@cs.wustl.edu>
//
// ============================================================================

#include "ace/Service_Config.h"

ACE_RCSID(Misc, main, "$Id$")

int
main (int argc, ASYS_TCHAR *argv[])
{
  if (ACE_Service_Config::open (argc, argv) == -1 && errno != ENOENT)
    ACE_ERROR_RETURN ((LM_ERROR,
                       ASYS_TEXT ("%p\n"),
                       ASYS_TEXT ("open")),
                      1);

  // Run forever, performing the configured services until we
  // shutdown.

  ACE_Reactor::run_event_loop ();
  return 0;
}