19.1.2.4. DomainParticipantListener

class fastdds.DomainParticipantListener

Class DomainParticipantListener, overrides behaviour towards certain events.

on_participant_discovery(*args)

This method is called when a new Participant is discovered, or a previously discovered participant changes its QOS or is removed.

participant Pointer to the Participant which discovered the remote participant. info Remote participant information. User can take ownership of the object. should_be_ignored Flag to indicate the library to automatically ignore the discovered Participant.

on_publisher_discovery(*args)

Overload 1:

This method is called when a new DataWriter is discovered, or a previously discovered DataWriter changes its QOS or is removed.

participant Pointer to the Participant which discovered the remote DataWriter. info Remote DataWriter information. User can take ownership of the object.


Overload 2:

This method is called when a new DataWriter is discovered, or a previously discovered DataWriter changes its QOS or is removed.

Warning: Not Supported. This callback will never be called in the current version.

participant Pointer to the Participant which discovered the remote DataWriter. info Remote DataWriter information. User can take ownership of the object. should_be_ignored Flag to indicate the library to automatically ignore the discovered DataWriter.

on_subscriber_discovery(*args)

Overload 1:

This method is called when a new DataReader is discovered, or a previously discovered DataReader changes its QOS or is removed.

participant Pointer to the Participant which discovered the remote DataReader. info Remote DataReader information. User can take ownership of the object.


Overload 2:

This method is called when a new DataReader is discovered, or a previously discovered DataReader changes its QOS or is removed.

Warning: Not Supported. This callback will never be called in the current version.

participant Pointer to the Participant which discovered the remote DataReader. info Remote DataReader information. User can take ownership of the object. should_be_ignored Flag to indicate the library to automatically ignore the discovered DataReader.

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