Kagome
Polkadot Runtime Engine in C++17
kagome::network::ProtocolBase Class Referenceabstract

#include <protocol_base.hpp>

Inheritance diagram for kagome::network::ProtocolBase:
Collaboration diagram for kagome::network::ProtocolBase:

Public Member Functions

 ProtocolBase ()=default
 
 ProtocolBase (ProtocolBase &&) noexcept=delete
 
 ProtocolBase (const ProtocolBase &)=delete
 
virtual ~ProtocolBase ()=default
 
ProtocolBaseoperator= (ProtocolBase &&) noexcept=delete
 
ProtocolBaseoperator= (ProtocolBase const &)=delete
 
virtual const std::string & protocolName () const =0
 
virtual bool start ()=0
 
virtual bool stop ()=0
 
virtual void onIncomingStream (std::shared_ptr< Stream > stream)=0
 
virtual void newOutgoingStream (const PeerInfo &peer_info, std::function< void(outcome::result< std::shared_ptr< Stream >>)> &&cb)=0
 

Detailed Description

Definition at line 25 of file protocol_base.hpp.

Constructor & Destructor Documentation

kagome::network::ProtocolBase::ProtocolBase ( )
default
kagome::network::ProtocolBase::ProtocolBase ( ProtocolBase &&  )
deletenoexcept
kagome::network::ProtocolBase::ProtocolBase ( const ProtocolBase )
delete
virtual kagome::network::ProtocolBase::~ProtocolBase ( )
virtualdefault

Member Function Documentation

ProtocolBase& kagome::network::ProtocolBase::operator= ( ProtocolBase &&  )
deletenoexcept
ProtocolBase& kagome::network::ProtocolBase::operator= ( ProtocolBase const &  )
delete

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