Dash Core  0.12.2.1
P2P Digital Currency
CNetMessage Class Reference

#include <net.h>

Public Member Functions

 CNetMessage (const CMessageHeader::MessageStartChars &pchMessageStartIn, int nTypeIn, int nVersionIn)
 
bool complete () 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
 

Detailed Description

Definition at line 621 of file net.h.

Constructor & Destructor Documentation

◆ CNetMessage()

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

Definition at line 634 of file net.h.

Member Function Documentation

◆ complete()

bool CNetMessage::complete ( ) const
inline

Definition at line 642 of file net.h.

◆ readData()

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

Definition at line 786 of file net.cpp.

◆ readHeader()

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

Definition at line 755 of file net.cpp.

◆ SetVersion()

void CNetMessage::SetVersion ( int  nVersionIn)
inline

Definition at line 649 of file net.h.

Member Data Documentation

◆ hdr

CMessageHeader CNetMessage::hdr

Definition at line 626 of file net.h.

Referenced by complete(), readData(), and readHeader().

◆ hdrbuf

CDataStream CNetMessage::hdrbuf

Definition at line 625 of file net.h.

Referenced by CNetMessage(), readHeader(), and SetVersion().

◆ in_data

bool CNetMessage::in_data

Definition at line 623 of file net.h.

Referenced by CNetMessage(), complete(), and readHeader().

◆ nDataPos

unsigned int CNetMessage::nDataPos

Definition at line 630 of file net.h.

Referenced by CNetMessage(), complete(), and readData().

◆ nHdrPos

unsigned int CNetMessage::nHdrPos

Definition at line 627 of file net.h.

Referenced by CNetMessage(), and readHeader().

◆ nTime

int64_t CNetMessage::nTime

Definition at line 632 of file net.h.

Referenced by CNetMessage().

◆ vRecv

CDataStream CNetMessage::vRecv

Definition at line 629 of file net.h.

Referenced by readData(), and SetVersion().


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