Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Public Attributes | Private Attributes | List of all members
CNetMessage Class Reference

#include <net.h>

Collaboration diagram for CNetMessage:
[legend]

Public Member Functions

 CNetMessage (const CMessageHeader::MessageStartChars &pchMessageStartIn, int nTypeIn, int nVersionIn)
 
bool complete () const
 
const uint256GetMessageHash () const
 
void SetVersion (int nVersionIn)
 
int readHeader (const char *pch, unsigned int nBytes)
 
int readData (const char *pch, unsigned int nBytes)
 

Public Attributes

bool in_data
 
CDataStream hdrbuf
 
CMessageHeader hdr
 
unsigned int nHdrPos
 
CDataStream vRecv
 
unsigned int nDataPos
 
int64_t nTime
 

Private Attributes

CHash256 hasher
 
uint256 data_hash
 

Detailed Description

Definition at line 554 of file net.h.

Constructor & Destructor Documentation

CNetMessage::CNetMessage ( const CMessageHeader::MessageStartChars pchMessageStartIn,
int  nTypeIn,
int  nVersionIn 
)
inline

Definition at line 570 of file net.h.

Here is the call graph for this function:

Member Function Documentation

bool CNetMessage::complete ( ) const
inline

Definition at line 578 of file net.h.

Here is the caller graph for this function:

const uint256 & CNetMessage::GetMessageHash ( ) const

Definition at line 828 of file net.cpp.

Here is the call graph for this function:

int CNetMessage::readData ( const char *  pch,
unsigned int  nBytes 
)

Definition at line 811 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int CNetMessage::readHeader ( const char *  pch,
unsigned int  nBytes 
)

Definition at line 780 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CNetMessage::SetVersion ( int  nVersionIn)
inline

Definition at line 587 of file net.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

uint256 CNetMessage::data_hash
mutableprivate

Definition at line 557 of file net.h.

CHash256 CNetMessage::hasher
mutableprivate

Definition at line 556 of file net.h.

CMessageHeader CNetMessage::hdr

Definition at line 562 of file net.h.

CDataStream CNetMessage::hdrbuf

Definition at line 561 of file net.h.

bool CNetMessage::in_data

Definition at line 559 of file net.h.

unsigned int CNetMessage::nDataPos

Definition at line 566 of file net.h.

unsigned int CNetMessage::nHdrPos

Definition at line 563 of file net.h.

int64_t CNetMessage::nTime

Definition at line 568 of file net.h.

CDataStream CNetMessage::vRecv

Definition at line 565 of file net.h.


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