HiveMindBridge
Public Member Functions | List of all members
IHiveMindHostRequestHandler Class Referenceabstract

#include <IHiveMindHostApiRequestHandler.h>

Inheritance diagram for IHiveMindHostRequestHandler:
Inheritance graph
Collaboration diagram for IHiveMindHostRequestHandler:
Collaboration graph

Public Member Functions

virtual void handleMessage (const MessageDTO &message, const HiveMindHostApiRequestDTO &hmRequest)=0
 
virtual bool onBytesReceived (std::function< void(uint8_t *bytes, uint64_t bytesLength)> callback)=0
 

Member Function Documentation

◆ handleMessage()

virtual void IHiveMindHostRequestHandler::handleMessage ( const MessageDTO &  message,
const HiveMindHostApiRequestDTO &  hmRequest 
)
pure virtual

Handle a HiveMindHostRequest message type

Parameters
messageThe encloising message
hmRequestThe HiveMindHostApiRequest enclosed in the message

Implemented in HiveMindHostApiRequestHandler.

Here is the caller graph for this function:

◆ 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
callbackThe user-defined callback to be invoked.
Returns
True if the callback was ovewritten, false otherwise.

Implemented in HiveMindHostApiRequestHandler.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: