PCHcallable Class

The PCHcallable class supplies callback member functions that will be called by the Listener whenever it receives Custom Messages or health status requests from connected Managers. Developers may use a PCHcallable object to supply the value for the heartbeatObject parameter when creating a Listener object. The heartbeatObject parameter provides the Listener with the ability to handle health status requests or Custom Messages received from connected Managers. When no value is specified for the heartbeatObject parameter, then a PCHcallable object is automatically created.

For more information about implementing this class, see Supporting Communication from Managers.

Syntax
PCHcallable PCHLibrary;
Member Functions
getHealth - When a connected Manager requests the health status of the application, this member function will be called and should return true if the application is up and operating normally.
processCustomMessage - When a connected Manager sends a Custom Message to the Listener, the Manager will inform the application of this by calling processCustomMessage from an independent thread.
See Also
Listener Class