Class ParticipantListener

Class Documentation

class ParticipantListener

Class ParticipantListener, overrides behaviour towards certain events.

Public Functions

inline ParticipantListener()
inline virtual ~ParticipantListener()
inline virtual void onParticipantDiscovery(Participant *participant, rtps::ParticipantDiscoveryInfo &&info)

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

Parameters:
  • participant – Pointer to the Participant which discovered the remote participant.

  • info – Remote participant information. User can take ownership of the object.

inline virtual void onSubscriberDiscovery(Participant *participant, rtps::ReaderDiscoveryInfo &&info)

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

Parameters:
  • participant – Pointer to the Participant which discovered the remote subscriber.

  • info – Remote subscriber information. User can take ownership of the object.

inline virtual void onPublisherDiscovery(Participant *participant, rtps::WriterDiscoveryInfo &&info)

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

Parameters:
  • participant – Pointer to the Participant which discovered the remote publisher.

  • info – Remote publisher information. User can take ownership of the object.