listener dont run on_data_available()

2 posts / 0 new
Last post
Offline
Last seen: 12 years 6 months ago
Joined: 08/17/2011
Posts: 7
listener dont run on_data_available()

Hello,

I am trying to listen all topics of an domain (like rtiddsspy ). first I am getting topic names and types (publicationDataListener )with an DDS:DataReaderListener. Then for each topic  try to listen(publishedDatalistener) what data publishing. here is the problem, my publishedDataListener attached an datareader but it is never run the on_data_available() funcition. İf I try to get take() from datareader , I can reach data. however i need to get this when data comes (I mean on listener ).

 

Do you have an idea what is my app's problem. waiting for your help.

 

 

Note: Using RTI DDS .net API

 

Regards

Oruc CIMEN

Gerardo Pardo's picture
Offline
Last seen: 1 day 9 hours ago
Joined: 06/02/2010
Posts: 601

Hello,

I do not fully understand what you mean by the (publishedDatalistener)... Are you installing a listener on the DataReader (a DataReaderListener) or on the Subscriber (SubscriberListener)?  Specifically what values are you passing for the 'DDSDataReaderListener' and 'DDS_StatusMask' parameters on the create_datareader() call?

Similarly what values are you passing for the 'DDSSubscriberListener' and 'DDS_StatusMask' on the create_subscriber() call.

 

Gerardo