18.1.2.4. DomainParticipantListener¶
- class fastdds.DomainParticipantListener¶
Class DomainParticipantListener, overrides behaviour towards certain events.
- on_participant_discovery(participant, info)¶
This method is called when a new Participant is discovered, or a previously discovered participant changes its QOS or is removed.
- Parameters
participant (
DomainParticipant
) – Pointer to the Participant which discovered the remote participant.info (eprosima::fastrtps::rtps::ParticipantDiscoveryInfo) – Remote participant information. User can take ownership of the object.
- on_publisher_discovery(participant, info)¶
This method is called when a new Publisher is discovered, or a previously discovered publisher changes its QOS or is removed.
- Parameters
participant (
DomainParticipant
) – Pointer to the Participant which discovered the remote publisher.info (eprosima::fastrtps::rtps::WriterDiscoveryInfo) – Remote publisher information. User can take ownership of the object.
- on_subscriber_discovery(participant, info)¶
This method is called when a new Subscriber is discovered, or a previously discovered subscriber changes its QOS or is removed.
- Parameters
participant (
DomainParticipant
) – Pointer to the Participant which discovered the remote subscriber.info (eprosima::fastrtps::rtps::ReaderDiscoveryInfo) – Remote subscriber information. User can take ownership of the object.
- on_type_dependencies_reply(participant, request_sample_id, dependencies)¶
This method is called when the typelookup client received a reply to a getTypeDependencies request. The user may want to retrieve these new types using the getTypes request and create a new DynamicType using the retrieved TypeObject.
- on_type_discovery(participant, request_sample_id, topic, identifier, object, dyn_type)¶
This method is called when a participant discovers a new Type The ownership of all object belongs to the caller so if needs to be used after the method ends, a full copy should be perform (except for dyn_type due to its shared_ptr nature. For example: fastrtps::types::TypeIdentifier new_type_id = *identifier;
- on_type_information_received(participant, topic_name, type_name, type_information)¶
This method is called when a participant receives a TypeInformation while discovering another participant.
- property thisown¶
The membership flag