From 8bb125a332a6b0bbcbd341d46113792e70fa60bf Mon Sep 17 00:00:00 2001 From: bala <balanatarajan@users.noreply.github.com> Date: Wed, 17 Apr 2002 17:25:37 +0000 Subject: ChangeLogTag: Wed Apr 17 12:25:31 2002 Balachandran Natarajan <bala@cs.wustl.edu> --- TAO/tao/IIOP_Connector.cpp | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) (limited to 'TAO/tao/IIOP_Connector.cpp') diff --git a/TAO/tao/IIOP_Connector.cpp b/TAO/tao/IIOP_Connector.cpp index d4a40dd7424..8e7850b00e9 100644 --- a/TAO/tao/IIOP_Connector.cpp +++ b/TAO/tao/IIOP_Connector.cpp @@ -100,20 +100,16 @@ TAO_IIOP_Connector::close (void) } int -TAO_IIOP_Connector::make_connection (TAO_GIOP_Invocation *invocation, - TAO_Transport_Descriptor_Interface *desc) +TAO_IIOP_Connector::set_validate_endpoint (TAO_Endpoint *endpoint) { - ACE_Time_Value *max_wait_time = invocation->max_wait_time (); - TAO_Endpoint *endpoint = desc->endpoint (); - if (endpoint->tag () != TAO_TAG_IIOP_PROFILE) return -1; - TAO_IIOP_Endpoint *iiop_endpoint = - ACE_dynamic_cast (TAO_IIOP_Endpoint *, - endpoint ); - if (iiop_endpoint == 0) - return -1; + TAO_IIOP_Endpoint *iiop_endpoint = + ACE_dynamic_cast (TAO_IIOP_Endpoint *, + endpoint ); + if (iiop_endpoint == 0) + return -1; const ACE_INET_Addr &remote_address = iiop_endpoint->object_addr (); @@ -135,10 +131,28 @@ TAO_IIOP_Connector::make_connection (TAO_GIOP_Invocation *invocation, return -1; } + return 0; +} + +int +TAO_IIOP_Connector::make_connection (TAO_GIOP_Invocation *invocation, + TAO_Transport_Descriptor_Interface *desc) +{ + ACE_Time_Value *max_wait_time = invocation->max_wait_time (); + + TAO_IIOP_Endpoint *iiop_endpoint = + ACE_dynamic_cast (TAO_IIOP_Endpoint *, + desc->endpoint ()); + + if (iiop_endpoint == 0) + return -1; + + const ACE_INET_Addr &remote_address = + iiop_endpoint->object_addr (); + int result = 0; TAO_IIOP_Connection_Handler *svc_handler = 0; - if (TAO_debug_level > 2) ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("(%P|%t) IIOP_Connector::connect - ") -- cgit v1.2.1