![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
Message header. More...
#include <protocol.h>
Collaboration diagram for CMessageHeader:Public Member Functions | |
| CMessageHeader () | |
| CMessageHeader (const char *pszCommand, unsigned int nMessageSizeIn) | |
| std::string | GetCommand () const |
| bool | IsValid () const |
Public Attributes | |
| IMPLEMENT_SERIALIZE(READWRITE(FLATDATA(pchMessageStart));READWRITE(FLATDATA(pchCommand));READWRITE(nMessageSize);READWRITE(nChecksum);) public char | pchMessageStart [MESSAGE_START_SIZE] |
| char | pchCommand [COMMAND_SIZE] |
| unsigned int | nMessageSize |
| unsigned int | nChecksum |
Message header.
(4) message start. (12) command. (4) size. (4) checksum.
Definition at line 27 of file protocol.h.
| CMessageHeader::CMessageHeader | ( | ) |
Definition at line 22 of file protocol.cpp.
References memcpy(), MESSAGE_START_SIZE, nChecksum, nMessageSize, Params(), pchCommand, and pchMessageStart.
Here is the call graph for this function:| CMessageHeader::CMessageHeader | ( | const char * | pszCommand, |
| unsigned int | nMessageSizeIn | ||
| ) |
Definition at line 31 of file protocol.cpp.
References memcpy(), MESSAGE_START_SIZE, nChecksum, nMessageSize, Params(), pchCommand, and pchMessageStart.
Here is the call graph for this function:| std::string CMessageHeader::GetCommand | ( | ) | const |
Definition at line 39 of file protocol.cpp.
References pchCommand.
Referenced by IsValid(), and ProcessMessages().
Here is the caller graph for this function:| bool CMessageHeader::IsValid | ( | ) | const |
Definition at line 47 of file protocol.cpp.
References GetCommand(), LogPrintf, MAX_SIZE, MESSAGE_START_SIZE, nMessageSize, Params(), pchCommand, and pchMessageStart.
Referenced by ProcessMessages().
Here is the call graph for this function:
Here is the caller graph for this function:| unsigned int CMessageHeader::nChecksum |
Definition at line 58 of file protocol.h.
Referenced by CMessageHeader(), and ProcessMessages().
| unsigned int CMessageHeader::nMessageSize |
Definition at line 57 of file protocol.h.
Referenced by CMessageHeader(), CNetMessage::complete(), IsValid(), and ProcessMessages().
| char CMessageHeader::pchCommand[COMMAND_SIZE] |
Definition at line 56 of file protocol.h.
Referenced by CMessageHeader(), GetCommand(), and IsValid().
| IMPLEMENT_SERIALIZE ( READWRITE(FLATDATA(pchMessageStart)); READWRITE(FLATDATA(pchCommand)); READWRITE(nMessageSize); READWRITE(nChecksum); ) public char CMessageHeader::pchMessageStart[MESSAGE_START_SIZE] |
Definition at line 37 of file protocol.h.
Referenced by CMessageHeader(), IsValid(), and ProcessMessages().
1.8.8