diff options
Diffstat (limited to 'TAO/tao/Acceptor_Registry.h')
-rw-r--r-- | TAO/tao/Acceptor_Registry.h | 111 |
1 files changed, 0 insertions, 111 deletions
diff --git a/TAO/tao/Acceptor_Registry.h b/TAO/tao/Acceptor_Registry.h deleted file mode 100644 index a2a37f7595f..00000000000 --- a/TAO/tao/Acceptor_Registry.h +++ /dev/null @@ -1,111 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO -// -// = FILENAME -// Acceptor_Registry.h -// -// = DESCRIPTION -// Interface for the TAO pluggable protocol framework. -// -// = AUTHOR -// Fred Kuhns <fredk@cs.wustl.edu> -// -// ============================================================================ - -#ifndef TAO_ACCEPTOR_REGISTRY_H -#define TAO_ACCEPTOR_REGISTRY_H - -#include "tao/Pluggable.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include "tao/corbafwd.h" -#include "tao/Typecode.h" -#include "tao/Resource_Factory.h" - -#include "ace/Containers_T.h" - -// Forward declarations. -class ACE_Addr; -class ACE_Reactor; -class TAO_ORB_Core; - -class TAO_Stub; -class TAO_Profile; -class TAO_MProfile; - -typedef ACE_Unbounded_Set<TAO_Acceptor*> - TAO_AcceptorSet; -typedef ACE_Unbounded_Set_Iterator<TAO_Acceptor*> - TAO_AcceptorSetItor; - -class TAO_Export TAO_Acceptor_Registry -{ - // = TITLE - // Acceptor Registry and Generic Acceptor interface definitions. - // All loaded ESIOP or GIOP acceptor bridges must register with - // this object. - // - // = DESCRIPTION - // This class maintains a list os acceptor factories - // for all loaded ORB protocols. - // There is one Acceptor_Registry per ORB_Core. -public: - // = Initialization and termination methods. - TAO_Acceptor_Registry (void); - // Default constructor. - - ~TAO_Acceptor_Registry (void); - // Default destructor. - - int open (TAO_ORB_Core *orb_core, - CORBA::Environment &ACE_TRY_ENV = TAO_default_environment ()) - ACE_THROW_SPEC ((CORBA::SystemException)); - // Initialize all registered acceptors. Return -1 on error. - - int close_all (void); - // Close all open acceptors. - - size_t endpoint_count (void); - // Returns the total number of endpoints, i.e., the number of - // profiles that have been created. - - int make_mprofile (const TAO_ObjectKey& object_key, - TAO_MProfile &mprofile); - // Add profiles to the <mprofile> object for all open endpoints. - - int is_collocated (const TAO_MProfile& mprofile); - // Check if there is at least one profile in <mprofile> that - // corresponds to a collocated object. - - // = Iterator. - TAO_AcceptorSetItor begin (void); - TAO_AcceptorSetItor end (void); - -private: - int open_default (TAO_ORB_Core *orb_core, - const char *options); - // Create a default acceptor for all loaded protocols. - - int open_default (TAO_ORB_Core *orb_core, - TAO_ProtocolFactorySetItor &factory, - const char *options); - // Create a default acceptor using the specified protocol factory. - -private: - TAO_AcceptorSet acceptors_; - // List of acceptors that are currently open. -}; - -#if defined(__ACE_INLINE__) -#include "tao/Acceptor_Registry.i" -#endif /* __ACE_INLINE__ */ - -#endif /* TAO_ACCEPTOR_REGISTRY_H */ |