Skip to main content

Module publication_data

Module publication_data 

Source
Expand description

PublicationBuiltinTopicData (DDSI-RTPS 2.5 §8.5.4.2, §9.6.2.2.3).

Content of the SEDP publications DATA submessage that a participant sends to make a local DataWriter known to remote participants. Serialized as a PL_CDR_LE-encoded ParameterList in the serialized_payload of a DATA submessage.

topic_name + type_name + GUIDs + minimal QoS fields (durability, reliability). No deadline, liveliness, lifespan, ownership, partition etc. — those are read and stored in the extra vec, but not typed.

QoS enums local here — once WP 1.5 brings full QoS matching, DurabilityKind/ReliabilityKind move to zerodds-qos.

Modules§

data_representation
DataRepresentationId — XTypes 1.3 §7.6.3.1.1 + RTPS 2.5 PID 0x0073.

Structs§

PublicationBuiltinTopicData
Discovered Publication / lokaler DataWriter — Subset.
ReliabilityQos
Reliability QoS value: kind + max_blocking_time.

Enums§

DurabilityKind
Durability-QoS Kind.
ReliabilityKind
Reliability-QoS Kind.

Functions§

collect_locator_params
Collects all locators announced under pid_id (a repeated PID = list). BE locators are skipped — consistent with participant_data::decode_locator (BE locator not implemented).
decode_octet_seq
Decodes an opaque sequence<octet> from the PID value.
encode_locator_params
Emits a separate parameter per locator — an RTPS locator list is the repeated PID (spec §8.3.5.2 ParameterList).
encode_octet_seq_le
Partition = sequence. CDR layout: u32 count + N × CDR string (each CDR string with its own alignment padding). Encodes an opaque sequence<octet> as u32 length + N byte data, padded to a 4-byte boundary. DDS QoS UserData/TopicData/GroupData.
inject_pid_shm_locator
ADR-0006 / zerodds-flatdata-1.0 §3.1: injects PID_SHM_LOCATOR (vendor PID 0x8001) into an already PL-CDR-LE-encoded PublicationBuiltinTopicData byte sequence. The vendor PID carries NO MUST_UNDERSTAND bit — foreign vendors ignore it safely, ZeroDDS readers on the same host attach to SHM.