Function dds_create_publisher

Function Documentation

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

Creates a new instance of a DDS publisher.

Parameters
  • participant[in] The participant to create a publisher for.

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

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

Return values
  • >0 – A valid publisher handle.

  • DDS_RETCODE_ERROR – An internal error has occurred.

Returns

A valid publisher handle or an error code.