chrono::synchrono::SynDDSDataWriterListener Class Reference

Description

Data writer listener that counts number of subscribers listening to a specific topic.

#include <SynDDSListener.h>

Inherits DataWriterListener.

Public Member Functions

virtual void on_publication_matched (eprosima::fastdds::dds::DataWriter *writer, const eprosima::fastdds::dds::PublicationMatchedStatus &info) override
 
void BlockUntilMatches (unsigned int matches)
 Wait for the specified number of matches Each subscriber listener has a callback that will be called when a subscriber is matched with a DataWriter. More...
 

Member Function Documentation

◆ BlockUntilMatches()

void chrono::synchrono::SynDDSDataWriterListener::BlockUntilMatches ( unsigned int  matches)
inline

Wait for the specified number of matches Each subscriber listener has a callback that will be called when a subscriber is matched with a DataWriter.

This function blocks until that the matches are achieved. By default, a subscriber will just wait for a single listener.


The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_synchrono/communication/dds/SynDDSListener.h
  • /builds/uwsbel/chrono/src/chrono_synchrono/communication/dds/SynDDSListener.cpp