Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / Strategies / COIOP_Acceptor.h
blobf74adc81ded6894d50944b78b11812af4f031eaf
1 // -*- C++ -*-
3 //=============================================================================
4 /**
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)
21 # 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"
30 #include "ace/UUID.h"
32 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
34 // TAO COIOP_Acceptor concrete call definition
36 /**
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
45 public:
46 /// Constructor.
47 TAO_COIOP_Acceptor ();
49 /// Destructor.
50 ~TAO_COIOP_Acceptor ();
52 /**
53 * @name The TAO_Acceptor Methods
55 * Please check the documentation in Transport_Acceptor.h for details.
57 //@{
58 virtual int open (TAO_ORB_Core *orb_core,
59 ACE_Reactor *reactor,
60 int version_major,
61 int version_minor,
62 const char *address,
63 const char *options = 0);
64 virtual int open_default (TAO_ORB_Core *orb_core,
65 ACE_Reactor *reactor,
66 int version_major,
67 int version_minor,
68 const char *options = 0);
69 virtual int close ();
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,
78 TAO::ObjectKey &key);
79 //@}
81 protected:
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
86 /// each endpoint.
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
92 /// our endpoints.
93 int create_shared_profile (const TAO::ObjectKey &object_key,
94 TAO_MProfile &mprofile,
95 CORBA::Short priority);
96 protected:
97 /**
98 * Cache the information about the endpoints serviced by this
99 * acceptor.
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_;
110 /// ORB Core.
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 */