You are here: Part 2: Core Concepts > Receiving Data > DataReaders > Getting All DataReaders

Getting All DataReaders

To retrieve all the DataReaders created by the Subscriber, use the Subscriber’s get_all_datareaders() operation:

DDS_ReturnCode_t get_all_datareaders(
DDS_Subscriber* self,
struct DDS_DataReaderSeq* readers);

In the Modern C++ API, use the freestanding function rti::sub::find_datareaders().

© 2016 RTI