Working with domain participants.
More...
Working with domain participants.
Turning off auto-enable of newly created participant(s)
- Change the value of the ENTITY_FACTORY for the DomainParticipantFactory
The following #includes are needed for the examples on this page
#include <dds/domain/ddsdomain.hpp>
Setting up a DomainParticipant
- How to create DomainParticipants with each of the available constructors
const char * initial_peers_array[] = {
"host1",
"10.10.30.192",
"1@localhost",
"2@host2",
"my://",
"2@shmem://",
"FF00:ABCD::0",
"1@FF00:0:1234::0",
"225.1.2.3",
"3@225.1.0.55",
"FAA0::0#0/0/R"};
ExampleParticipantListener *listener = new ExampleParticipantListener;
participant3.close();
- Setting the DomainParticipantFactoryQos so that participants are created disabled (optional)
Looking up DomainParticipants
- Lookup DomainParticipants by domain id
create_and_retain_participant(0);
create_and_retain_participant(0);
create_and_retain_participant(1);
Tearing down a Participant
Finalizing the factory