diff options
Diffstat (limited to 'TAO/tao/Acceptor_Impl.cpp')
-rw-r--r-- | TAO/tao/Acceptor_Impl.cpp | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/TAO/tao/Acceptor_Impl.cpp b/TAO/tao/Acceptor_Impl.cpp deleted file mode 100644 index f7d35cfaddd..00000000000 --- a/TAO/tao/Acceptor_Impl.cpp +++ /dev/null @@ -1,84 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO -// -// = FILENAME -// Acceptor_Impl.cpp -// -// = AUTHOR -// Carlos O'Ryan <coryan@cs.wustl.edu> -// Ossama Othman <othman@cs.wustl.edu> -// -// ============================================================================ - -#ifndef TAO_ACCEPTOR_IMPL_C -#define TAO_ACCEPTOR_IMPL_C - -#include "tao/Acceptor_Impl.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include "tao/ORB_Core.h" -#include "tao/Server_Strategy_Factory.h" - -#if !defined(__ACE_INLINE__) -#include "tao/Acceptor_Impl.i" -#endif /* __ACE_INLINE__ */ - -ACE_RCSID(tao, Acceptor_Impl, "$Id$") - -template <class SVC_HANDLER, ACE_PEER_ACCEPTOR_1> int -TAO_Acceptor_Impl<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::open (TAO_ORB_Core* orb_core, - const ACE_PEER_ACCEPTOR_ADDR &local_address, - int flags, - int use_select, - int reuse_addr) -{ - this->orb_core_ = orb_core; - return this->ACE_Acceptor<SVC_HANDLER,ACE_PEER_ACCEPTOR_2>::open - (local_address, - this->orb_core_->reactor (), - flags, - use_select, - reuse_addr); -} - -template <class SVC_HANDLER, ACE_PEER_ACCEPTOR_1> int -TAO_Acceptor_Impl<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::make_svc_handler (SVC_HANDLER *&sh) -{ - if (sh == 0) - { - if (this->orb_core_ == 0) - this->orb_core_ = TAO_ORB_Core_instance (); - - ACE_NEW_RETURN (sh, - SVC_HANDLER (this->orb_core_), - -1); - } - return 0; -} - -template <class SVC_HANDLER, ACE_PEER_ACCEPTOR_1> int -TAO_Acceptor_Impl<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::activate_svc_handler (SVC_HANDLER *sh) -{ - if (this->ACE_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::activate_svc_handler (sh) == -1) - return -1; - - TAO_Server_Strategy_Factory *f = - this->orb_core_->server_factory (); - - if (f->activate_server_connections ()) - return sh->activate (f->server_connection_thread_flags (), - f->server_connection_thread_count ()); - - return this->reactor ()->register_handler - (sh, ACE_Event_Handler::READ_MASK); -} - -#endif /* TAO_ACCEPTOR_IMPL_C */ |