summaryrefslogtreecommitdiff
path: root/examples/Service_Configurator/Misc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Service_Configurator/Misc')
-rw-r--r--examples/Service_Configurator/Misc/Makefile185
-rw-r--r--examples/Service_Configurator/Misc/Misc.dsw44
-rw-r--r--examples/Service_Configurator/Misc/README23
-rw-r--r--examples/Service_Configurator/Misc/Timer.dsp107
-rw-r--r--examples/Service_Configurator/Misc/Timer_Service.cpp128
-rw-r--r--examples/Service_Configurator/Misc/Timer_Service.h65
-rw-r--r--examples/Service_Configurator/Misc/main.cpp78
-rw-r--r--examples/Service_Configurator/Misc/main.dsp93
-rw-r--r--examples/Service_Configurator/Misc/svc.conf18
-rw-r--r--examples/Service_Configurator/Misc/svc.conf28
10 files changed, 0 insertions, 739 deletions
diff --git a/examples/Service_Configurator/Misc/Makefile b/examples/Service_Configurator/Misc/Makefile
deleted file mode 100644
index d05a4a44e29..00000000000
--- a/examples/Service_Configurator/Misc/Makefile
+++ /dev/null
@@ -1,185 +0,0 @@
-#----------------------------------------------------------------------------
-#
-# $Id$
-#
-# Makefile for a test of the miscellaneous Service_Config examples
-#----------------------------------------------------------------------------
-
-#----------------------------------------------------------------------------
-# Local macros
-#----------------------------------------------------------------------------
-
-BIN = main
-LIB = libTimer.a
-SHLIB = libTimer.$(SOEXT)
-
-FILES = Timer_Service
-
-PSRC = $(addsuffix .cpp,$(BIN))
-LSRC = $(addsuffix .cpp,$(FILES))
-
-LDLIBS = -lTimer
-
-LIBS += $(ACELIB)
-
-BUILD = $(VLIB) $(VSHLIB) $(SHLIBA) $(VBIN)
-
-#----------------------------------------------------------------------------
-# Include macros and targets
-#----------------------------------------------------------------------------
-
-include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
-include $(ACE_ROOT)/include/makeinclude/macros.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
-
-#----------------------------------------------------------------------------
-# Local targets
-#----------------------------------------------------------------------------
-
-#----------------------------------------------------------------------------
-# Dependencies
-#----------------------------------------------------------------------------
-# DO NOT DELETE THIS LINE -- g++dep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-
-.obj/Timer_Service.o .obj/Timer_Service.so .shobj/Timer_Service.o .shobj/Timer_Service.so: Timer_Service.cpp Timer_Service.h \
- $(ACE_ROOT)/ace/Service_Config.h \
- $(ACE_ROOT)/ace/Service_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.h \
- $(ACE_ROOT)/ace/ACE.h \
- $(ACE_ROOT)/ace/OS.h \
- $(ACE_ROOT)/ace/inc_user_config.h \
- $(ACE_ROOT)/ace/streams.h \
- $(ACE_ROOT)/ace/Basic_Types.h \
- $(ACE_ROOT)/ace/Basic_Types.i \
- $(ACE_ROOT)/ace/Trace.h \
- $(ACE_ROOT)/ace/OS.i \
- $(ACE_ROOT)/ace/Log_Msg.h \
- $(ACE_ROOT)/ace/Log_Record.h \
- $(ACE_ROOT)/ace/Log_Priority.h \
- $(ACE_ROOT)/ace/Log_Record.i \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/Shared_Object.i \
- $(ACE_ROOT)/ace/Event_Handler.h \
- $(ACE_ROOT)/ace/Event_Handler.i \
- $(ACE_ROOT)/ace/Service_Object.i \
- $(ACE_ROOT)/ace/Signal.h \
- $(ACE_ROOT)/ace/Synch.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \
- $(ACE_ROOT)/ace/Synch.i \
- $(ACE_ROOT)/ace/Synch_T.h \
- $(ACE_ROOT)/ace/Synch_T.i \
- $(ACE_ROOT)/ace/Thread.h \
- $(ACE_ROOT)/ace/Thread.i \
- $(ACE_ROOT)/ace/Atomic_Op.i \
- $(ACE_ROOT)/ace/Synch_T.cpp \
- $(ACE_ROOT)/ace/Containers.h \
- $(ACE_ROOT)/ace/Malloc_Base.h \
- $(ACE_ROOT)/ace/Containers.i \
- $(ACE_ROOT)/ace/Containers_T.h \
- $(ACE_ROOT)/ace/Containers_T.i \
- $(ACE_ROOT)/ace/Containers_T.cpp \
- $(ACE_ROOT)/ace/Malloc.h \
- $(ACE_ROOT)/ace/Malloc.i \
- $(ACE_ROOT)/ace/Malloc_T.h \
- $(ACE_ROOT)/ace/Free_List.h \
- $(ACE_ROOT)/ace/Free_List.i \
- $(ACE_ROOT)/ace/Free_List.cpp \
- $(ACE_ROOT)/ace/Malloc_T.i \
- $(ACE_ROOT)/ace/Malloc_T.cpp \
- $(ACE_ROOT)/ace/Memory_Pool.h \
- $(ACE_ROOT)/ace/Mem_Map.h \
- $(ACE_ROOT)/ace/Mem_Map.i \
- $(ACE_ROOT)/ace/Memory_Pool.i \
- $(ACE_ROOT)/ace/Signal.i \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(ACE_ROOT)/ace/Service_Config.i \
- $(ACE_ROOT)/ace/Reactor.h \
- $(ACE_ROOT)/ace/Handle_Set.h \
- $(ACE_ROOT)/ace/Handle_Set.i \
- $(ACE_ROOT)/ace/Timer_Queue.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.i \
- $(ACE_ROOT)/ace/Timer_Queue_T.cpp \
- $(ACE_ROOT)/ace/Reactor.i \
- $(ACE_ROOT)/ace/Reactor_Impl.h \
- $(ACE_ROOT)/ace/Svc_Conf_Tokens.h
-
-.obj/main.o .obj/main.so .shobj/main.o .shobj/main.so: main.cpp \
- $(ACE_ROOT)/ace/Service_Config.h \
- $(ACE_ROOT)/ace/Service_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.h \
- $(ACE_ROOT)/ace/ACE.h \
- $(ACE_ROOT)/ace/OS.h \
- $(ACE_ROOT)/ace/inc_user_config.h \
- $(ACE_ROOT)/ace/streams.h \
- $(ACE_ROOT)/ace/Basic_Types.h \
- $(ACE_ROOT)/ace/Basic_Types.i \
- $(ACE_ROOT)/ace/Trace.h \
- $(ACE_ROOT)/ace/OS.i \
- $(ACE_ROOT)/ace/Log_Msg.h \
- $(ACE_ROOT)/ace/Log_Record.h \
- $(ACE_ROOT)/ace/Log_Priority.h \
- $(ACE_ROOT)/ace/Log_Record.i \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/Shared_Object.i \
- $(ACE_ROOT)/ace/Event_Handler.h \
- $(ACE_ROOT)/ace/Event_Handler.i \
- $(ACE_ROOT)/ace/Service_Object.i \
- $(ACE_ROOT)/ace/Signal.h \
- $(ACE_ROOT)/ace/Synch.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \
- $(ACE_ROOT)/ace/Synch.i \
- $(ACE_ROOT)/ace/Synch_T.h \
- $(ACE_ROOT)/ace/Synch_T.i \
- $(ACE_ROOT)/ace/Thread.h \
- $(ACE_ROOT)/ace/Thread.i \
- $(ACE_ROOT)/ace/Atomic_Op.i \
- $(ACE_ROOT)/ace/Synch_T.cpp \
- $(ACE_ROOT)/ace/Containers.h \
- $(ACE_ROOT)/ace/Malloc_Base.h \
- $(ACE_ROOT)/ace/Containers.i \
- $(ACE_ROOT)/ace/Containers_T.h \
- $(ACE_ROOT)/ace/Containers_T.i \
- $(ACE_ROOT)/ace/Containers_T.cpp \
- $(ACE_ROOT)/ace/Malloc.h \
- $(ACE_ROOT)/ace/Malloc.i \
- $(ACE_ROOT)/ace/Malloc_T.h \
- $(ACE_ROOT)/ace/Free_List.h \
- $(ACE_ROOT)/ace/Free_List.i \
- $(ACE_ROOT)/ace/Free_List.cpp \
- $(ACE_ROOT)/ace/Malloc_T.i \
- $(ACE_ROOT)/ace/Malloc_T.cpp \
- $(ACE_ROOT)/ace/Memory_Pool.h \
- $(ACE_ROOT)/ace/Mem_Map.h \
- $(ACE_ROOT)/ace/Mem_Map.i \
- $(ACE_ROOT)/ace/Memory_Pool.i \
- $(ACE_ROOT)/ace/Signal.i \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(ACE_ROOT)/ace/Service_Config.i \
- $(ACE_ROOT)/ace/Reactor.h \
- $(ACE_ROOT)/ace/Handle_Set.h \
- $(ACE_ROOT)/ace/Handle_Set.i \
- $(ACE_ROOT)/ace/Timer_Queue.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.i \
- $(ACE_ROOT)/ace/Timer_Queue_T.cpp \
- $(ACE_ROOT)/ace/Reactor.i \
- $(ACE_ROOT)/ace/Reactor_Impl.h \
- $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \
- Timer_Service.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
diff --git a/examples/Service_Configurator/Misc/Misc.dsw b/examples/Service_Configurator/Misc/Misc.dsw
deleted file mode 100644
index ac13314049f..00000000000
--- a/examples/Service_Configurator/Misc/Misc.dsw
+++ /dev/null
@@ -1,44 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "Timer"=.\Timer.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "main"=.\main.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
- Begin Project Dependency
- Project_Dep_Name Timer
- End Project Dependency
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/examples/Service_Configurator/Misc/README b/examples/Service_Configurator/Misc/README
deleted file mode 100644
index c3b22759926..00000000000
--- a/examples/Service_Configurator/Misc/README
+++ /dev/null
@@ -1,23 +0,0 @@
-This directory contains an example that illustrates how the ACE
-Service Configurator can configure static and dynamic services, both
-from the command-line and from a svc.config file. We define several
-instances, i.e., Timer_Service_1 and Timer_Service_2 of the SAME
-service just to exercise different configuration options. A "real"
-application would usually define different services.
-
-Windows CE:
------------
-
-When using Windows CE (WCE) emulator, make sure that you use the
-following command to copy the svc.conf files into the top-level
-directory in CE emulator.
-
- empfile -c svc.conf1 wce:\svc.conf1
- empfile -c svc.conf2 wce:\svc.conf2
-
-The command "empfile" moves the files to emulator's root directory and
-resigters the files with CE emulator's object store.
-
-Also make sure you type in at least one argument (which is argv[0],)
-when the program dialog box requests you to key in the program
-arguments. Otherwise, the program won't run at all.
diff --git a/examples/Service_Configurator/Misc/Timer.dsp b/examples/Service_Configurator/Misc/Timer.dsp
deleted file mode 100644
index e62bdbb21ad..00000000000
--- a/examples/Service_Configurator/Misc/Timer.dsp
+++ /dev/null
@@ -1,107 +0,0 @@
-# Microsoft Developer Studio Project File - Name="Timer" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
-
-CFG=Timer - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "Timer.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "Timer.mak" CFG="Timer - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Timer - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "Timer - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "Timer - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TIMER_EXPORTS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\..\\" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TIMER_EXPORTS" /D "ACE_BUILD_SVC_DLL" /YX /FD /c
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
-# ADD LINK32 ace.lib /nologo /dll /machine:I386 /libpath:"..\..\..\bin"
-
-!ELSEIF "$(CFG)" == "Timer - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Timer___Win32_Debug"
-# PROP BASE Intermediate_Dir "Timer___Win32_Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TIMER_EXPORTS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\..\\" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TIMER_EXPORTS" /D "ACE_BUILD_SVC_DLL" /YX /FD /c
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 aced.lib /nologo /dll /debug /machine:I386 /out:"Timerd.dll" /pdbtype:sept /libpath:"..\..\..\ace"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Timer - Win32 Release"
-# Name "Timer - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=.\Timer_Service.cpp
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# End Target
-# End Project
diff --git a/examples/Service_Configurator/Misc/Timer_Service.cpp b/examples/Service_Configurator/Misc/Timer_Service.cpp
deleted file mode 100644
index f42db99ea0e..00000000000
--- a/examples/Service_Configurator/Misc/Timer_Service.cpp
+++ /dev/null
@@ -1,128 +0,0 @@
-// $Id$
-
-#include "Timer_Service.h"
-
-ACE_RCSID(Misc, Timer_Service, "$Id$")
-
-Timer_Service_1::Timer_Service_1 (void)
-{
- ACE_OS::strcpy (this->name_,
- ASYS_TEXT ("Timer_Service_1"));
-}
-
-int
-Timer_Service_1::init (int argc, ASYS_TCHAR *argv[])
-{
- ACE_DEBUG ((LM_DEBUG,
- ASYS_TEXT ("in Timer_Service::init, argv[0] = %s, argc == %d\n"),
- argv[0], argc));
-
- // Printout the <argv> values for sanity's sake.
- for (int i = 0; i < argc; i++)
- ACE_DEBUG ((LM_DEBUG,
- ASYS_TEXT ("argv[%d] = %s\n"),
- i, argv[i]));
-
- int interval = Timer_Service_1::TIMEOUT;
-
- if (argc > 1)
- {
- // If the second argument exists use this as the interval for
- // the periodic timer. Otherwise, go off every TIMEOUT seconds.
-
- interval = ACE_OS::atoi (argv[1]);
-
- if (interval == 0)
- interval = Timer_Service_1::TIMEOUT;
- }
-
- if (argc > 2)
- {
- // If the third argument exists use it to control the maximum
- // number of timeouts.
- this->max_timeouts_ = ACE_OS::atoi (argv[2]);
-
- if (this->max_timeouts_ == 0)
- this->max_timeouts_ = Timer_Service_1::MAX_TIMEOUTS;
- }
-
- this->cur_timeouts_ = 0;
-
- // If the fourth argument exists take this as an indication to
- // enable tracing.
- if (argc > 3)
- ACE_Trace::start_tracing ();
- else
- ACE_Trace::stop_tracing ();
-
- // Register the timer to go off in 1 second, and then to go off
- // every <interval> seconds.
- if (ACE_Reactor::instance ()->schedule_timer
- (this,
- 0,
- ACE_Time_Value (1),
- ACE_Time_Value (interval)) == -1)
- return -1;
- else
- return 0;
-}
-
-int
-Timer_Service_1::handle_timeout (const ACE_Time_Value &tv,
- const void *)
-{
- ACE_DEBUG ((LM_DEBUG,
- ASYS_TEXT ("(%x) in %s::handle_timeout sec = %d, usec = %d")
- ASYS_TEXT (" cur_timeouts = %d, max_timeouts = %d\n"),
- this,
- this->name_,
- tv.sec (),
- tv.usec (),
- this->cur_timeouts_,
- this->max_timeouts_));
-
- this->cur_timeouts_++;
-
- if (this->cur_timeouts_ == this->max_timeouts_)
- // Shutdown the test.
- return -1;
- else
- return 0;
-}
-
-int
-Timer_Service_1::handle_close (ACE_HANDLE,
- ACE_Reactor_Mask)
-{
- ACE_DEBUG ((LM_DEBUG, ASYS_TEXT ("closing down the timer test\n")));
-
- ACE_Reactor::end_event_loop();
- return 0;
-}
-
-Timer_Service_2::Timer_Service_2 (void)
-{
- ACE_OS::strcpy (this->name_,
- ASYS_TEXT ("Timer_Service_2"));
-}
-
-Timer_Service_3::Timer_Service_3 (void)
-{
- ACE_OS::strcpy (this->name_,
- ASYS_TEXT ("Timer_Service_3"));
-}
-
-// Define the object that describes the service.
-ACE_STATIC_SVC_DEFINE (Timer_Service_1,
- ASYS_TEXT ("Timer_Service_1"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (Timer_Service_1),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
-
-// The following are "Factories" used by the <ACE_Service_Config> and
-// svc.conf file to dynamically initialize the state of the Timer
-// Services.
-ACE_SVC_FACTORY_DEFINE (Timer_Service_1)
-ACE_SVC_FACTORY_DEFINE (Timer_Service_2)
-ACE_SVC_FACTORY_DEFINE (Timer_Service_3)
diff --git a/examples/Service_Configurator/Misc/Timer_Service.h b/examples/Service_Configurator/Misc/Timer_Service.h
deleted file mode 100644
index 9400f2573a5..00000000000
--- a/examples/Service_Configurator/Misc/Timer_Service.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-
-#include "ace/Service_Config.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-class ACE_Svc_Export Timer_Service_1 : public ACE_Service_Object
-{
- // = TITLE
- // Demonstrates a simple timer service that can be configured
- // statically.
-public:
- Timer_Service_1 (void);
- // Default constructor.
-
- virtual int init (int argc, ASYS_TCHAR *argv[]);
- // Initialization hook.
-
- virtual int handle_timeout (const ACE_Time_Value &,
- const void *);
- // Timeout hook.
-
- virtual int handle_close (ACE_HANDLE, ACE_Reactor_Mask);
- // Close hook.
-
-protected:
- ASYS_TCHAR name_[BUFSIZ];
- // Keep track of which service this is!
-
-private:
- enum
- {
- TIMEOUT = 4, // Wait 4 seconds between timeouts
- MAX_TIMEOUTS = 10 // Don't timeout for more than 10 times.
- };
-
- int max_timeouts_;
- // Maximum number of timeouts before shutting down the test.
-
- int cur_timeouts_;
- // Current number of timeouts.
-};
-
-class ACE_Svc_Export Timer_Service_2 : public Timer_Service_1
-{
-public:
- Timer_Service_2 (void);
- // Default constructor.
-};
-
-class ACE_Svc_Export Timer_Service_3 : public Timer_Service_1
-{
-public:
- Timer_Service_3 (void);
- // Default constructor.
-};
-
-// Declare both static and dynamic services.
-ACE_STATIC_SVC_DECLARE (Timer_Service_1)
-ACE_SVC_FACTORY_DECLARE (Timer_Service_1)
-ACE_SVC_FACTORY_DECLARE (Timer_Service_2)
-ACE_SVC_FACTORY_DECLARE (Timer_Service_3)
diff --git a/examples/Service_Configurator/Misc/main.cpp b/examples/Service_Configurator/Misc/main.cpp
deleted file mode 100644
index 13fc9101921..00000000000
--- a/examples/Service_Configurator/Misc/main.cpp
+++ /dev/null
@@ -1,78 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// examples/Service_Configurator/Misc
-//
-// = FILENAME
-// main.cpp
-//
-// = DESCRIPTION
-// This directory contains an example that illustrates how the ACE
-// Service Configurator can configure static and dynamic services,
-// both from the command-line and from a svc.config file.
-//
-// = AUTHOR
-// Doug Schmidt <schmidt@cs.wustl.edu>
-//
-// ============================================================================
-
-#include "ace/Service_Config.h"
-#include "ace/ARGV.h"
-#include "Timer_Service.h"
-
-ACE_RCSID(Misc, main, "$Id$")
-
-// Create an object that will insert the <Timer_Service> into the list
-// of statically linked services that the <ACE_Service_Config> will
-// process at run-time.
-ACE_STATIC_SVC_REQUIRE (Timer_Service_1)
-
-int
-main (int, ASYS_TCHAR *argv[])
-{
- // Set up an argument vector that we can add entries to!
- ACE_ARGV args;
-
- // Manufacture a "fake" svc.conf entry to demonstrate the -S option
- // that allows us to pass these entries via the "command-line"
- // rather than the svc.conf file.
- args.add (argv[0]);
- args.add (ASYS_TEXT ("-y"));
- args.add (ASYS_TEXT ("-d"));
- args.add (ASYS_TEXT ("-S"));
- args.add (ASYS_TEXT ("\"static Timer_Service_1 'timer 1 10 $TRACE'\""));
- args.add (ASYS_TEXT ("-S"));
- args.add (ASYS_TEXT ("\"dynamic Timer_Service_2 Service_Object * ./Timer:_make_Timer_Service_2() 'timer 2 10 $TRACE'\""));
- // Test the -f option!
- args.add (ASYS_TEXT ("-fsvc.conf1"));
- args.add (ASYS_TEXT ("-fsvc.conf2"));
-
- ACE_DEBUG ((LM_DEBUG,
- ASYS_TEXT ("argc = %d\n"),
- ASYS_TEXT (args.argc ())));
-
- // Print the contents of the combined <ACE_ARGV>.
- for (size_t i = 0; i < args.argc (); i++)
- ACE_DEBUG ((LM_DEBUG,
- ASYS_TEXT ("(%d) %s\n"),
- i,
- args.argv ()[i]));
-
- if (ACE_Service_Config::open (args.argc (),
- args.argv (),
- ACE_DEFAULT_LOGGER_KEY,
- 0) == -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;
-}
diff --git a/examples/Service_Configurator/Misc/main.dsp b/examples/Service_Configurator/Misc/main.dsp
deleted file mode 100644
index b9e92c5ba06..00000000000
--- a/examples/Service_Configurator/Misc/main.dsp
+++ /dev/null
@@ -1,93 +0,0 @@
-# Microsoft Developer Studio Project File - Name="main" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=main - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "main.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "main.mak" CFG="main - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "main - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "main - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "main - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MT /W3 /GX /O2 /I "..\..\..\\" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D ACE_HAS_SVC_DLL=0 /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 ace.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\ace"
-
-!ELSEIF "$(CFG)" == "main - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\..\\" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D ACE_HAS_SVC_DLL=0 /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 aced.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\ace"
-
-!ENDIF
-
-# Begin Target
-
-# Name "main - Win32 Release"
-# Name "main - Win32 Debug"
-# Begin Source File
-
-SOURCE=.\main.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\Timer_Service.cpp
-# End Source File
-# End Target
-# End Project
diff --git a/examples/Service_Configurator/Misc/svc.conf1 b/examples/Service_Configurator/Misc/svc.conf1
deleted file mode 100644
index d0f552caa6e..00000000000
--- a/examples/Service_Configurator/Misc/svc.conf1
+++ /dev/null
@@ -1,8 +0,0 @@
-# Dynamically configure the Timer_Service into the application process
-# and pass in up to 4 arguments. The final 3 arguments are retrieved
-# from environment variables, so they can be set by changing your
-# environment before running the main program. If you don't have
-# these variables set they are ignored.
-dynamic Timer_Service_3 Service_Object *
- ./Timer:_make_Timer_Service_3()
- "timer $INTERVAL $MAX_TIMEOUTS $TRACE"
diff --git a/examples/Service_Configurator/Misc/svc.conf2 b/examples/Service_Configurator/Misc/svc.conf2
deleted file mode 100644
index 1bef63e8d48..00000000000
--- a/examples/Service_Configurator/Misc/svc.conf2
+++ /dev/null
@@ -1,8 +0,0 @@
-# Statically configure the Timer_Service, which must have been linked
-# statically into the application process. Up to 4 arguments are
-# passed in. The final 3 arguments are retrieved from environment
-# variables, so they can be set by changing your environment before
-# running the main program. If you don't have these variables set
-# they are ignored.
-static Timer_Service_1
- "timer $INTERVAL $MAX_TIMEOUTS $TRACE"