Changeset View
Changeset View
Standalone View
Standalone View
src/protocol.h
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | public: | ||||
inline void SerializationOp(Stream &s, Operation ser_action) { | inline void SerializationOp(Stream &s, Operation ser_action) { | ||||
READWRITE(FLATDATA(pchMessageStart)); | READWRITE(FLATDATA(pchMessageStart)); | ||||
READWRITE(FLATDATA(pchCommand)); | READWRITE(FLATDATA(pchCommand)); | ||||
READWRITE(nMessageSize); | READWRITE(nMessageSize); | ||||
READWRITE(FLATDATA(pchChecksum)); | READWRITE(FLATDATA(pchChecksum)); | ||||
} | } | ||||
MessageMagic pchMessageStart; | MessageMagic pchMessageStart; | ||||
char pchCommand[COMMAND_SIZE]; | std::array<char, COMMAND_SIZE> pchCommand; | ||||
uint32_t nMessageSize; | uint32_t nMessageSize; | ||||
uint8_t pchChecksum[CHECKSUM_SIZE]; | uint8_t pchChecksum[CHECKSUM_SIZE]; | ||||
}; | }; | ||||
/** | /** | ||||
* Bitcoin protocol message types. When adding new message types, don't forget | * Bitcoin protocol message types. When adding new message types, don't forget | ||||
* to update allNetMessageTypes in protocol.cpp. | * to update allNetMessageTypes in protocol.cpp. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 319 Lines • Show Last 20 Lines |