summaryrefslogtreecommitdiff
path: root/apps/JAWS/main.cpp
blob: 13261785c06a694902be1e7110d8e01d78199d10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// main.cpp

#include "ace/Service_Config.h"

 #include "HTTP_Server.h"

ACE_STATIC_SVC_REQUIRE(HTTP_Server)

int
main (int argc, char *argv[])
{
  ACE_Service_Config daemon;

  if (daemon.open (argc, argv) == -1)
    ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "open"), 1);

  // Run forever, performing the configured services until we receive
  // a SIGINT.

  daemon.run_reactor_event_loop ();
  return 0;
}