summaryrefslogtreecommitdiff
path: root/ace/Service_Manager.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-10-21 21:41:34 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-10-21 21:41:34 +0000
commita5fdebc5f6375078ec1763850a4ca23ec7fe6458 (patch)
treebcf0a25c3d45a209a6e3ac37b233a4812f29c732 /ace/Service_Manager.h
downloadATCD-a5fdebc5f6375078ec1763850a4ca23ec7fe6458.tar.gz
Initial revision
Diffstat (limited to 'ace/Service_Manager.h')
-rw-r--r--ace/Service_Manager.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/ace/Service_Manager.h b/ace/Service_Manager.h
new file mode 100644
index 00000000000..c35b207e759
--- /dev/null
+++ b/ace/Service_Manager.h
@@ -0,0 +1,74 @@
+/* -*- C++ -*- */
+// $Id$
+
+
+// ============================================================================
+//
+// = LIBRARY
+// ace
+//
+// = FILENAME
+// Service_Manager.h
+//
+// = AUTHOR
+// Doug Schmidt
+//
+// ============================================================================
+
+#if !defined (ACE_SERVICE_MANAGER_H)
+#define ACE_SERVICE_MANAGER_H
+
+#include "ace/SOCK_Stream.h"
+#include "ace/SOCK_Acceptor.h"
+#include "ace/INET_Addr.h"
+#include "ace/Service_Object.h"
+
+class ACE_Export ACE_Service_Manager : public ACE_Service_Object
+ // = TITLE
+ // Provide a standard service that returns a list of all services in the
+ // Service Repository.
+ //
+ // = DESCRIPTION
+ //
+{
+public:
+ ACE_Service_Manager (void);
+ virtual int list_services (void);
+ virtual int reconfigure_services (void);
+
+ // = Dynamic linking hooks.
+ virtual int init (int argc, char *argv[]);
+ virtual int info (char **info_string, size_t length) const;
+ virtual int fini (void);
+
+ // = Scheduling hooks.
+ virtual int suspend (void);
+ virtual int resume (void);
+
+ void dump (void) const;
+ // Dump the state of an object.
+
+ ACE_ALLOC_HOOK_DECLARE;
+ // Declare the dynamic allocation hooks.
+
+private:
+ int open (const ACE_INET_Addr &sia);
+
+ // = Demultiplexing hooks.
+ virtual ACE_HANDLE get_handle (void) const;
+ virtual int handle_input (ACE_HANDLE fd);
+ virtual int handle_close (ACE_HANDLE fd, ACE_Reactor_Mask);
+ virtual int handle_signal (int signum, siginfo_t *, ucontext_t *);
+
+ ACE_SOCK_Stream client_stream_;
+ ACE_SOCK_Acceptor acceptor_;
+ int debug_;
+ int signum_;
+ static u_short DEFAULT_PORT_;
+};
+
+#if defined (__ACE_INLINE__)
+#include "ace/Service_Manager.i"
+#endif /* __ACE_INLINE__ */
+
+#endif /* _SERVICE_MANAGER_H */