Working with domain participants.
Working with domain participants.
const char* NDDS_DISCOVERY_INITIAL_PEERS[] = {
"host1",
"10.10.30.192",
"1@localhost",
"2@host2",
"my://",
"2@shmem://",
"FF00:ABCD::0",
"sf://0/0/R",
"1@FF00:0:1234::0",
"225.1.2.3",
"3@225.1.0.55",
"FAA0::0#0/0/R",
};
const DDS_Long NDDS_DISCOVERY_INITIAL_PEERS_LENGTH =
sizeof(NDDS_DISCOVERY_INITIAL_PEERS)/sizeof(const char*);
printf("***Error: failed to get default participant qos\n");
}
NDDS_DISCOVERY_INITIAL_PEERS,
NDDS_DISCOVERY_INITIAL_PEERS_LENGTH)) {
printf("***Error: failed to set discovery.initial_peers qos\n");
}
participant_qos,
participant_listener,
if (participant == NULL) {
printf("***Error: failed to create domain participant\n");
};
return participant;
virtual DDS_ReturnCode_t get_default_participant_qos(DDS_DomainParticipantQos &qos)=0
Initializes the DDS_DomainParticipantQos instance with default values.
virtual DDSDomainParticipant * create_participant(DDS_DomainId_t domainId, const DDS_DomainParticipantQos &qos, DDSDomainParticipantListener *listener, DDS_StatusMask mask)=0
Creates a new DDSDomainParticipant object.
<<interface>> Listener for participant status.
Definition: domain.ifcxx:155
<<interface>> Container for all DDSDomainEntity objects.
Definition: domain.ifcxx:191
RTICdrLong DDS_Long
Defines a long integer data type, equivalent to IDL/CDR long.
Definition: dds_c.1.0/interface/common.ifc:244
DDS_ReturnCode_t
Type for return codes.
Definition: infrastructure.ifc:1336
#define DDS_STATUS_MASK_NONE
No bits are set.
Definition: infrastructure.ifc:1410
struct DDS_StringSeq initial_peers
Determines the initial list of peers that will be contacted by the Discovery mechanism to send announ...
Definition: infrastructure.ifc:4168
QoS policies supported by a DDSDomainParticipant entity.
Definition: domain.ifc:1372
struct DDS_DiscoveryQosPolicy discovery
<<extension>> Discovery policy, DISCOVERY.
Definition: domain.ifc:1398