listener

2 posts / 0 new
Last post
Offline
Last seen: 2 years 11 months ago
Joined: 07/08/2021
Posts: 4
Modern C++11 Listener Example

I've been working on implementing a modern listener for a DataReader in C++11 and it's causing me issues.  The examples are all C++03 that I can see.

Can anyone point me to an example that uses a Modern C++11 listener? I'm mostly interested in the class that I need to inherit from the template dds::sub::DataReaderListener<T> along with it's overrides and then calling set_listener on the data reader.

1 post / 0 new
Offline
Last seen: 4 years 10 months ago
Joined: 08/22/2019
Posts: 4
DataReaderListener not called

Hi,

I have successfully set up a publisher in a Java application, and its data is received by another participant. Registering the same participant that is publishing the data as a subscriber seems to be successful, too, but it seems my DataReaderListener is never called when something is published on the topic. Here's the code that is setting up the subscriber:

2 posts / 0 new
Last post
jcwenger's picture
Offline
Last seen: 3 years 3 months ago
Joined: 01/21/2015
Posts: 11
Stateful ContentFilteredTopics?

ContentFilteredTopics seem very appropriate for message / event type data, such as the "news story feed" example provided in the documentation.

However, when used on a topic representing a set of objects, there seems to be no way to affirm that an object with previously received instance samples has since left the filter criteria, and that the previously receieved samples are now inconsistent with the current state of the object.

3 posts / 0 new
Last post
Offline
Last seen: 7 years 8 months ago
Joined: 10/21/2012
Posts: 18
Listener Vs Poll

In order to test and try out different DDS configurations and QoS settings, I have a small suite of 3 test applications.

The first is a publisher that writes new data every 0.5 seconds.

The second is a subscriber that polls for new data every 1.0 seconds.

The third is a subscriber that uses a listener on the datareader. However, the on_data_available callback contains a sleep(1.0). This means that the callback can only be called once every second.

Organization:
Subscribe to RSS - listener