Skip to main content

Module sedp

Module sedp 

Source
Expand description

The Simple Endpoint Discovery Protocol (DDSI-RTPS 2.5, 8.5.4, 8.5.5 and 9.6.3).

EndpointData is DiscoveredWriterData and DiscoveredReaderData and their PL_CDR form. Sedp holds the four built-in SEDP endpoints of a participant (publications and subscriptions, each a writer and a reader), without doing any I/O. They are reliable, using crate::reliable. The optional topic endpoints (8.5.4.3) are not provided.

Sedp also matches local and remote endpoints: the same topic name, consistent types (DDS-XTypes 1.3, 7.6.3.4: the reader’s type assignable from the writer’s when both announce PID_TYPE_INFORMATION, else the same type name), compatible RELIABILITY, DURABILITY, DEADLINE, LIVELINESS and DATA_REPRESENTATION, and a shared partition (crate::qos). A pair that would match but for its QoS is reported as SedpEvent::IncompatibleQos, one whose types are not consistent as SedpEvent::InconsistentTopic. Assignability is decided on the TypeObjects in the TypeRegistry (Sedp::registry_mut); a pair whose types are not all there waits, unmatched, until they are (Sedp::unresolved_types: what to ask for with crate::typelookup).

The caller connects it to SPDP: Sedp::add_participant when a participant is discovered or updated, Sedp::remove_participant when it is gone, and adds Sedp::BUILTIN_ENDPOINTS to the local availableBuiltinEndpoints.

Modules§

data_representation
Data representation identifiers (DDS-XTypes 1.3, 7.6.3.1.1).

Structs§

ContentFilterProperty
ContentFilterProperty_t (DDSI-RTPS 2.5, 8.7.3.1, Table 8.86): the filter of a reader of a content filtered topic.
EndpointData
DiscoveredWriterData or DiscoveredReaderData (8.5.4.4, 9.6.3.2): the parts of PublicationBuiltinTopicData or SubscriptionBuiltinTopicData modelled here, with the writer or reader proxy.
Sedp
The SEDP built-in endpoints of one participant, and the endpoint matching.
SedpConfig
Settings of Sedp: the timing of its reliable endpoints.

Enums§

Match
How a writer and a reader stand towards each other.
SedpEvent
A change in the remote endpoints or in the matches.

Constants§

DATA_REPRESENTATION_QOS_POLICY_ID
DATA_REPRESENTATION_QOS_POLICY_ID (DDS-XTypes 1.3, Annex D).

Functions§

endpoints_match
Whether a writer and a reader match, with no TypeObjects known: the same topic, the same type (by name, or by TypeIdentifier when both announce one), compatible QoS, and a shared partition.
match_endpoints
Whether a writer and a reader match, and if not, why (DDS 1.4, 2.2.3; DDS-XTypes 1.3, 7.6.3.4.2). registry holds the TypeObjects known, for when the types differ.
same_topic
Whether two endpoints are of the same topic: of the same name, or one of a topic that the other knows by an alias (DDS-RPC 1.0, 7.4.3).