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:

Public Member Functions

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

Public Attributes

CDataStream m_recv
int64_t m_time = 0
bool m_valid_netmagic = false
bool m_valid_header = false
bool m_valid_checksum = false
uint32_t m_message_size = 0
uint32_t m_raw_message_size = 0
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 613 of file net.h.

Constructor & Destructor Documentation

◆ CNetMessage()

CNetMessage::CNetMessage ( CDataStream &&  recv_in)

Definition at line 624 of file net.h.

Member Function Documentation

◆ SetVersion()

void CNetMessage::SetVersion ( int  nVersionIn)

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

◆ m_message_size

uint32_t CNetMessage::m_message_size = 0

Definition at line 620 of file net.h.

◆ m_raw_message_size

uint32_t CNetMessage::m_raw_message_size = 0

Definition at line 621 of file net.h.

◆ m_recv

CDataStream CNetMessage::m_recv

Definition at line 615 of file net.h.

◆ m_time

int64_t CNetMessage::m_time = 0

Definition at line 616 of file net.h.

◆ m_valid_checksum

bool CNetMessage::m_valid_checksum = false

Definition at line 619 of file net.h.

◆ m_valid_header

bool CNetMessage::m_valid_header = false

Definition at line 618 of file net.h.

◆ m_valid_netmagic

bool CNetMessage::m_valid_netmagic = false

Definition at line 617 of file net.h.

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