Bitcoin Core 28.99.0
P2P Digital Currency
|
Transport protocol agnostic message container. More...
#include <net.h>
Public Member Functions | |
CNetMessage (DataStream &&recv_in) | |
CNetMessage (CNetMessage &&)=default | |
CNetMessage (const CNetMessage &)=delete | |
CNetMessage & | operator= (CNetMessage &&)=default |
CNetMessage & | operator= (const CNetMessage &)=delete |
size_t | GetMemoryUsage () const noexcept |
Compute total memory usage of this object (own memory + any dynamic memory). More... | |
Public Attributes | |
DataStream | m_recv |
received message data More... | |
std::chrono::microseconds | m_time {0} |
time of message receipt More... | |
uint32_t | m_message_size {0} |
size of the payload More... | |
uint32_t | m_raw_message_size {0} |
used wire size of the message (including header/checksum) More... | |
std::string | m_type |
Transport protocol agnostic message container.
Ideally it should only contain receive time, payload, type and size.
|
inlineexplicit |
|
default |
|
delete |
|
noexcept |
|
default |
|
delete |
uint32_t CNetMessage::m_raw_message_size {0} |
DataStream CNetMessage::m_recv |
std::chrono::microseconds CNetMessage::m_time {0} |