Equity
Bitcoin Protocol Library
|
All network message classes are derived from this class. More...
#include <Message.h>
Public Member Functions | |
Message (char const *type) | |
std::string | type () const |
Returns the type. | |
Public Member Functions inherited from P2p::Serializable | |
virtual void | serialize (std::vector< uint8_t > &out) const =0 |
Serializes the object. More... | |
virtual json | toJson () const =0 |
Converts the object to a JSON object. More... | |
All network message classes are derived from this class.
|
explicit |
type | string used to identify the message type during deserialization |