Function dds_get_publisher¶
Defined in File dds.h
Function Documentation¶
-
dds_entity_t dds_get_publisher(dds_entity_t writer)¶
Get entity publisher.
This operation returns the publisher to which the given entity belongs. For instance, it will return the Publisher that was used when creating a DataWriter (when that DataWriter was provided here).
- Parameters
writer – [in] Entity from which to get its publisher.
- Return values
>0 – A valid publisher 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 entity or an error code.