OpenDDS  Snapshot(2023/04/28-20:55)
TransportReceiveStrategy_T.inl
Go to the documentation of this file.
1 /*
2  *
3  *
4  * Distributed under the OpenDDS License.
5  * See: http://www.opendds.org/license.html
6  */
7 
8 #include "EntryExit.h"
9 #include "TransportReassembly.h"
10 
11 template<typename TH, typename DSH>
12 ACE_INLINE int
14 {
15  DBG_ENTRY_LVL("TransportReceiveStrategy","start",6);
16  return this->start_i();
17 }
18 
19 template<typename TH, typename DSH>
20 ACE_INLINE void
22 {
23  DBG_ENTRY_LVL("TransportReceiveStrategy","stop",6);
24  this->stop_i();
25 }
26 
27 template<typename TH, typename DSH>
28 ACE_INLINE const TH&
30 {
31  return this->receive_transport_header_;
32 }
33 
34 template<typename TH, typename DSH>
35 ACE_INLINE TH&
37 {
38  return this->receive_transport_header_;
39 }
40 
41 template<typename TH, typename DSH>
42 ACE_INLINE const DSH&
44 {
45  return this->data_sample_header_;
46 }
47 
48 template<typename TH, typename DSH>
49 ACE_INLINE DSH&
51 {
52  return this->data_sample_header_;
53 }
54 
55 template<typename TH, typename DSH>
56 ACE_INLINE size_t
58 {
59  return ++index % RECEIVE_BUFFERS;
60 }
61 
62 template<typename TH, typename DSH>
63 ACE_INLINE void
65 {
66  // The subclass needs implement this function for re-establishing
67  // the link upon recv failure.
68 }
size_t successor_index(size_t index) const
Manage an index into the receive buffer array.
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition: EntryExit.h:68
#define ACE_INLINE