#include <IHiveMindHostApiRequestHandler.h>
|
virtual void | handleMessage (const MessageDTO &message, const HiveMindHostApiRequestDTO &hmRequest)=0 |
|
virtual bool | onBytesReceived (std::function< void(uint8_t *bytes, uint64_t bytesLength)> callback)=0 |
|
◆ handleMessage()
virtual void IHiveMindHostRequestHandler::handleMessage |
( |
const MessageDTO & |
message, |
|
|
const HiveMindHostApiRequestDTO & |
hmRequest |
|
) |
| |
|
pure virtual |
Handle a HiveMindHostRequest message type
- Parameters
-
message | The encloising message |
hmRequest | The HiveMindHostApiRequest enclosed in the message |
Implemented in HiveMindHostApiRequestHandler.
◆ onBytesReceived()
virtual bool IHiveMindHostRequestHandler::onBytesReceived |
( |
std::function< void(uint8_t *bytes, uint64_t bytesLength)> |
callback | ) |
|
|
pure virtual |
Register a user-defined callback to be incoked when the reception of a bytes payload is completed.
- Parameters
-
callback | The user-defined callback to be invoked. |
- Returns
- True if the callback was ovewritten, false otherwise.
Implemented in HiveMindHostApiRequestHandler.
The documentation for this class was generated from the following file: