I just added an example on how to use the get_publishers() API.
Here a snippet:
...
PublisherSeq publisherSeq = new PublisherSeq();
participant.get_publishers(publisherSeq);
System.out.println("I found " + publisherSeq.size() + "publishers");
for (int i = 0; i < publisherSeq.size(); i++) {
Publisher tmp = (Publisher) publisherSeq.get(i);
System.out.println("The " + i + " publisher I found is " + tmp);
}
...
You can also download the full example for c++ and java here.
Hello Patrick,
I just added an example on how to use the get_publishers() API.
Here a snippet:
You can also download the full example for c++ and java here.
Best,
Gianpiero
Hello Gianpiero,
Thanks, it works. I just do a beginner (indeed, I am a beginner in java) error in the declaration of my publisher sequence.
Regards.
Hi Patrick,
I'm glad I could help, let me know if you have more questions.
Regards,
Gianpiero