blob: a3bb91e044a2581846e85839a5997f40ae499f12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
|
// -*- C++ -*-
//
// $Id$
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE CORBA::ULong
TAO_Transport::tag (void) const
{
return this->tag_;
}
ACE_INLINE TAO_ORB_Core *
TAO_Transport::orb_core (void) const
{
return this->orb_core_;
}
ACE_INLINE TAO_Transport_Mux_Strategy *
TAO_Transport::tms (void) const
{
return tms_;
}
// Return the Wait strategy used by the Transport.
ACE_INLINE TAO_Wait_Strategy *
TAO_Transport::wait_strategy (void) const
{
return this->ws_;
}
ACE_INLINE int
TAO_Transport::bidirectional_flag (void) const
{
return this->bidirectional_flag_;
}
ACE_INLINE void
TAO_Transport::bidirectional_flag (int flag)
{
this->bidirectional_flag_ = flag;
}
ACE_INLINE TAO::Connection_Role
TAO_Transport::opened_as () const
{
return this->opening_connection_role_;
}
ACE_INLINE void
TAO_Transport::opened_as (TAO::Connection_Role role)
{
this->opening_connection_role_ = role;
}
ACE_INLINE TAO::Transport_Cache_Manager::HASH_MAP_ENTRY *
TAO_Transport::cache_map_entry (void)
{
return this->cache_map_entry_;
}
ACE_INLINE void
TAO_Transport::cache_map_entry (
TAO::Transport_Cache_Manager::HASH_MAP_ENTRY *entry)
{
this->cache_map_entry_ = entry;
}
ACE_INLINE unsigned long
TAO_Transport::purging_order (void) const
{
return this->purging_order_;
}
ACE_INLINE void
TAO_Transport::purging_order (unsigned long value)
{
// This should only be called by the Transport Cache Manager when
// it is holding it's lock.
// The transport should still be here since the cache manager still
// has a reference to it.
this->purging_order_ = value;
}
ACE_INLINE size_t
TAO_Transport::id (void) const
{
return this->id_;
}
ACE_INLINE void
TAO_Transport::id (size_t id)
{
this->id_ = id;
}
ACE_INLINE bool
TAO_Transport::queue_is_empty (void)
{
ACE_GUARD_RETURN (ACE_Lock,
ace_mon,
*this->handler_lock_,
false);
return this->queue_is_empty_i ();
}
ACE_INLINE int
TAO_Transport::flush_timer_pending (void) const
{
return this->flush_timer_id_ != -1;
}
ACE_INLINE void
TAO_Transport::reset_flush_timer (void)
{
this->flush_timer_id_ = -1;
this->current_deadline_ = ACE_Time_Value::zero;
}
ACE_INLINE void
TAO_Transport::messaging_init (TAO_GIOP_Message_Version const &version)
{
this->messaging_object_->init (version.major, version.minor);
}
ACE_INLINE TAO_GIOP_Message_Base *
TAO_Transport::messaging_object (void)
{
return this->messaging_object_;
}
//********************************************************************
// codeset related methods
ACE_INLINE TAO_Codeset_Translator_Base *
TAO_Transport::char_translator (void) const
{
return this->char_translator_;
}
ACE_INLINE TAO_Codeset_Translator_Base *
TAO_Transport::wchar_translator (void) const
{
return this->wchar_translator_;
}
ACE_INLINE void
TAO_Transport::char_translator (TAO_Codeset_Translator_Base *tf)
{
this->char_translator_ = tf;
this->tcs_set_ = 1;
}
ACE_INLINE void
TAO_Transport::wchar_translator (TAO_Codeset_Translator_Base *tf)
{
this->wchar_translator_ = tf;
this->tcs_set_ = 1;
}
/// CodeSet negotiation
ACE_INLINE CORBA::Boolean
TAO_Transport::is_tcs_set(void) const
{
return tcs_set_;
}
ACE_INLINE void
TAO_Transport::first_request_sent (void)
{
this->first_request_ = 0;
}
ACE_INLINE bool
TAO_Transport::is_connected (void) const
{
ACE_GUARD_RETURN (ACE_Lock,
ace_mon,
*this->handler_lock_,
false);
return this->is_connected_;
}
ACE_INLINE TAO_Connection_Handler *
TAO_Transport::connection_handler (void)
{
return this->connection_handler_i();
}
ACE_INLINE size_t
TAO_Transport::recv_buffer_size (void) const
{
return this->recv_buffer_size_;
}
ACE_INLINE size_t
TAO_Transport::sent_byte_count (void) const
{
return this->sent_byte_count_;
}
#if TAO_HAS_TRANSPORT_CURRENT == 1
ACE_INLINE TAO::Transport::Stats*
TAO_Transport::stats (void) const
{
return this->stats_;
}
ACE_INLINE
TAO::Transport::Stats::Stats ()
: messages_rcvd_ (0)
, messages_sent_ (0)
, bytes_rcvd_()
, bytes_sent_ ()
, opened_since_ ()
{
}
ACE_INLINE void
TAO::Transport::Stats::messages_sent (size_t message_length)
{
this->messages_sent_++;
this->bytes_sent_.sample (message_length);
}
ACE_INLINE CORBA::LongLong
TAO::Transport::Stats::messages_sent (void) const
{
return this->messages_sent_;
}
ACE_INLINE CORBA::LongLong
TAO::Transport::Stats::bytes_sent (void) const
{
return this->bytes_sent_.sum_;
}
ACE_INLINE void
TAO::Transport::Stats::messages_received (size_t message_length)
{
this->messages_rcvd_++;
this->bytes_rcvd_.sample (message_length);
}
ACE_INLINE CORBA::LongLong
TAO::Transport::Stats::messages_received (void) const
{
return this->messages_rcvd_;
}
ACE_INLINE CORBA::LongLong
TAO::Transport::Stats::bytes_received (void) const
{
return this->bytes_rcvd_.sum_;
}
ACE_INLINE void
TAO::Transport::Stats::opened_since (const ACE_Time_Value& tv)
{
this->opened_since_ = tv;
}
ACE_INLINE const ACE_Time_Value&
TAO::Transport::Stats::opened_since (void) const
{
return this->opened_since_;
}
#endif /* TAO_HAS_TRANSPORT_CURRENT == 1 */
TAO_END_VERSIONED_NAMESPACE_DECL
|