3 //=============================================================================
7 * @author Fred Kuhns <fredk@cs.wustl.edu>
9 //=============================================================================
12 #ifndef TAO_IIOP_FACTORY_H
13 #define TAO_IIOP_FACTORY_H
15 #include /**/ "ace/pre.h"
17 #include "tao/orbconf.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 #if defined (TAO_HAS_IIOP) && (TAO_HAS_IIOP != 0)
25 #include "tao/Protocol_Factory.h"
26 #include "ace/Service_Config.h"
28 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
33 class TAO_Export TAO_IIOP_Protocol_Factory
: public TAO_Protocol_Factory
36 TAO_IIOP_Protocol_Factory ();
37 virtual ~TAO_IIOP_Protocol_Factory ();
39 // = Service Configurator hooks.
40 /// Dynamic linking hook
41 virtual int init (int argc
, ACE_TCHAR
* argv
[]);
43 /// Verify prefix is a match
44 virtual int match_prefix (const ACE_CString
&prefix
);
46 /// Returns the prefix used by the protocol.
47 virtual const char *prefix () const;
49 /// Return the character used to mark where an endpoint ends and
50 /// where its options begin.
51 virtual char options_delimiter () const;
53 // = Check Protocol_Factory.h for a description of these methods.
54 virtual TAO_Acceptor
*make_acceptor ();
55 virtual TAO_Connector
*make_connector ();
56 virtual int requires_explicit_endpoint () const;
59 ACE_STATIC_SVC_DECLARE_EXPORT (TAO
, TAO_IIOP_Protocol_Factory
)
60 ACE_FACTORY_DECLARE (TAO
, TAO_IIOP_Protocol_Factory
)
62 TAO_END_VERSIONED_NAMESPACE_DECL
64 #endif /* TAO_HAS_IIOP && TAO_HAS_IIOP != 0 */
66 #include /**/ "ace/post.h"
67 #endif /* TAO_IIOP_FACTORY_H */