diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-12-12 22:01:31 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-12-12 22:01:31 +0000 |
commit | dc75341567c75b75f96206e461453f9baa3a84a4 (patch) | |
tree | 78b678cf9f96a4fd1195161f8f0c9436e0f01fe9 /TAO/tao/Connector_Registry.h | |
parent | f4054d142b798b2173ec1d0e48c42ad426116586 (diff) | |
download | ATCD-dc75341567c75b75f96206e461453f9baa3a84a4.tar.gz |
ChangeLogTag:Sun Dec 12 15:32:27 1999 Ossama Othman <othman@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/Connector_Registry.h')
-rw-r--r-- | TAO/tao/Connector_Registry.h | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/TAO/tao/Connector_Registry.h b/TAO/tao/Connector_Registry.h index 1c65c121432..5d474926348 100644 --- a/TAO/tao/Connector_Registry.h +++ b/TAO/tao/Connector_Registry.h @@ -41,12 +41,8 @@ class TAO_Stub; class TAO_MProfile; class TAO_Resource_Factory; -typedef ACE_Unbounded_Set<TAO_Connector*> - TAO_ConnectorSet; - -typedef ACE_Unbounded_Set_Iterator<TAO_Connector*> - TAO_ConnectorSetItor; +typedef TAO_Connector** TAO_ConnectorSetIterator; class TAO_Export TAO_Connector_Registry { @@ -78,7 +74,7 @@ public: // Close all open connectors. int preconnect (TAO_ORB_Core *orb_core, - TAO_PreconnectSet &preconnections); + TAO_EndpointSet &preconnections); // For this list of preconnections call the connector specific // preconnect method for each preconnection. @@ -107,15 +103,27 @@ public: int purge_connections (void); // Purge "old" connections. #endif /* TAO_USES_ROBUST_CONNECTION_MGMT */ + + // = Iterator. + TAO_ConnectorSetIterator begin (void); + TAO_ConnectorSetIterator end (void); + private: int preprocess_preconnects (TAO_ORB_Core *orb_core, - TAO_PreconnectSet &preconnects); + TAO_EndpointSet &preconnects); // Put the preconnects in a form that makes it simple for protocol // implementers to parse. private: - TAO_ConnectorSet connectors_; - // list of connectors currently open. + TAO_Connector** connectors_; + // List of connectors that are currently open. + + size_t size_; + // Number of connectors that are currently open. }; +#if defined(__ACE_INLINE__) +#include "tao/Connector_Registry.i" +#endif /* __ACE_INLINE__ */ + #endif /* TAO_CONNECTOR_REGISTRY_H */ |