Master Core  v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Data Fields
CNetMessage Class Reference

#include <net.h>

+ Collaboration diagram for CNetMessage:

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)
 

Data Fields

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

Detailed Description

Definition at line 153 of file net.h.

Constructor & Destructor Documentation

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

Definition at line 164 of file net.h.

References CDataStream::resize().

+ Here is the call graph for this function:

Member Function Documentation

bool CNetMessage::complete ( ) const
inline

Definition at line 171 of file net.h.

References CMessageHeader::nMessageSize.

Referenced by ProcessMessages().

+ Here is the caller graph for this function:

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

Definition at line 673 of file net.cpp.

References memcpy().

Referenced by CNode::ReceiveMsgBytes().

+ 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 641 of file net.cpp.

References MAX_SIZE, and memcpy().

Referenced by CNode::ReceiveMsgBytes().

+ 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 178 of file net.h.

References CDataStream::SetVersion().

Referenced by CNode::SetRecvVersion().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

CMessageHeader CNetMessage::hdr

Definition at line 158 of file net.h.

Referenced by ProcessMessages().

CDataStream CNetMessage::hdrbuf

Definition at line 157 of file net.h.

bool CNetMessage::in_data

Definition at line 155 of file net.h.

Referenced by CNode::ReceiveMsgBytes().

unsigned int CNetMessage::nDataPos

Definition at line 162 of file net.h.

unsigned int CNetMessage::nHdrPos

Definition at line 159 of file net.h.

CDataStream CNetMessage::vRecv

Definition at line 161 of file net.h.

Referenced by CNode::GetTotalRecvSize(), and ProcessMessages().


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