summaryrefslogtreecommitdiff
path: root/examples/APG/Svc_Config/HA_Configurable_Server_Static.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/APG/Svc_Config/HA_Configurable_Server_Static.cpp')
-rw-r--r--examples/APG/Svc_Config/HA_Configurable_Server_Static.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/APG/Svc_Config/HA_Configurable_Server_Static.cpp b/examples/APG/Svc_Config/HA_Configurable_Server_Static.cpp
new file mode 100644
index 00000000000..a647618c701
--- /dev/null
+++ b/examples/APG/Svc_Config/HA_Configurable_Server_Static.cpp
@@ -0,0 +1,18 @@
+// $Id$
+
+// Listing 1 code/ch19
+#include "ace/OS.h"
+#include "ace/Service_Config.h"
+#include "ace/Reactor.h"
+
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
+{
+ ACE_STATIC_SVC_REGISTER (HA_Status_Descriptor);
+ ACE_Service_Config::open (argc,
+ argv,
+ ACE_DEFAULT_LOGGER_KEY,
+ 0);
+ ACE_Reactor::instance ()->run_reactor_event_loop ();
+ return 0;
+}
+// Listing 1