00001 // $Id: Connector_Impl.cpp 86593 2009-09-02 14:58:00Z vzykov $ 00002 00003 #ifndef TAO_CONNECTOR_IMPL_CPP 00004 #define TAO_CONNECTOR_IMPL_CPP 00005 00006 #include "tao/Connector_Impl.h" 00007 #include "tao/Transport.h" 00008 00009 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00010 # pragma once 00011 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00012 00013 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00014 00015 template <class SVC_HANDLER> 00016 TAO_Connect_Creation_Strategy<SVC_HANDLER>:: 00017 TAO_Connect_Creation_Strategy (ACE_Thread_Manager* t, 00018 TAO_ORB_Core *orb_core) 00019 : ACE_Creation_Strategy <SVC_HANDLER> (t), 00020 orb_core_ (orb_core) 00021 { 00022 00023 } 00024 00025 template <class SVC_HANDLER> int 00026 TAO_Connect_Creation_Strategy<SVC_HANDLER>::make_svc_handler (SVC_HANDLER *&sh) 00027 { 00028 if (sh == 0) 00029 ACE_NEW_RETURN (sh, 00030 SVC_HANDLER (this->orb_core_), 00031 -1); 00032 00033 sh->transport ()->opened_as (TAO::TAO_CLIENT_ROLE); 00034 00035 // At this point, the #REFCOUNT# is one. 00036 00037 return 0; 00038 } 00039 00040 00041 //////////////////////////////////////////////////////////////// 00042 00043 template <class SVC_HANDLER> 00044 TAO_Connect_Concurrency_Strategy<SVC_HANDLER>:: 00045 TAO_Connect_Concurrency_Strategy (TAO_ORB_Core *orb_core) 00046 : orb_core_ (orb_core) 00047 { 00048 } 00049 00050 template <class SVC_HANDLER> int 00051 TAO_Connect_Concurrency_Strategy<SVC_HANDLER>:: 00052 activate_svc_handler (SVC_HANDLER *sh, 00053 void *arg) 00054 { 00055 return ACE_Concurrency_Strategy<SVC_HANDLER>::activate_svc_handler (sh, 00056 arg); 00057 } 00058 00059 TAO_END_VERSIONED_NAMESPACE_DECL 00060 00061 #endif /* TAO_CONNECTOR_IMPL_CPP */