Skip to main content

Module submessage_header

Module submessage_header 

Source
Expand description

Submessage-Header (DDSI-RTPS 2.5 §8.3.4).

Every submessage in an RTPS datagram begins with a 4-byte header:

  0                   1                   2                   3
  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | submessageId  |     flags     |       octetsToNextHeader      |
 +---------------+---------------+---------------+---------------+

flags carries at least the E flag (bit 0) for the endianness of the submessage body (1 = LE, 0 = BE). octetsToNextHeader is the body length in bytes; 0 marks a last-submessage special behavior (see Spec §8.3.4.2).

Structs§

SubmessageHeader
Submessage-Header.

Enums§

SubmessageId
Submessage IDs supported in phase 0. Values from Spec-Tabelle 8.13.

Constants§

FLAG_E_LITTLE_ENDIAN
E-Flag-Bit-Position im Flag-Byte.