Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Connect_Strategy.cpp

Go to the documentation of this file.
00001 #include "tao_pch.h"
00002 #include "Connect_Strategy.h"
00003 #include "Connection_Handler.h"
00004 
00005 
00006 ACE_RCSID(tao,
00007           Connect_Strategy,
00008           "$Id: Connect_Strategy.cpp,v 1.1.1.1.2.1 2003/03/14 16:05:12 chad Exp $")
00009 
00010 TAO_Connect_Strategy::TAO_Connect_Strategy (TAO_ORB_Core *orb_core)
00011   : orb_core_ (orb_core)
00012 {
00013 }
00014 
00015 
00016 TAO_Connect_Strategy::~TAO_Connect_Strategy (void)
00017 {
00018 }
00019 
00020 int
00021 TAO_Connect_Strategy::post_failed_connect (TAO_Connection_Handler *ch,
00022                                            int is_finalized)
00023 {
00024   int ref = 0;
00025   if (!is_finalized)
00026     {
00027       // We need to do this here else we will leak memory. We cannot call
00028       // close_connection () for the following reasons
00029       // . the event_handlers get_handle () will return an
00030       //   ACE_INVALID_HANDLE as things havent been shutdown
00031       //   properly.
00032       // . We cannot relax the conditions since the conditions are right
00033       //   for other natural cases ie. LF
00034       // Under these odd circumstances we need to take care of things
00035       // ourseleves
00036       ch->transport (0);
00037       ref =  ch->decr_refcount ();
00038     }
00039 
00040   return ref;
00041 }

Generated on Mon Jun 16 13:48:05 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002