Bitcoin Core  21.99.0
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 (Span< const uint8_t > &msg_bytes)=0
 read and deserialize data, advances msg_bytes data pointer More...
 
virtual Optional< CNetMessageGetMessage (std::chrono::microseconds time, uint32_t &out_err)=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 754 of file net.h.

Constructor & Destructor Documentation

◆ ~TransportDeserializer()

virtual TransportDeserializer::~TransportDeserializer ( )
inlinevirtual

Definition at line 764 of file net.h.

Member Function Documentation

◆ Complete()

virtual bool TransportDeserializer::Complete ( ) const
pure virtual

Implemented in V1TransportDeserializer.

◆ GetMessage()

virtual Optional<CNetMessage> TransportDeserializer::GetMessage ( std::chrono::microseconds  time,
uint32_t &  out_err 
)
pure virtual

Implemented in V1TransportDeserializer.

◆ Read()

virtual int TransportDeserializer::Read ( 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: