OpenDDS  Snapshot(2023/04/28-20:55)
RtpsTransportHeader.h
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 #ifndef OPENDDS_DCPS_TRANSPORT_RTPS_UDP_RTPSTRANSPORTHEADER_H
9 #define OPENDDS_DCPS_TRANSPORT_RTPS_UDP_RTPSTRANSPORTHEADER_H
10 
11 #include "dds/DCPS/Definitions.h"
13 #include "dds/DCPS/RTPS/RtpsCoreC.h"
14 
16 class ACE_Message_Block;
18 
20 
21 namespace OpenDDS {
22 namespace DCPS {
23 
24 /// Adapt the TransportReceiveStrategy for RTPS's "transport" (message) Header
26 
27  static size_t get_max_serialized_size();
28 
32 
33  bool valid() const;
34 
35  bool last_fragment();
36  void last_fragment(bool frag);
37  const SequenceNumber& sequence();
38 
39  void init(ACE_Message_Block& mb);
40  void incomplete(ACE_Message_Block& mb);
41 
42  size_t length_;
44  bool valid_;
45 };
46 
47 }
48 }
49 
51 
52 #ifdef __ACE_INLINE__
53 #include "RtpsTransportHeader.inl"
54 #endif
55 
56 #endif
#define ACE_BEGIN_VERSIONED_NAMESPACE_DECL
RtpsTransportHeader & operator=(ACE_Message_Block &mb)
Adapt the TransportReceiveStrategy for RTPS's "transport" (message) Header.
#define ACE_END_VERSIONED_NAMESPACE_DECL
void incomplete(ACE_Message_Block &mb)
Sequence number abstraction. Only allows positive 64 bit values.
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
void init(ACE_Message_Block &mb)
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28