Function dds_create_subscriber

Function Documentation

dds_entity_t dds_create_subscriber(dds_entity_t participant, const dds_qos_t *qos, const dds_listener_t *listener)

Creates a new instance of a DDS subscriber.

Parameters
  • participant[in] The participant on which the subscriber is being created.

  • qos[in] The QoS to set on the new subscriber (can be NULL).

  • listener[in] Any listener functions associated with the new subscriber (can be NULL).

Return values
  • >0 – A valid subscriber handle.

  • DDS_RETCODE_ERROR – An internal error has occurred.

  • DDS_RETCODE_BAD_PARAMETER – One of the parameters is invalid.

Returns

A valid subscriber handle or an error code.