A P2P network message.
More...
#include <Message.h>
|
typedef std::vector< uint8_t > | Payload |
| Contains a message's payload.
|
|
|
| Message (char const *type, std::vector< uint8_t > const &payload) |
|
std::string | type () const |
| Returns the message type.
|
|
Payload | payload () const |
| Returns the payload.
|
|
size_t | size () const |
| Returns the size of the payload.
|
|
uint32_t | checksum () const |
| Returns the checksum of the payload.
|
|
Message::Message |
( |
char const * |
type, |
|
|
std::vector< uint8_t > const & |
payload |
|
) |
| |
- Parameters
-
type | message type |
payload | message payload |
The documentation for this class was generated from the following files: