summaryrefslogtreecommitdiff
path: root/ACE/apps/JAWS3/jaws3/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/apps/JAWS3/jaws3/main.cpp')
-rw-r--r--ACE/apps/JAWS3/jaws3/main.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/ACE/apps/JAWS3/jaws3/main.cpp b/ACE/apps/JAWS3/jaws3/main.cpp
new file mode 100644
index 00000000000..4b5705abc2f
--- /dev/null
+++ b/ACE/apps/JAWS3/jaws3/main.cpp
@@ -0,0 +1,33 @@
+// $Id$
+#include "ace/Log_Msg.h"
+#include "ace/Reactor.h"
+#include "ace/Select_Reactor.h"
+#include "ace/Service_Config.h"
+#include "ace/Thread_Manager.h"
+
+#include "jaws3/Event_Dispatcher.h"
+#include "jaws3/Signal_Task.h"
+
+int
+main (int argc, ACE_TCHAR *argv[])
+{
+ ACE_REACTOR_INSTANCE_INIT;
+
+ JAWS_Signal_Task::instance ();
+
+ if (ACE_Service_Config::open (argc, argv) == -1
+ && errno != ENOENT)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("open")),
+ 1);
+
+ // Run forever, performing the configured services until we
+ // shutdown.
+
+ JAWS_Event_Dispatcher::run_event_loop ();
+
+ ACE_Thread_Manager::instance ()->wait ();
+
+ return 0;
+}