MyWriterListener_OfferedDeadlineMissed;
MyWriterListener_OfferedIncompatibleQos;
printf("***Error: failed to get default datawriter qos\n");
}
topic,
&writer_qos,
&writer_listener ,
if (writer == NULL) {
printf("***Error: failed to create writer\n");
}
printf("***Error: failed to wait for asynchronous publishing\n");
}
@ DDS_KEEP_ALL_HISTORY_QOS
Keep all the samples.
Definition: infrastructure.ifc:3040
@ DDS_ASYNCHRONOUS_PUBLISH_MODE_QOS
Indicates to send data asynchronously.
Definition: infrastructure.ifc:6586
DDS_ReturnCode_t DDS_Publisher_get_default_datawriter_qos(DDS_Publisher *self, struct DDS_DataWriterQos *qos)
Copies the default DDS_DataWriterQos values into the provided DDS_DataWriterQos instance.
DDS_DataWriter * DDS_Publisher_create_datawriter(DDS_Publisher *self, DDS_Topic *topic, const struct DDS_DataWriterQos *qos, const struct DDS_DataWriterListener *listener, DDS_StatusMask mask)
Creates a DDS_DataWriter that will be attached and belong to the DDS_Publisher.
#define DDS_STATUS_MASK_ALL
All bits are set.
Definition: infrastructure.ifc:1431
char * DDS_String_dup(const char *str)
Clone a string. Creates a new string that duplicates the value of string.
DDS_ReturnCode_t DDS_DataWriter_wait_for_asynchronous_publishing(DDS_DataWriter *self, const struct DDS_Duration_t *max_wait)
<<extension>> Blocks the calling thread until asynchronous sending is complete.
#define DDS_DataWriterListener_INITIALIZER
Initializer for new DDS_DataWriterListener.
Definition: publication.ifc:1731
#define DDS_DataWriterQos_INITIALIZER
Initializer for new QoS instances.
Definition: publication.ifc:1238
struct DDS_DataWriterImpl DDS_DataWriter
<<interface>> Allows an application to set the value of the data to be published under a given DDS_To...
Definition: publication.ifc:174
<<interface>> DDS_Listener for writer status.
Definition: publication.ifc:1662
DDS_DataWriterListener_OfferedDeadlineMissedCallback on_offered_deadline_missed
Handles the DDS_OFFERED_DEADLINE_MISSED_STATUS status.
Definition: publication.ifc:1670
DDS_DataWriterListener_LivelinessLostCallback on_liveliness_lost
Handles the DDS_LIVELINESS_LOST_STATUS status.
Definition: publication.ifc:1679
DDS_DataWriterListener_OfferedIncompatibleQosCallback on_offered_incompatible_qos
Handles the DDS_OFFERED_INCOMPATIBLE_QOS_STATUS status.
Definition: publication.ifc:1675
DDS_DataWriterListener_PublicationMatchedCallback on_publication_matched
Handles the DDS_PUBLICATION_MATCHED_STATUS status.
Definition: publication.ifc:1683
QoS policies supported by a DDS_DataWriter entity.
Definition: publication.ifc:970
struct DDS_PublishModeQosPolicy publish_mode
<<extension>> Publish mode policy, PUBLISH_MODE.
Definition: publication.ifc:1063
struct DDS_HistoryQosPolicy history
History policy, HISTORY.
Definition: publication.ifc:1001
DDS_HistoryQosPolicyKind kind
Specifies the kind of history to be kept.
Definition: infrastructure.ifc:3050
char * flow_controller_name
Name of the associated flow controller.
Definition: infrastructure.ifc:6614
DDS_PublishModeQosPolicyKind kind
Publishing mode.
Definition: infrastructure.ifc:6611