Working with publishers.
More...
Working with publishers.
Setting up a publisher
- Set up participant
- Create a DDSPublisher
PublisherQos publisher_qos = new PublisherQos();
PublisherListener publisher_listener
= new MyPublisherListener();
participant.get_default_publisher_qos(publisher_qos);
Publisher publisher = null;
try {
publisher = participant.create_publisher(publisher_qos,
publisher_listener,
StatusKind.STATUS_MASK_ALL);
} catch (RETCODE_ERROR err) {
}
Tearing down a publisher
- Delete DDSPublisher:
try {
participant.delete_publisher(publisher);
} catch (RETCODE_ERROR err) {
}