summaryrefslogtreecommitdiff
path: root/TAO/tao/Transport_Connector.cpp
diff options
context:
space:
mode:
authorcleeland <cleeland@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-08-19 21:57:54 +0000
committercleeland <cleeland@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-08-19 21:57:54 +0000
commit18101f4770f620b14e863b8b43fe777d61f8b91c (patch)
tree2c94496784d8eea435127e23d9f195cf2372f268 /TAO/tao/Transport_Connector.cpp
parent7f9a9a8fcfbd8bfdde94fc9d5768cab5b97d7dd9 (diff)
downloadATCD-18101f4770f620b14e863b8b43fe777d61f8b91c.tar.gz
Thu Aug 19 16:49:24 2004 Chris Cleeland <cleeland_c@ociweb.com>
Added Wait_On_LF_NoUpcall wait strategy.
Diffstat (limited to 'TAO/tao/Transport_Connector.cpp')
-rw-r--r--TAO/tao/Transport_Connector.cpp32
1 files changed, 24 insertions, 8 deletions
diff --git a/TAO/tao/Transport_Connector.cpp b/TAO/tao/Transport_Connector.cpp
index b13f0af134e..5becf307ac9 100644
--- a/TAO/tao/Transport_Connector.cpp
+++ b/TAO/tao/Transport_Connector.cpp
@@ -239,17 +239,33 @@ TAO_Connector::connect (TAO::Profile_Transport_Resolver *r,
// Purge connections (if necessary)
tcm.purge ();
- return this->make_connection (r,
- *desc,
- timeout);
+ TAO_Transport* result = this->make_connection (r,
+ *desc,
+ timeout);
+ if (result == 0)
+ {
+ r->transport ()->opened_as (TAO_CLIENT_ROLE);
+ if (TAO_debug_level > 4)
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO (%P|%t) - Transport_Connector::connect, "
+ "opening Transport[%d] in TAO_CLIENT_ROLE\n",
+ r->transport ()->id ()));
+ }
+ return result;
}
if (TAO_debug_level > 4)
- ACE_DEBUG ((LM_DEBUG,
- "TAO (%P|%t) - Transport_Connector::connect, "
- "got an existing %s Transport[%d]\n",
- base_transport->is_connected () ? "connected" : "unconnected",
- base_transport->id ()));
+ {
+ TAO_Connection_Role cr = base_transport->opened_as ();
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO (%P|%t) - Transport_Connector::connect, "
+ "got an existing %s Transport[%d] in role %s\n",
+ base_transport->is_connected () ? "connected" : "unconnected",
+ base_transport->id (),
+ cr == TAO_SERVER_ROLE ? "TAO_SERVER_ROLE" :
+ cr == TAO_CLIENT_ROLE ? "TAO_CLIENT_ROLE" :
+ "TAO_UNSPECIFIED_ROLE" ));
+ }
// If connected return..
if (base_transport->is_connected ())