Skip to navigation

holoscan::ChannelDescriptorPublisher

Beta
View as Markdown

Publisher endpoint for payload descriptor control-plane samples.

#include <holoscan/descriptor_endpoints.hpp>

Constructors

ChannelDescriptorPublisher

) noexcept

Destructor

~ChannelDescriptorPublisher

HOLOSCAN_CORE_EXPORT holoscan::ChannelDescriptorPublisher::~ChannelDescriptorPublisher()

Assignment operators

operator=

HOLOSCAN_CORE_EXPORT ChannelDescriptorPublisher & holoscan::ChannelDescriptorPublisher::operator=(
) noexcept

Methods

publish

HOLOSCAN_CORE_EXPORT expected<std::uint32_t, Error> holoscan::ChannelDescriptorPublisher::publish(
const ChannelSampleDescriptor &descriptor
)

Publish a channel descriptor through the payload descriptor endpoint.

Returns: Recipient count or Error for a closed publisher, unavailable loan, or send failure.

Parameters

descriptor
const ChannelSampleDescriptor &

Channel descriptor to convert and send.

update_connections

HOLOSCAN_CORE_EXPORT expected<void, Error> holoscan::ChannelDescriptorPublisher::update_connections() noexcept

Refresh backend connection state.

Returns: Empty success or Error when closed or refresh fails.

has_subscribers

HOLOSCAN_CORE_EXPORT bool holoscan::ChannelDescriptorPublisher::has_subscribers() const noexcept

Return whether at least one subscriber is connected.

Returns: True when connected; false otherwise. This function is noexcept.


Member variables

NameTypeDescription
impl_std::unique_ptr< Impl >