Bitcoin Core  0.20.99
P2P Digital Currency
Public Member Functions | List of all members
TransportDeserializer Class Referenceabstract

The TransportDeserializer takes care of holding and deserializing the network receive buffer. More...

#include <net.h>

Inheritance diagram for TransportDeserializer:
[legend]

Public Member Functions

virtual bool Complete () const =0
 
virtual void SetVersion (int version)=0
 
virtual int Read (const char *data, unsigned int bytes)=0
 
virtual CNetMessage GetMessage (const CMessageHeader::MessageStartChars &message_start, std::chrono::microseconds time)=0
 
virtual ~TransportDeserializer ()
 

Detailed Description

The TransportDeserializer takes care of holding and deserializing the network receive buffer.

It can deserialize the network buffer into a transport protocol agnostic CNetMessage (command & payload)

Definition at line 635 of file net.h.

Constructor & Destructor Documentation

◆ ~TransportDeserializer()

virtual TransportDeserializer::~TransportDeserializer ( )
inlinevirtual

Definition at line 645 of file net.h.

Member Function Documentation

◆ Complete()

virtual bool TransportDeserializer::Complete ( ) const
pure virtual

Implemented in V1TransportDeserializer.

◆ GetMessage()

virtual CNetMessage TransportDeserializer::GetMessage ( const CMessageHeader::MessageStartChars message_start,
std::chrono::microseconds  time 
)
pure virtual

Implemented in V1TransportDeserializer.

◆ Read()

virtual int TransportDeserializer::Read ( const char *  data,
unsigned int  bytes 
)
pure virtual

Implemented in V1TransportDeserializer.

◆ SetVersion()

virtual void TransportDeserializer::SetVersion ( int  version)
pure virtual

Implemented in V1TransportDeserializer.


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