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;
DDS_DomainParticipant * DDS_DomainParticipantFactory_create_participant(DDS_DomainParticipantFactory *self, DDS_DomainId_t domainId, const struct DDS_DomainParticipantQos *qos, const struct DDS_DomainParticipantListener *listener, DDS_StatusMask mask)
Creates a new DDS_DomainParticipant object.
DDS_ReturnCode_t DDS_DomainParticipantFactory_get_default_participant_qos(DDS_DomainParticipantFactory *self, struct DDS_DomainParticipantQos *qos)
Initializes the DDS_DomainParticipantQos instance with default values.
struct DDS_DomainParticipantImpl DDS_DomainParticipant
<<interface>> Container for all DDS_DomainEntity objects.
Definition: infrastructure.ifc:9765
#define DDS_DomainParticipantQos_INITIALIZER
Initializer for new QoS instances.
Definition: domain.ifc:1583
#define DDS_DomainParticipantListener_INITIALIZER
Initializer for new DDS_DomainParticipantListener.
Definition: domain.ifc:452
DDS_ReturnCode_t
Type for return codes.
Definition: infrastructure.ifc:1352
#define DDS_STATUS_MASK_ALL
All bits are set.
Definition: infrastructure.ifc:1430
DDS_DataReaderListener_RequestedIncompatibleQosCallback on_requested_incompatible_qos
Handles the DDS_REQUESTED_INCOMPATIBLE_QOS_STATUS communication status.
Definition: subscription.ifc:2210
DDS_DataReaderListener_SampleRejectedCallback on_sample_rejected
Handles the DDS_SAMPLE_REJECTED_STATUS communication status.
Definition: subscription.ifc:2214
DDS_DataReaderListener_SampleLostCallback on_sample_lost
Handles the DDS_SAMPLE_LOST_STATUS communication status.
Definition: subscription.ifc:2231
DDS_DataReaderListener_DataAvailableCallback on_data_available
Handle the DDS_DATA_AVAILABLE_STATUS communication status.
Definition: subscription.ifc:2223
DDS_DataReaderListener_LivelinessChangedCallback on_liveliness_changed
Handles the DDS_LIVELINESS_CHANGED_STATUS communication status.
Definition: subscription.ifc:2219
DDS_DataReaderListener_SubscriptionMatchedCallback on_subscription_matched
Handles the DDS_SUBSCRIPTION_MATCHED_STATUS communication status.
Definition: subscription.ifc:2227
DDS_DataReaderListener_RequestedDeadlineMissedCallback on_requested_deadline_missed
Handles the DDS_REQUESTED_DEADLINE_MISSED_STATUS communication status.
Definition: subscription.ifc:2205
DDS_DataWriterListener_OfferedDeadlineMissedCallback on_offered_deadline_missed
Handles the DDS_OFFERED_DEADLINE_MISSED_STATUS status.
Definition: publication.ifc:1665
DDS_DataWriterListener_LivelinessLostCallback on_liveliness_lost
Handles the DDS_LIVELINESS_LOST_STATUS status.
Definition: publication.ifc:1674
DDS_DataWriterListener_OfferedIncompatibleQosCallback on_offered_incompatible_qos
Handles the DDS_OFFERED_INCOMPATIBLE_QOS_STATUS status.
Definition: publication.ifc:1670
DDS_DataWriterListener_PublicationMatchedCallback on_publication_matched
Handles the DDS_PUBLICATION_MATCHED_STATUS status.
Definition: publication.ifc:1678
struct DDS_StringSeq initial_peers
<<basic>> <<extension>> Determines the initial list of peers that will be contacted by the Discovery ...
Definition: infrastructure.ifc:4307
<<interface>> Listener for participant status.
Definition: domain.ifc:426
struct DDS_PublisherListener as_publisherlistener
A superclass instance of this DDS_DomainParticipantListener.
Definition: domain.ifc:437
struct DDS_SubscriberListener as_subscriberlistener
A superclass instance of this DDS_DomainParticipantListener.
Definition: domain.ifc:441
struct DDS_TopicListener as_topiclistener
A superclass instance of this DDS_DomainParticipantListener.
Definition: domain.ifc:433
QoS policies supported by a DDS_DomainParticipant entity.
Definition: domain.ifc:1378
struct DDS_DiscoveryQosPolicy discovery
<<extension>> Discovery policy, DISCOVERY.
Definition: domain.ifc:1404
struct DDS_DataWriterListener as_datawriterlistener
The superclass instance of this DDS_PublisherListener.
Definition: publication.ifc:1888
struct DDS_DataReaderListener as_datareaderlistener
The superclass instance of this DDS_SubscriberListener.
Definition: subscription.ifc:2343
DDS_SubscriberListener_DataOnReadersCallback on_data_on_readers
Handles the DDS_DATA_ON_READERS_STATUS communication status.
Definition: subscription.ifc:2347
DDS_TopicListener_InconsistentTopicCallback on_inconsistent_topic
Handle the DDS_INCONSISTENT_TOPIC_STATUS status.
Definition: topic.ifc:544