OpenHiva::Subscriber::StartReadMessage

Description

Starts message receiving. After the OpenHiva::Node::CreateSubscriber interface is successfully invoked, message receiving is started by default.

Prototype

uint32_t OpenHiva::Subscriber::StartReadMessage()

Parameters

None

Returns

The return value is of the uint32_t type. If the operation is successful, HIVA_SUCCESS (value being 0) is returned. If other values are returned, the operation fails.

Usage

After the interface invoking stops, you can invoke the StartReadMessage interface to restore the startup status.

Precautions

  • Reentrant, synchronous interface.
  • When Subscriber fails to be initialized, the StartReadMessage interface returns a failure message.