00001 // -*- C++ -*- 00002 // 00003 // SSLIOP_Connection_Handler.i,v 1.5 2005/11/16 07:53:24 ossama Exp 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 ACE_INLINE 00008 TAO::SSLIOP::State_Guard::State_Guard ( 00009 TAO::SSLIOP::Connection_Handler *handler, 00010 int &result) 00011 : handler_ (handler), 00012 previous_current_impl_ (0), 00013 current_impl_ (), 00014 setup_done_ (false) 00015 { 00016 // Set up the SSLIOP::Current object. 00017 result = this->handler_->setup_ssl_state (this->previous_current_impl_, 00018 &(this->current_impl_), 00019 this->setup_done_); 00020 } 00021 00022 ACE_INLINE 00023 TAO::SSLIOP::State_Guard::~State_Guard (void) 00024 { 00025 this->handler_->teardown_ssl_state (this->previous_current_impl_, 00026 this->setup_done_); 00027 } 00028 00029 TAO_END_VERSIONED_NAMESPACE_DECL