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().
© 2020 RTI