Bitcoin Core  0.19.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
 
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 618 of file net.h.

Constructor & Destructor Documentation

◆ CNetMessage()

CNetMessage::CNetMessage ( CDataStream &&  recv_in)
inline

Definition at line 629 of file net.h.

Member Function Documentation

◆ SetVersion()

void CNetMessage::SetVersion ( int  nVersionIn)
inline

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

◆ m_message_size

uint32_t CNetMessage::m_message_size = 0

Definition at line 625 of file net.h.

◆ m_raw_message_size

uint32_t CNetMessage::m_raw_message_size = 0

Definition at line 626 of file net.h.

◆ m_recv

CDataStream CNetMessage::m_recv

Definition at line 620 of file net.h.

◆ m_time

int64_t CNetMessage::m_time = 0

Definition at line 621 of file net.h.

◆ m_valid_checksum

bool CNetMessage::m_valid_checksum = false

Definition at line 624 of file net.h.

◆ m_valid_header

bool CNetMessage::m_valid_header = false

Definition at line 623 of file net.h.

◆ m_valid_netmagic

bool CNetMessage::m_valid_netmagic = false

Definition at line 622 of file net.h.


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