Function dds_get_subscriber

Function Documentation

dds_entity_t dds_get_subscriber(dds_entity_t entity)

Get entity subscriber.

This operation returns the subscriber to which the given entity belongs. For instance, it will return the Subscriber that was used when creating a DataReader (when that DataReader was provided here).

Parameters

entity[in] Entity from which to get its subscriber.

Return values
  • >0 – A valid subscriber handle.

  • DDS_RETCODE_ERROR – An internal error has occurred.

  • DDS_RETCODE_ILLEGAL_OPERATION – The operation is invoked on an inappropriate object.

  • DDS_RETCODE_ALREADY_DELETED – The entity has already been deleted.

Returns

A valid subscriber handle or an error code.