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 long NDDS_DISCOVERY_INITIAL_PEERS_LENGTH =
sizeof(NDDS_DISCOVERY_INITIAL_PEERS)/sizeof(const char*);
MyDomainParticipantListener_InconsistentTopic;
MyDomainParticipantListener_OfferedDeadlineMissed;
MyDomainParticipantListener_OfferedIncompatibleQos;
MyDomainParticipantListener_LivelinessLost;
MyDomainParticipantListener_PublicationMatch;
MyDomainParticipantListener_DataOnReaders;
MyDomainParticipantListener_RequestedDeadlineMissed;
MyDomainParticipantListener_RequestedIncompatibleQos;
MyDomainParticipantListener_SampleRejected;
MyDomainParticipantListener_LivelinessChanged;
MyDomainParticipantListener_DataAvailable;
MyDomainParticipantListener_SubscriptionMatched;
MyDomainParticipantListener_SampleLost;
&participant_qos);
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 =
domain_id,
&participant_qos,
&participant_listener ,
if (participant == NULL) {
printf("***Error: failed to create domain participant\n");
}
return participant;