Class which manages the logic relative to send/receive messages. This class implements all the logic necessary to queue messages, to retry sends or to discard messages.
#include <messageManager.h>
|
|
static std::string | stringToHex (const std::string &input, bool printAsciiChar) |
| |
|
| virtual boost::system::error_code | send (std::string message)=0 |
| | Method to send the messages. More...
|
| |
| void | receivedMessage (const char *data, size_t size) |
| | Method for notify received messages. More...
|
| |
|
virtual boost::system::error_code | receiveUntil (int timeout, std::string &receivedResponse) |
| |
| virtual bool rebootCommunications |
( |
| ) |
|
|
pure virtual |
- Returns
- true if comunications are rebooted, false otherwise
Implemented in SerialMsgManager.
| void receivedMessage |
( |
const char * |
data, |
|
|
size_t |
size |
|
) |
| |
|
protected |
- Parameters
-
| data | buffer for received data |
| size | size for received message |
| virtual boost::system::error_code send |
( |
std::string |
message | ) |
|
|
protectedpure virtual |
- Parameters
-
| message | Message to be sent |
- Returns