Bitcoin Core  24.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
CNetMessage Class Reference

Transport protocol agnostic message container. More...

#include <net.h>

Collaboration diagram for CNetMessage:

Public Member Functions

 CNetMessage (CDataStream &&recv_in)
void SetVersion (int nVersionIn)

Public Attributes

CDataStream 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

Detailed Description

Transport protocol agnostic message container.

Ideally it should only contain receive time, payload, type and size.

Definition at line 228 of file net.h.

Constructor & Destructor Documentation

◆ CNetMessage()

CNetMessage::CNetMessage ( CDataStream &&  recv_in)

Definition at line 236 of file net.h.

Member Function Documentation

◆ SetVersion()

void CNetMessage::SetVersion ( int  nVersionIn)

Definition at line 238 of file net.h.

Here is the call graph for this function:

Member Data Documentation

◆ m_message_size

uint32_t CNetMessage::m_message_size {0}

size of the payload

Definition at line 232 of file net.h.

◆ m_raw_message_size

uint32_t CNetMessage::m_raw_message_size {0}

used wire size of the message (including header/checksum)

Definition at line 233 of file net.h.

◆ m_recv

CDataStream CNetMessage::m_recv

received message data

Definition at line 230 of file net.h.

◆ m_time

std::chrono::microseconds CNetMessage::m_time {0}

time of message receipt

Definition at line 231 of file net.h.

◆ m_type

std::string CNetMessage::m_type

Definition at line 234 of file net.h.

The documentation for this class was generated from the following file: