Bitcoin Core  0.20.99
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:
[legend]

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_command
 

Detailed Description

Transport protocol agnostic message container.

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

Definition at line 728 of file net.h.

Constructor & Destructor Documentation

◆ CNetMessage()

CNetMessage::CNetMessage ( CDataStream &&  recv_in)
inline

Definition at line 736 of file net.h.

Member Function Documentation

◆ SetVersion()

void CNetMessage::SetVersion ( int  nVersionIn)
inline

Definition at line 738 of file net.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_command

std::string CNetMessage::m_command

Definition at line 734 of file net.h.

◆ m_message_size

uint32_t CNetMessage::m_message_size {0}

size of the payload

Definition at line 732 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 733 of file net.h.

◆ m_recv

CDataStream CNetMessage::m_recv

received message data

Definition at line 730 of file net.h.

◆ m_time

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

time of message receipt

Definition at line 731 of file net.h.


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