Bitcoin ABC 0.30.5
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...
 
bool m_valid_netmagic = false
 
bool m_valid_header = false
 
bool m_valid_checksum = false
 
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 330 of file net.h.

Constructor & Destructor Documentation

◆ CNetMessage()

CNetMessage::CNetMessage ( CDataStream &&  recv_in)
inline

Definition at line 345 of file net.h.

Member Function Documentation

◆ SetVersion()

void CNetMessage::SetVersion ( int  nVersionIn)
inline

Definition at line 347 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 340 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 342 of file net.h.

◆ m_recv

CDataStream CNetMessage::m_recv

received message data

Definition at line 333 of file net.h.

◆ m_time

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

time of message receipt

Definition at line 335 of file net.h.

◆ m_type

std::string CNetMessage::m_type

Definition at line 343 of file net.h.

◆ m_valid_checksum

bool CNetMessage::m_valid_checksum = false

Definition at line 338 of file net.h.

◆ m_valid_header

bool CNetMessage::m_valid_header = false

Definition at line 337 of file net.h.

◆ m_valid_netmagic

bool CNetMessage::m_valid_netmagic = false

Definition at line 336 of file net.h.


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