Bitcoin ABC  0.24.7
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | List of all members
V1TransportDeserializer Class Referencefinal

#include <net.h>

Inheritance diagram for V1TransportDeserializer:
[legend]
Collaboration diagram for V1TransportDeserializer:
[legend]

Public Member Functions

 V1TransportDeserializer (const CMessageHeader::MessageMagic &pchMessageStartIn, int nTypeIn, int nVersionIn)
 
bool Complete () const override
 
void SetVersion (int nVersionIn) override
 
int Read (const Config &config, const char *pch, uint32_t nBytes) override
 
CNetMessage GetMessage (const Config &config, std::chrono::microseconds time) override
 
- Public Member Functions inherited from TransportDeserializer
virtual ~TransportDeserializer ()
 

Private Member Functions

const uint256GetMessageHash () const
 
int readHeader (const Config &config, const char *pch, uint32_t nBytes)
 
int readData (const char *pch, uint32_t nBytes)
 
void Reset ()
 

Private Attributes

CHash256 hasher
 
uint256 data_hash
 
bool in_data
 
CDataStream hdrbuf
 
CMessageHeader hdr
 
CDataStream vRecv
 
uint32_t nHdrPos
 
uint32_t nDataPos
 

Detailed Description

Definition at line 841 of file net.h.

Constructor & Destructor Documentation

◆ V1TransportDeserializer()

V1TransportDeserializer::V1TransportDeserializer ( const CMessageHeader::MessageMagic pchMessageStartIn,
int  nTypeIn,
int  nVersionIn 
)
inline

Definition at line 873 of file net.h.

Here is the call graph for this function:

Member Function Documentation

◆ Complete()

bool V1TransportDeserializer::Complete ( ) const
inlineoverridevirtual

Implements TransportDeserializer.

Definition at line 881 of file net.h.

Here is the caller graph for this function:

◆ GetMessage()

CNetMessage V1TransportDeserializer::GetMessage ( const Config config,
std::chrono::microseconds  time 
)
overridevirtual

Implements TransportDeserializer.

Definition at line 759 of file net.cpp.

Here is the call graph for this function:

◆ GetMessageHash()

const uint256 & V1TransportDeserializer::GetMessageHash ( ) const
private

Definition at line 750 of file net.cpp.

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

◆ Read()

int V1TransportDeserializer::Read ( const Config config,
const char *  pch,
uint32_t  nBytes 
)
inlineoverridevirtual

Implements TransportDeserializer.

Definition at line 893 of file net.h.

Here is the call graph for this function:

◆ readData()

int V1TransportDeserializer::readData ( const char *  pch,
uint32_t  nBytes 
)
private

Definition at line 733 of file net.cpp.

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

◆ readHeader()

int V1TransportDeserializer::readHeader ( const Config config,
const char *  pch,
uint32_t  nBytes 
)
private

Definition at line 700 of file net.cpp.

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

◆ Reset()

void V1TransportDeserializer::Reset ( )
inlineprivate

Definition at line 861 of file net.h.

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

◆ SetVersion()

void V1TransportDeserializer::SetVersion ( int  nVersionIn)
inlineoverridevirtual

Implements TransportDeserializer.

Definition at line 889 of file net.h.

Here is the call graph for this function:

Member Data Documentation

◆ data_hash

uint256 V1TransportDeserializer::data_hash
mutableprivate

Definition at line 844 of file net.h.

◆ hasher

CHash256 V1TransportDeserializer::hasher
mutableprivate

Definition at line 843 of file net.h.

◆ hdr

CMessageHeader V1TransportDeserializer::hdr
private

Definition at line 851 of file net.h.

◆ hdrbuf

CDataStream V1TransportDeserializer::hdrbuf
private

Definition at line 849 of file net.h.

◆ in_data

bool V1TransportDeserializer::in_data
private

Definition at line 847 of file net.h.

◆ nDataPos

uint32_t V1TransportDeserializer::nDataPos
private

Definition at line 855 of file net.h.

◆ nHdrPos

uint32_t V1TransportDeserializer::nHdrPos
private

Definition at line 854 of file net.h.

◆ vRecv

CDataStream V1TransportDeserializer::vRecv
private

Definition at line 853 of file net.h.


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