Go to the documentation of this file.00001
00002
00003
00004
00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00006
00007 ACE_INLINE bool
00008 TAO_Transport::queue_is_empty_i (void) const
00009 {
00010 return (this->head_ == 0);
00011 }
00012
00013 ACE_INLINE CORBA::ULong
00014 TAO_Transport::tag (void) const
00015 {
00016 return this->tag_;
00017 }
00018
00019 ACE_INLINE TAO_ORB_Core *
00020 TAO_Transport::orb_core (void) const
00021 {
00022 return this->orb_core_;
00023 }
00024
00025 ACE_INLINE TAO_Transport_Mux_Strategy *
00026 TAO_Transport::tms (void) const
00027 {
00028 return tms_;
00029 }
00030
00031
00032 ACE_INLINE TAO_Wait_Strategy *
00033 TAO_Transport::wait_strategy (void) const
00034 {
00035 return this->ws_;
00036 }
00037
00038 ACE_INLINE int
00039 TAO_Transport::bidirectional_flag (void) const
00040 {
00041 return this->bidirectional_flag_;
00042 }
00043
00044 ACE_INLINE void
00045 TAO_Transport::bidirectional_flag (int flag)
00046 {
00047 this->bidirectional_flag_ = flag;
00048 }
00049
00050 ACE_INLINE TAO::Connection_Role
00051 TAO_Transport::opened_as () const
00052 {
00053 return this->opening_connection_role_;
00054 }
00055
00056 ACE_INLINE void
00057 TAO_Transport::opened_as (TAO::Connection_Role role)
00058 {
00059 this->opening_connection_role_ = role;
00060 }
00061
00062 ACE_INLINE TAO::Transport_Cache_Manager::HASH_MAP_ENTRY *
00063 TAO_Transport::cache_map_entry (void)
00064 {
00065 return this->cache_map_entry_;
00066 }
00067
00068 ACE_INLINE void
00069 TAO_Transport::cache_map_entry (
00070 TAO::Transport_Cache_Manager::HASH_MAP_ENTRY *entry)
00071 {
00072
00073 ACE_GUARD (ACE_Lock, ace_mon, *this->handler_lock_);
00074 this->cache_map_entry_ = entry;
00075 }
00076
00077 ACE_INLINE unsigned long
00078 TAO_Transport::purging_order (void) const
00079 {
00080 return this->purging_order_;
00081 }
00082
00083 ACE_INLINE void
00084 TAO_Transport::purging_order (unsigned long value)
00085 {
00086
00087
00088
00089
00090 this->purging_order_ = value;
00091 }
00092
00093 ACE_INLINE size_t
00094 TAO_Transport::id (void) const
00095 {
00096 return this->id_;
00097 }
00098
00099 ACE_INLINE void
00100 TAO_Transport::id (size_t id)
00101 {
00102 this->id_ = id;
00103 }
00104
00105 ACE_INLINE bool
00106 TAO_Transport::queue_is_empty (void)
00107 {
00108 ACE_GUARD_RETURN (ACE_Lock,
00109 ace_mon,
00110 *this->handler_lock_,
00111 false);
00112 return this->queue_is_empty_i ();
00113 }
00114
00115 ACE_INLINE int
00116 TAO_Transport::flush_timer_pending (void) const
00117 {
00118 return this->flush_timer_id_ != -1;
00119 }
00120
00121 ACE_INLINE void
00122 TAO_Transport::reset_flush_timer (void)
00123 {
00124 this->flush_timer_id_ = -1;
00125 this->current_deadline_ = ACE_Time_Value::zero;
00126 }
00127
00128 ACE_INLINE TAO_GIOP_Message_Base *
00129 TAO_Transport::messaging_object (void)
00130 {
00131 return this->messaging_object_;
00132 }
00133
00134
00135
00136
00137
00138 ACE_INLINE TAO_Codeset_Translator_Base *
00139 TAO_Transport::char_translator (void) const
00140 {
00141 return this->char_translator_;
00142 }
00143
00144 ACE_INLINE TAO_Codeset_Translator_Base *
00145 TAO_Transport::wchar_translator (void) const
00146 {
00147 return this->wchar_translator_;
00148 }
00149
00150 ACE_INLINE void
00151 TAO_Transport::char_translator (TAO_Codeset_Translator_Base *tf)
00152 {
00153 this->char_translator_ = tf;
00154 this->tcs_set_ = 1;
00155 }
00156
00157 ACE_INLINE void
00158 TAO_Transport::wchar_translator (TAO_Codeset_Translator_Base *tf)
00159 {
00160 this->wchar_translator_ = tf;
00161 this->tcs_set_ = 1;
00162 }
00163
00164
00165 ACE_INLINE CORBA::Boolean
00166 TAO_Transport::is_tcs_set(void) const
00167 {
00168 return tcs_set_;
00169 }
00170
00171 ACE_INLINE void
00172 TAO_Transport::first_request_sent (bool flag)
00173 {
00174 this->first_request_ = flag;
00175 }
00176
00177 ACE_INLINE bool
00178 TAO_Transport::first_request (void) const
00179 {
00180 return this->first_request_;
00181 }
00182
00183 ACE_INLINE bool
00184 TAO_Transport::is_connected (void) const
00185 {
00186 ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->handler_lock_, false);
00187 return this->is_connected_;
00188 }
00189
00190 ACE_INLINE TAO_Connection_Handler *
00191 TAO_Transport::connection_handler (void)
00192 {
00193 return this->connection_handler_i();
00194 }
00195
00196 ACE_INLINE size_t
00197 TAO_Transport::recv_buffer_size (void) const
00198 {
00199 return this->recv_buffer_size_;
00200 }
00201
00202 ACE_INLINE size_t
00203 TAO_Transport::sent_byte_count (void) const
00204 {
00205 return this->sent_byte_count_;
00206 }
00207
00208 ACE_INLINE void
00209 TAO_Transport::set_flush_in_post_open (void)
00210 {
00211 this->flush_in_post_open_ = true;
00212 }
00213
00214 #if TAO_HAS_TRANSPORT_CURRENT == 1
00215
00216 ACE_INLINE TAO::Transport::Stats*
00217 TAO_Transport::stats (void) const
00218 {
00219 return this->stats_;
00220 }
00221
00222 ACE_INLINE
00223 TAO::Transport::Stats::Stats ()
00224 : messages_rcvd_ (0)
00225 , messages_sent_ (0)
00226 , bytes_rcvd_()
00227 , bytes_sent_ ()
00228 , opened_since_ ()
00229 {
00230 }
00231
00232 ACE_INLINE void
00233 TAO::Transport::Stats::messages_sent (size_t message_length)
00234 {
00235 this->messages_sent_++;
00236 this->bytes_sent_.sample (message_length);
00237 }
00238
00239 ACE_INLINE CORBA::LongLong
00240 TAO::Transport::Stats::messages_sent (void) const
00241 {
00242 return this->messages_sent_;
00243 }
00244
00245 ACE_INLINE CORBA::LongLong
00246 TAO::Transport::Stats::bytes_sent (void) const
00247 {
00248 return this->bytes_sent_.sum_;
00249 }
00250
00251 ACE_INLINE void
00252 TAO::Transport::Stats::messages_received (size_t message_length)
00253 {
00254 this->messages_rcvd_++;
00255 this->bytes_rcvd_.sample (message_length);
00256 }
00257
00258 ACE_INLINE CORBA::LongLong
00259 TAO::Transport::Stats::messages_received (void) const
00260 {
00261 return this->messages_rcvd_;
00262 }
00263
00264 ACE_INLINE CORBA::LongLong
00265 TAO::Transport::Stats::bytes_received (void) const
00266 {
00267 return this->bytes_rcvd_.sum_;
00268 }
00269
00270 ACE_INLINE void
00271 TAO::Transport::Stats::opened_since (const ACE_Time_Value& tv)
00272 {
00273 this->opened_since_ = tv;
00274 }
00275
00276 ACE_INLINE const ACE_Time_Value&
00277 TAO::Transport::Stats::opened_since (void) const
00278 {
00279 return this->opened_since_;
00280 }
00281 #endif
00282
00283
00284 TAO_END_VERSIONED_NAMESPACE_DECL