16.3.14 Getting Participant Protocol Status
Statistics about corrupted RTPS messages received by the participant can be obtained from the DomainParticipantProtocolStatus.
Type |
Field Name |
Description |
DDS_LongLong |
corrupted_rtps_message_count |
The number of corrupted RTPS messages detected by the participant. |
DDS_LongLong |
corrupted_rtps_message_count_change |
The incremental change in the number of corrupted messages detected since the last time the status was read. |
DDS_Time_t |
last_corrupted_message_timestamp |
The timestamp of the last corrupted RTPS message detected by the participant. |
You can get the DomainParticipantProtocolStatus by using the get_participant_protocol_status() operation. The WireProtocolQosPolicy’s compute_crc and check_crc must be enabled in the publishing and subscribing applications, respectively, when the protocol status is obtained.
DDS_ReturnCode_t get_participant_protocol_status(DDS_DomainParticipantProtocolStatus &status)