3 #include "tao/Transport.h"
5 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
7 ACE_INLINE TAO_ORB_Core *
8 TAO_Connection_Handler::orb_core ()
10 return this->orb_core_;
13 ACE_INLINE TAO_Transport *
14 TAO_Connection_Handler::transport ()
16 return this->transport_;
20 TAO_Connection_Handler::is_closed () const
22 return (this->state_ == TAO_LF_Event::LFS_CONNECTION_CLOSED ||
23 this->state_ == TAO_LF_Event::LFS_TIMEOUT || this->is_closed_);
27 TAO_Connection_Handler::is_timeout () const
29 return (this->state_ == TAO_LF_Event::LFS_TIMEOUT);
33 TAO_Connection_Handler::is_open () const
35 return this->state_ == TAO_LF_Event::LFS_SUCCESS;
39 TAO_Connection_Handler::is_connecting () const
41 return this->state_ == TAO_LF_Event::LFS_CONNECTION_WAIT;
45 TAO_Connection_Handler::connection_pending ()
47 if (!this->connection_pending_)
49 this->connection_pending_ = true;
50 this->transport()->add_reference();
55 TAO_Connection_Handler::cancel_pending_connection ()
57 if (this->connection_pending_)
59 this->connection_pending_ = false;
60 this->transport()->remove_reference();
64 /// Derived classes should implement this for proper support with the
65 /// Blocking Flushing Strategy.
67 TAO_Connection_Handler::handle_write_ready (const ACE_Time_Value *)
72 TAO_END_VERSIONED_NAMESPACE_DECL