#include <Bind_Dispatcher_Guard.h>
Collaboration diagram for TAO_Bind_Dispatcher_Guard:

Public Types | |
| enum | { UNBIND = 0, NO_UNBIND } |
| State information. More... | |
Public Member Functions | |
| TAO_Bind_Dispatcher_Guard (CORBA::ULong request_id, TAO_Reply_Dispatcher *rd, TAO_Transport_Mux_Strategy *tms) | |
| ~TAO_Bind_Dispatcher_Guard (void) | |
| int | unbind_dispatcher (void) |
| Returns 0 if succesful and non-zero otherwise. | |
| int | status (void) const |
| Get status. | |
| void | status (int status) |
| Set status. | |
Private Attributes | |
| int | status_ |
| CORBA::ULong | request_id_ |
| TAO_Reply_Dispatcher * | rd_ |
| TAO_Transport_Mux_Strategy * | tms_ |
|
|
State information.
Definition at line 40 of file Bind_Dispatcher_Guard.h.
|
|
||||||||||||||||
|
Definition at line 16 of file Bind_Dispatcher_Guard.cpp. References TAO_Transport_Mux_Strategy::bind_dispatcher(), NO_UNBIND, and tms_.
00020 : status_(TAO_Bind_Dispatcher_Guard::UNBIND), 00021 request_id_(request_id), 00022 rd_(rd), 00023 tms_(tms) 00024 { 00025 int const 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 } |
|
|
Definition at line 34 of file Bind_Dispatcher_Guard.cpp. References tms_, and TAO_Transport_Mux_Strategy::unbind_dispatcher().
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 }
|
|
|
Set status.
Definition at line 22 of file Bind_Dispatcher_Guard.i.
00023 {
00024 this->status_ = s;
00025 }
|
|
|
Get status.
Definition at line 28 of file Bind_Dispatcher_Guard.i. Referenced by TAO::LocateRequest_Invocation::invoke(), and TAO::Synch_Twoway_Invocation::remote_twoway().
00029 {
00030 return this->status_;
00031 }
|
|
|
Returns 0 if succesful and non-zero otherwise.
Definition at line 34 of file Bind_Dispatcher_Guard.i. References NO_UNBIND, tms_, and TAO_Transport_Mux_Strategy::unbind_dispatcher().
00035 {
00036 int const retval =
00037 this->tms_->unbind_dispatcher (this->request_id_);
00038
00039 // Already unbound and so do not try again during destruction.
00040 this->status_ =
00041 TAO_Bind_Dispatcher_Guard::NO_UNBIND;
00042
00043 return retval;
00044 }
|
|
|
Definition at line 57 of file Bind_Dispatcher_Guard.h. |
|
|
Definition at line 56 of file Bind_Dispatcher_Guard.h. |
|
|
Definition at line 55 of file Bind_Dispatcher_Guard.h. |
|
|
Definition at line 58 of file Bind_Dispatcher_Guard.h. Referenced by TAO_Bind_Dispatcher_Guard(), unbind_dispatcher(), and ~TAO_Bind_Dispatcher_Guard(). |
1.3.6