summaryrefslogtreecommitdiff
path: root/TAO/tao/Connector_Registry.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-07-21 23:58:43 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-07-21 23:58:43 +0000
commit55872972d6fb913a92846b954a4b45ea162aa6d1 (patch)
tree3cb172483a68d0539aad3135f75649136aa92a32 /TAO/tao/Connector_Registry.cpp
parent2ace386f619433969869403183155e082a539e35 (diff)
downloadATCD-55872972d6fb913a92846b954a4b45ea162aa6d1.tar.gz
ChangeLogTag:Wed Jul 21 03:20:16 1999 Kirthika Parameswaran <kirthika@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/Connector_Registry.cpp')
-rw-r--r--TAO/tao/Connector_Registry.cpp26
1 files changed, 23 insertions, 3 deletions
diff --git a/TAO/tao/Connector_Registry.cpp b/TAO/tao/Connector_Registry.cpp
index c2d6eb18b48..5a368c11210 100644
--- a/TAO/tao/Connector_Registry.cpp
+++ b/TAO/tao/Connector_Registry.cpp
@@ -111,7 +111,7 @@ int
TAO_Connector_Registry::preconnect (TAO_ORB_Core *orb_core,
TAO_PreconnectSet &preconnections)
{
- // Put the preconnects in a form that makes it simple for protocol
+ // Put the preconnects in a form that makes it simple for protocol
// implementers to parse.
if (this->preprocess_preconnects (orb_core, preconnections) != 0)
{
@@ -162,9 +162,9 @@ TAO_Connector_Registry::preprocess_preconnects (TAO_ORB_Core *orb_core,
// uiop://1.1@/tmp/foobar,/tmp/chicken,/tmp/soup
// iiop://1.0@localhost,1.1@mopbucket
//
- // The four elements in the preconnect set will be squeezed into two
+ // The four elements in the preconnect set will be squeezed into two
// elements, in this case. This is done to simplify the preconnect
- // parsing code in each protocol specific connector and to make sure
+ // parsing code in each protocol specific connector and to make sure
// that all preconnections are established during the first
// attempt. Otherwise, secondary attempts to establish
// preconnections will not be successful since all preconnections
@@ -401,6 +401,26 @@ TAO_Connector_Registry::object_key_delimiter (const char *ior)
return 0;
}
+int
+TAO_Connector_Registry::purge_connections (void)
+{
+ TAO_ConnectorSetItor end =
+ this->connectors_.end ();
+
+ TAO_ConnectorSetItor iterator =
+ this->connectors_.begin ();
+
+ for (;
+ iterator != end ;
+ iterator++)
+ {
+ if ((*iterator)->purge_connections () == -1)
+ return -1;
+ }
+
+ return 0;
+}
+
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Node<TAO_Connector*>;