Construct a P2P message header from message-start characters, a message type and the size of the message.
Declared in <protocol.h>
CMessageHeader(
MessageStartChars const& pchMessageStartIn,
char const* msg_type,
unsigned int nMessageSizeIn);
Passing in a msg_type longer than MESSAGE_TYPE_SIZE will result in a run-time assertion error.
| Name | Description |
|---|---|
| pchMessageStartIn | Network magic bytes marking the start of the message. |
| msg_type | Null-terminated message type string. |
| nMessageSizeIn | Size of the message payload in bytes. |