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

Bind_Dispatcher_Guard.cpp

Go to the documentation of this file.
00001 #include "tao_pch.h"
00002 // This may look like C, but it's really -*- C++ -*-
00003 // $Id: Bind_Dispatcher_Guard.cpp,v 1.1.1.2.2.1 2003/03/14 16:05:12 chad Exp $
00004 
00005 
00006 #include "tao/Bind_Dispatcher_Guard.h"
00007 
00008 #if !defined (__ACE_INLINE__)
00009 # include "tao/Bind_Dispatcher_Guard.i"
00010 #endif /* ! __ACE_INLINE__ */
00011 
00012 ACE_RCSID (tao,
00013            Bind_Dispatcher_Guard,
00014            "$Id: Bind_Dispatcher_Guard.cpp,v 1.1.1.2.2.1 2003/03/14 16:05:12 chad Exp $")
00015 
00016 TAO_Bind_Dispatcher_Guard::TAO_Bind_Dispatcher_Guard (
00017                                          CORBA::ULong request_id,
00018                                          TAO_Reply_Dispatcher* rd,
00019                                          TAO_Transport_Mux_Strategy* tms)
00020  : status_(TAO_Bind_Dispatcher_Guard::UNBIND),
00021    request_id_(request_id),
00022    rd_(rd),
00023    tms_(tms)
00024 {
00025   int retval =
00026     this->tms_->bind_dispatcher (this->request_id_,
00027                                  this->rd_);
00028 
00029   if (retval == -1 )
00030     this->status_ =
00031       TAO_Bind_Dispatcher_Guard::NO_UNBIND;
00032 }
00033 
00034 TAO_Bind_Dispatcher_Guard::~TAO_Bind_Dispatcher_Guard (void)
00035 {
00036   // We try unbinding. If it works it works, else cant do much about
00037   // it..
00038   if (this->status_ == TAO_Bind_Dispatcher_Guard::UNBIND)
00039     (void) this->tms_->unbind_dispatcher (this->request_id_);
00040 }

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