MySubscriberListener_DataOnReaders;
MySubscriberListener_RequestedDeadlineMissed;
MySubscriberListener_RequestedIncompatibleQos;
MySubscriberListener_SampleRejected;
MySubscriberListener_LivelinessChanged;
MySubscriberListener_DataAvailable;
MySubscriberListener_SubscriptionMatch;
MySubscriberListener_SampleLost;
&subscriber_qos);
printf("***Error: failed to get default subscriber qos\n");
}
&subscriber_qos,
&subscriber_listener ,
if (subscriber == NULL) {
printf("***Error: failed to create subscriber\n");
}
DDS_ReturnCode_t DDS_DomainParticipant_get_default_subscriber_qos(DDS_DomainParticipant *self, struct DDS_SubscriberQos *qos)
Copy the default DDS_SubscriberQos values into the provided DDS_SubscriberQos instance.
DDS_Subscriber * DDS_DomainParticipant_create_subscriber(DDS_DomainParticipant *self, const struct DDS_SubscriberQos *qos, const struct DDS_SubscriberListener *listener, DDS_StatusMask mask)
Creates a DDS_Subscriber with the desired QoS policies and attaches to it the specified DDS_Subscribe...
DDS_ReturnCode_t
Type for return codes.
Definition: infrastructure.ifc:1351
@ DDS_RETCODE_OK
Successful return.
Definition: infrastructure.ifc:1354
#define DDS_STATUS_MASK_ALL
All bits are set.
Definition: infrastructure.ifc:1431
struct DDS_SubscriberImpl DDS_Subscriber
<<interface>> A subscriber is the object responsible for actually receiving data from a subscription.
Definition: subscription.ifc:239
#define DDS_SubscriberQos_INITIALIZER
Initializer for new QoS instances.
Definition: subscription.ifc:2088
#define DDS_SubscriberListener_INITIALIZER
<<extension>> Initializer for new DDS_SubscriberListener.
Definition: subscription.ifc:2358
DDS_DataReaderListener_RequestedIncompatibleQosCallback on_requested_incompatible_qos
Handles the DDS_REQUESTED_INCOMPATIBLE_QOS_STATUS communication status.
Definition: subscription.ifc:2215
DDS_DataReaderListener_SampleRejectedCallback on_sample_rejected
Handles the DDS_SAMPLE_REJECTED_STATUS communication status.
Definition: subscription.ifc:2219
DDS_DataReaderListener_SampleLostCallback on_sample_lost
Handles the DDS_SAMPLE_LOST_STATUS communication status.
Definition: subscription.ifc:2236
DDS_DataReaderListener_DataAvailableCallback on_data_available
Handle the DDS_DATA_AVAILABLE_STATUS communication status.
Definition: subscription.ifc:2228
DDS_DataReaderListener_LivelinessChangedCallback on_liveliness_changed
Handles the DDS_LIVELINESS_CHANGED_STATUS communication status.
Definition: subscription.ifc:2224
DDS_DataReaderListener_SubscriptionMatchedCallback on_subscription_matched
Handles the DDS_SUBSCRIPTION_MATCHED_STATUS communication status.
Definition: subscription.ifc:2232
DDS_DataReaderListener_RequestedDeadlineMissedCallback on_requested_deadline_missed
Handles the DDS_REQUESTED_DEADLINE_MISSED_STATUS communication status.
Definition: subscription.ifc:2210
<<interface>> DDS_Listener for status about a subscriber.
Definition: subscription.ifc:2344
struct DDS_DataReaderListener as_datareaderlistener
The superclass instance of this DDS_SubscriberListener.
Definition: subscription.ifc:2348
DDS_SubscriberListener_DataOnReadersCallback on_data_on_readers
Handles the DDS_DATA_ON_READERS_STATUS communication status.
Definition: subscription.ifc:2352
QoS policies supported by a DDS_Subscriber entity.
Definition: subscription.ifc:1921