You are here: Part 2: Core Concepts > Sending Data > DataWriters > Getting All DataWriters

Getting All DataWriters

To retrieve all the DataWriters created by the Publisher, use the Publisher’s get_all_datawriters() operation:

DDS_ReturnCode_t get_all_datawriters(DDS_Publisher* self, 
struct DDS_DataWriterSeq* writers);

In the Modern C++ API, use the freestanding function rti::pub::find_datawriters().

© 2015 RTI