summaryrefslogtreecommitdiff
path: root/ACE/examples/APG/Svc_Config/HA_Configurable_Server_Dynamic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/examples/APG/Svc_Config/HA_Configurable_Server_Dynamic.cpp')
-rw-r--r--ACE/examples/APG/Svc_Config/HA_Configurable_Server_Dynamic.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/ACE/examples/APG/Svc_Config/HA_Configurable_Server_Dynamic.cpp b/ACE/examples/APG/Svc_Config/HA_Configurable_Server_Dynamic.cpp
new file mode 100644
index 00000000000..1126a0393d1
--- /dev/null
+++ b/ACE/examples/APG/Svc_Config/HA_Configurable_Server_Dynamic.cpp
@@ -0,0 +1,17 @@
+// $Id$
+
+// Listing 1 code/ch19
+#include "ace/OS_main.h"
+#include "ace/Service_Config.h"
+#include "ace/Reactor.h"
+
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
+{
+ ACE_Service_Config::open (argc, argv);
+
+ // We use this version of the event loop so that reconfigurations
+ // are triggered properly.
+ ACE_Reactor::instance ()->run_reactor_event_loop (ACE_Reactor::check_reconfiguration);
+ return 0;
+}
+// Listing 1