Skip to main content

Module typelookup

Module typelookup 

Source
Expand description

The built-in endpoints of the TypeLookup service (DDS-XTypes 1.3 clause 7.6.3.3), with which participants ask each other for the TypeObjects of the types their endpoints announce.

TypeLookup holds the four endpoints of a participant, without doing any I/O, like crate::sedp::Sedp. As a server it answers the requests addressed to it from a TypeRegistry: getTypes with the TypeObjects it has, getTypeDependencies with the types those depend on. As a client it sends requests (TypeLookup::request) and hands back the replies (TypeLookupReplied); what to do with them is the caller’s.

Requests and replies go to every matched reader, as the endpoints have no key: a server answers only the requests that name its instance (7.6.3.3.4), and a client matches a reply to its request by the request’s identity. Some implementations put another identity in their replies; a reply that matches no request is then taken for the oldest request of the same operation to the participant that wrote it.

Structs§

TypeLookup
The TypeLookup service endpoints of one participant.
TypeLookupReplied
A reply to one of our requests.