summaryrefslogtreecommitdiff
path: root/TAO/tao/UIOP_Factory.h
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-27 00:25:23 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-27 00:25:23 +0000
commit6120ebbb2351296f43f6be77ca8d2acede87204a (patch)
tree15d11034396d9c886c7021605705a7f0370f5d98 /TAO/tao/UIOP_Factory.h
parent457f8b0edf17c7abc57be85dcd78f5974057c01b (diff)
downloadATCD-6120ebbb2351296f43f6be77ca8d2acede87204a.tar.gz
ChangeLogTag:Wed May 26 18:51:39 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/UIOP_Factory.h')
-rw-r--r--TAO/tao/UIOP_Factory.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/TAO/tao/UIOP_Factory.h b/TAO/tao/UIOP_Factory.h
new file mode 100644
index 00000000000..15bc6d92532
--- /dev/null
+++ b/TAO/tao/UIOP_Factory.h
@@ -0,0 +1,58 @@
+// -*- C++ -*-
+// $Id$
+// ============================================================================
+//
+// = LIBRARY
+// TAO
+//
+// = FILENAME
+// Protocol_Factory.h
+//
+// = AUTHOR
+// Fred Kuhns <fredk@cs.wustl.edu>
+// Ossama Othman <othman@cs.wustl.edu>
+//
+// ============================================================================
+
+#ifndef TAO_UIOP_FACTORY_H
+#define TAO_UIOP_FACTORY_H
+
+# if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
+
+#include "tao/Protocol_Factory.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+class TAO_Acceptor;
+class TAO_Connector;
+
+
+class TAO_Export TAO_UIOP_Protocol_Factory : public TAO_Protocol_Factory
+{
+public:
+ TAO_UIOP_Protocol_Factory (void);
+ virtual ~TAO_UIOP_Protocol_Factory (void);
+
+ // = Service Configurator hooks.
+ virtual int init (int argc, char* argv[]);
+ // Dynamic linking hook
+
+ virtual int match_prefix (const ACE_CString &prefix);
+ // verify prefix is a match
+
+ // Factory methods
+ virtual TAO_Acceptor *make_acceptor (void);
+ // create an acceptor
+
+ virtual TAO_Connector *make_connector (void);
+ // create a connector
+};
+
+ACE_STATIC_SVC_DECLARE (TAO_UIOP_Protocol_Factory)
+ACE_FACTORY_DECLARE (TAO, TAO_UIOP_Protocol_Factory)
+
+# endif /* !ACE_LACKS_UNIX_DOMAIN_SOCKETS */
+
+#endif /* TAO_UIOP_FACTORY_H */