3 //=============================================================================
5 * @file COIOP_Acceptor.h
7 * COIOP specific acceptor processing
9 * @author Johnny Willemsen <jwillemsen@remedy.nl>
11 //=============================================================================
13 #ifndef TAO_COIOP_ACCEPTOR_H
14 #define TAO_COIOP_ACCEPTOR_H
16 #include /**/ "ace/pre.h"
18 #include "tao/orbconf.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 #if defined (TAO_HAS_COIOP) && (TAO_HAS_COIOP != 0)
26 #include "tao/Strategies/strategies_export.h"
27 #include "tao/Transport_Acceptor.h"
28 #include "tao/Acceptor_Impl.h"
29 #include "tao/GIOP_Message_Version.h"
32 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
34 // TAO COIOP_Acceptor concrete call definition
37 * @class TAO_COIOP_Acceptor
39 * @brief TAO_COIOP_Acceptor
41 * The COIOP-specific bridge class for the concrete acceptor.
43 class TAO_Strategies_Export TAO_COIOP_Acceptor
: public TAO_Acceptor
47 TAO_COIOP_Acceptor ();
50 ~TAO_COIOP_Acceptor ();
53 * @name The TAO_Acceptor Methods
55 * Please check the documentation in Transport_Acceptor.h for details.
58 virtual int open (TAO_ORB_Core
*orb_core
,
63 const char *options
= 0);
64 virtual int open_default (TAO_ORB_Core
*orb_core
,
68 const char *options
= 0);
70 virtual int create_profile (const TAO::ObjectKey
&object_key
,
71 TAO_MProfile
&mprofile
,
72 CORBA::Short priority
);
74 virtual int is_collocated (const TAO_Endpoint
*endpoint
);
75 virtual CORBA::ULong
endpoint_count ();
77 virtual int object_key (IOP::TaggedProfile
&profile
,
82 /// Parse protocol specific options.
83 virtual int parse_options (const char *options
);
85 /// Helper method to add a new profile to the mprofile for
87 int create_new_profile (const TAO::ObjectKey
&object_key
,
88 TAO_MProfile
&mprofile
,
89 CORBA::Short priority
);
91 /// Helper method to create a profile that contains all of
93 int create_shared_profile (const TAO::ObjectKey
&object_key
,
94 TAO_MProfile
&mprofile
,
95 CORBA::Short priority
);
98 * Cache the information about the endpoints serviced by this
101 ACE_Utils::UUID uuid_
;
104 * The GIOP version for this endpoint
105 * @@ Theoretically they shouldn't be here!! We need to look at a
106 * way to move this out
108 TAO_GIOP_Message_Version version_
;
111 TAO_ORB_Core
*orb_core_
;
114 TAO_END_VERSIONED_NAMESPACE_DECL
116 #endif /* TAO_HAS_COIOP && TAO_HAS_COIOP != 0 */
118 #include /**/ "ace/post.h"
120 #endif /* TAO_COIOP_ACCEPTOR_H */