OpenHiva::Subscriber

OpenHiva::Subscriber is created by invoking OpenHiva::Node::CreateSubscriber, which returns an initialized OpenHiva::Subscriber object.

OpenHiva::Subscriber functions as the subscription end. Some interfaces and member variables are defined as follows:
1
2
3
4
5
6
7
8
namespace OpenHiva {
class Subscriber {
public:
    bool Ready() const;             // Check whether the Subscriber is valid.
    uint32_t StartReadMessage();   // Start to invoke the callback function to process message.
    uint32_t StopReadMessage();   // Stop invoking the callback function.
};
}