Kagome
Polkadot Runtime Engine in C++17
|
#include <protocol_base.hpp>
Public Member Functions | |
ProtocolBase ()=default | |
ProtocolBase (ProtocolBase &&) noexcept=delete | |
ProtocolBase (const ProtocolBase &)=delete | |
virtual | ~ProtocolBase ()=default |
ProtocolBase & | operator= (ProtocolBase &&) noexcept=delete |
ProtocolBase & | operator= (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 |
Definition at line 25 of file protocol_base.hpp.
|
default |
|
deletenoexcept |
|
delete |
|
virtualdefault |
|
pure virtual |
Implemented in kagome::network::SyncProtocolImpl, kagome::network::RequestResponseProtocol< Request, Response, ReadWriter >, kagome::network::RequestResponseProtocol< CollationFetchingRequest, CollationFetchingResponse, ScaleMessageReadWriter >, kagome::network::GrandpaProtocol, kagome::network::PropagateTransactionsProtocol, kagome::network::BlockAnnounceProtocol, kagome::network::ReqCollationProtocol, kagome::network::CollationProtocol, and kagome::network::StateProtocolImpl.
|
pure virtual |
Implemented in kagome::network::SyncProtocolImpl, kagome::network::RequestResponseProtocol< Request, Response, ReadWriter >, kagome::network::RequestResponseProtocol< CollationFetchingRequest, CollationFetchingResponse, ScaleMessageReadWriter >, kagome::network::GrandpaProtocol, kagome::network::PropagateTransactionsProtocol, kagome::network::BlockAnnounceProtocol, kagome::network::ReqCollationProtocol, kagome::network::CollationProtocol, and kagome::network::StateProtocolImpl.
|
deletenoexcept |
|
delete |
|
pure virtual |
Implemented in kagome::network::SyncProtocolImpl, kagome::network::GrandpaProtocol, kagome::network::PropagateTransactionsProtocol, kagome::network::CollationProtocol, kagome::network::BlockAnnounceProtocol, kagome::network::ReqCollationProtocol, kagome::network::RequestResponseProtocol< Request, Response, ReadWriter >, kagome::network::RequestResponseProtocol< CollationFetchingRequest, CollationFetchingResponse, ScaleMessageReadWriter >, and kagome::network::StateProtocolImpl.
|
pure virtual |
Implemented in kagome::network::SyncProtocolImpl, kagome::network::GrandpaProtocol, kagome::network::PropagateTransactionsProtocol, kagome::network::CollationProtocol, kagome::network::BlockAnnounceProtocol, kagome::network::ReqCollationProtocol, kagome::network::StateProtocolImpl, kagome::network::RequestResponseProtocol< Request, Response, ReadWriter >, and kagome::network::RequestResponseProtocol< CollationFetchingRequest, CollationFetchingResponse, ScaleMessageReadWriter >.
|
pure virtual |
Implemented in kagome::network::SyncProtocolImpl, kagome::network::GrandpaProtocol, kagome::network::PropagateTransactionsProtocol, kagome::network::CollationProtocol, kagome::network::BlockAnnounceProtocol, kagome::network::ReqCollationProtocol, kagome::network::StateProtocolImpl, kagome::network::RequestResponseProtocol< Request, Response, ReadWriter >, and kagome::network::RequestResponseProtocol< CollationFetchingRequest, CollationFetchingResponse, ScaleMessageReadWriter >.