Bitcoin ABC  0.26.3
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 Config &config, Span< const uint8_t > &msg_bytes)=0
 read and deserialize data, advances msg_bytes data pointer More...
 
virtual CNetMessage GetMessage (const Config &config, 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 355 of file net.h.

Constructor & Destructor Documentation

◆ ~TransportDeserializer()

virtual TransportDeserializer::~TransportDeserializer ( )
inlinevirtual

Definition at line 366 of file net.h.

Member Function Documentation

◆ Complete()

virtual bool TransportDeserializer::Complete ( ) const
pure virtual

Implemented in V1TransportDeserializer.

◆ GetMessage()

virtual CNetMessage TransportDeserializer::GetMessage ( const Config config,
std::chrono::microseconds  time 
)
pure virtual

Implemented in V1TransportDeserializer.

◆ Read()

virtual int TransportDeserializer::Read ( const Config config,
Span< const uint8_t > &  msg_bytes 
)
pure virtual

read and deserialize data, advances msg_bytes data pointer

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: