summaryrefslogtreecommitdiff
path: root/TAO/tao/IIOP_Connector.cpp
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2002-04-17 17:25:37 +0000
committerbala <balanatarajan@users.noreply.github.com>2002-04-17 17:25:37 +0000
commit8bb125a332a6b0bbcbd341d46113792e70fa60bf (patch)
tree47c8d82ba4558cfa43eb01d267ef68395bba5e58 /TAO/tao/IIOP_Connector.cpp
parent0b04ad8569af741c169205ca8743f61ab3bf4f13 (diff)
downloadATCD-8bb125a332a6b0bbcbd341d46113792e70fa60bf.tar.gz
ChangeLogTag: Wed Apr 17 12:25:31 2002 Balachandran Natarajan <bala@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/IIOP_Connector.cpp')
-rw-r--r--TAO/tao/IIOP_Connector.cpp36
1 files changed, 25 insertions, 11 deletions
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 - ")