PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
CNetMessage Class Reference

#include <net.h>

Collaboration diagram for CNetMessage:
[legend]

Public Member Functions

 CNetMessage (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 204 of file net.h.

Constructor & Destructor Documentation

◆ CNetMessage()

CNetMessage::CNetMessage ( int  nTypeIn,
int  nVersionIn 
)
inline

Definition at line 218 of file net.h.

Here is the call graph for this function:

Member Function Documentation

◆ complete()

bool CNetMessage::complete ( ) const
inline

Definition at line 227 of file net.h.

◆ readData()

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

Definition at line 745 of file net.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readHeader()

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

Definition at line 716 of file net.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetVersion()

void CNetMessage::SetVersion ( int  nVersionIn)
inline

Definition at line 234 of file net.h.

Here is the call graph for this function:

Member Data Documentation

◆ hdr

CMessageHeader CNetMessage::hdr

Definition at line 210 of file net.h.

◆ hdrbuf

CDataStream CNetMessage::hdrbuf

Definition at line 209 of file net.h.

◆ in_data

bool CNetMessage::in_data

Definition at line 207 of file net.h.

◆ nDataPos

unsigned int CNetMessage::nDataPos

Definition at line 214 of file net.h.

◆ nHdrPos

unsigned int CNetMessage::nHdrPos

Definition at line 211 of file net.h.

◆ nTime

int64_t CNetMessage::nTime

Definition at line 216 of file net.h.

◆ vRecv

CDataStream CNetMessage::vRecv

Definition at line 213 of file net.h.


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