#include "protocolhandler.h"#include <xstypes/xsmessage.h>#include <xstypes/xsresultvalue.h>#include <iomanip>#include <sstream>#include <algorithm>
Go to the source code of this file.
Macros | |
| #define | DUMP_BUFFER_ON_ERROR 512 |
Functions | |
| std::string | dumpBuffer (const uint8_t *buff, XsSize sz) |
| Write the contents of a uint8 buffer to string as hex characters. More... | |
| static int | expectedMessageSize (const unsigned char *buffer, int sz) |
| Compute the expected message size given a possibly incomplete message. More... | |
| #define DUMP_BUFFER_ON_ERROR 512 |
Definition at line 69 of file protocolhandler.cpp.
|
inline |
Write the contents of a uint8 buffer to string as hex characters.
Definition at line 116 of file protocolhandler.cpp.
|
static |
Compute the expected message size given a possibly incomplete message.
When analyzing a message with incomplete size information, the function will return the minimum size of the message given the information that is available
Definition at line 98 of file protocolhandler.cpp.