CoreDX DDS C Reference Manual
Public Attributes | List of all members
DDS_DataReaderListener_cd Struct Reference

The DDS_DataReaderListener_cd provides asynchronous notification of DDS_DataReader events with additional callback data. More...

Public Attributes

void(* on_requested_deadline_missed )(struct DDS_DataReaderListener_cd *self, DDS_DataReader the_reader, DDS_RequestedDeadlineMissedStatus status, void *callback_data)
 
void(* on_requested_incompatible_qos )(struct DDS_DataReaderListener_cd *self, DDS_DataReader the_reader, DDS_RequestedIncompatibleQosStatus status, void *callback_data)
 
void(* on_sample_rejected )(struct DDS_DataReaderListener_cd *self, DDS_DataReader the_reader, DDS_SampleRejectedStatus status, void *callback_data)
 
void(* on_liveliness_changed )(struct DDS_DataReaderListener_cd *self, DDS_DataReader the_reader, DDS_LivelinessChangedStatus status, void *callback_data)
 
void(* on_data_available )(struct DDS_DataReaderListener_cd *self, DDS_DataReader the_reader, void *callback_data)
 
void(* on_subscription_matched )(struct DDS_DataReaderListener_cd *self, DDS_DataReader the_reader, DDS_SubscriptionMatchedStatus status, void *callback_data)
 
void(* on_sample_lost )(struct DDS_DataReaderListener_cd *self, DDS_DataReader the_reader, DDS_SampleLostStatus status, void *callback_data)
 

Detailed Description

The DDS_DataReaderListener_cd provides asynchronous notification of DDS_DataReader events with additional callback data.

This listener can be installed by calling DDS_DataReader_set_listener_cd().

Note
The listener callback methods should be lightweight and should not block. If a callback method blocks, it will block all other callback operations within the same DomainParticipant.

Member Data Documentation

void(* DDS_DataReaderListener_cd::on_data_available) (struct DDS_DataReaderListener_cd *self, DDS_DataReader the_reader, void *callback_data)

on_data_available() is called when the CoreDX DDS middleware detects that new data or data state information is available.

The status argument provides a snapshot of the status at the time the listener was invoked.

void(* DDS_DataReaderListener_cd::on_liveliness_changed) (struct DDS_DataReaderListener_cd *self, DDS_DataReader the_reader, DDS_LivelinessChangedStatus status, void *callback_data)

on_liveliness_changed() is called when the CoreDX DDS middleware detects that the liveliness of a matched DataWriter has changed (either 'active' or 'inactive').

The status argument provides a snapshot of the status at the time the listener was invoked.

void(* DDS_DataReaderListener_cd::on_requested_deadline_missed) (struct DDS_DataReaderListener_cd *self, DDS_DataReader the_reader, DDS_RequestedDeadlineMissedStatus status, void *callback_data)

on_requested_deadline_missed() is called when the CoreDX DDS middleware detects that the deadline specified in the DataReader QoS DEADLINE policy was not satisfied for a data instance.

The status argument provides a snapshot of the status at the time the listener was invoked.

void(* DDS_DataReaderListener_cd::on_requested_incompatible_qos) (struct DDS_DataReaderListener_cd *self, DDS_DataReader the_reader, DDS_RequestedIncompatibleQosStatus status, void *callback_data)

on_requested_incompatible_qos() is called when the CoreDX DDS middleware detects that the DataReader requested a QoS policy that was incompatible with that offered by a DataWriter.

The status argument provides a snapshot of the status at the time the listener was invoked.

void(* DDS_DataReaderListener_cd::on_sample_lost) (struct DDS_DataReaderListener_cd *self, DDS_DataReader the_reader, DDS_SampleLostStatus status, void *callback_data)

on_sample_lost() is called when the CoreDX DDS middleware detects that a sample has been lost (never received).

The status argument provides a snapshot of the status at the time the listener was invoked.

void(* DDS_DataReaderListener_cd::on_sample_rejected) (struct DDS_DataReaderListener_cd *self, DDS_DataReader the_reader, DDS_SampleRejectedStatus status, void *callback_data)

on_sample_rejected() is called when the CoreDX DDS middleware detects that a sample has been rejected.

The status argument provides a snapshot of the status at the time the listener was invoked.

void(* DDS_DataReaderListener_cd::on_subscription_matched) (struct DDS_DataReaderListener_cd *self, DDS_DataReader the_reader, DDS_SubscriptionMatchedStatus status, void *callback_data)

on_subscription_matched() is called when the CoreDX DDS middleware detects that the DataReader has matched or ceased to be matched with a DataWriter.

The status argument provides a snapshot of the status at the time the listener was invoked.


© 2009-2017 Twin Oaks Computing, Inc
Castle Rock, CO 80108
All rights reserved.