Kagome
Polkadot Runtime Engine in C++17
kagome::network::ReqCollationProtocol Class Referencefinal

#include <protocol_req_collation.hpp>

Inheritance diagram for kagome::network::ReqCollationProtocol:
Collaboration diagram for kagome::network::ReqCollationProtocol:

Public Member Functions

 ReqCollationProtocol ()=delete
 
 ~ReqCollationProtocol () override=default
 
 ReqCollationProtocol (libp2p::Host &host, application::AppConfiguration const &app_config, application::ChainSpec const &chain_spec, std::shared_ptr< ReqCollationObserver > observer)
 
const ProtocolprotocolName () const override
 
bool start () override
 
bool stop () override
 
void onIncomingStream (std::shared_ptr< Stream > stream) override
 
void newOutgoingStream (const PeerInfo &peer_info, std::function< void(outcome::result< std::shared_ptr< Stream >>)> &&cb) override
 
void request (const PeerId &peer_id, CollationFetchingRequest request, std::function< void(outcome::result< CollationFetchingResponse >)> &&response_handler) override
 
- Public Member Functions inherited from kagome::network::ProtocolBase
 ProtocolBase ()=default
 
 ProtocolBase (ProtocolBase &&) noexcept=delete
 
 ProtocolBase (const ProtocolBase &)=delete
 
virtual ~ProtocolBase ()=default
 
ProtocolBaseoperator= (ProtocolBase &&) noexcept=delete
 
ProtocolBaseoperator= (ProtocolBase const &)=delete
 

Private Attributes

std::shared_ptr< ReqCollationProtocolImplimpl_
 

Additional Inherited Members

- Private Member Functions inherited from NonCopyable
 NonCopyable (NonCopyable const &)=delete
 
NonCopyableoperator= (NonCopyable const &)=delete
 
 NonCopyable ()=default
 
 ~NonCopyable ()=default
 
- Private Member Functions inherited from NonMovable
 NonMovable (NonMovable &&)=delete
 
NonMovableoperator= (NonMovable &&)=delete
 
 NonMovable ()=default
 
 ~NonMovable ()=default
 

Detailed Description

Definition at line 31 of file protocol_req_collation.hpp.

Constructor & Destructor Documentation

kagome::network::ReqCollationProtocol::ReqCollationProtocol ( )
delete
kagome::network::ReqCollationProtocol::~ReqCollationProtocol ( )
overridedefault
kagome::network::ReqCollationProtocol::ReqCollationProtocol ( libp2p::Host &  host,
application::AppConfiguration const &  app_config,
application::ChainSpec const &  chain_spec,
std::shared_ptr< ReqCollationObserver observer 
)

Definition at line 50 of file protocol_req_collation.cpp.

Member Function Documentation

void kagome::network::ReqCollationProtocol::newOutgoingStream ( const PeerInfo peer_info)
overridevirtual

Implements kagome::network::ProtocolBase.

Definition at line 77 of file protocol_req_collation.cpp.

void kagome::network::ReqCollationProtocol::onIncomingStream ( std::shared_ptr< Stream stream)
overridevirtual

Implements kagome::network::ProtocolBase.

Definition at line 73 of file protocol_req_collation.cpp.

const Protocol & kagome::network::ReqCollationProtocol::protocolName ( ) const
overridevirtual

Implements kagome::network::ProtocolBase.

Definition at line 58 of file protocol_req_collation.cpp.

void kagome::network::ReqCollationProtocol::request ( const PeerId peer_id,
CollationFetchingRequest  request,
std::function< void(outcome::result< CollationFetchingResponse >)> &&  response_handler 
)
overridevirtual

Implements kagome::network::IReqCollationProtocol.

Definition at line 83 of file protocol_req_collation.cpp.

bool kagome::network::ReqCollationProtocol::start ( )
overridevirtual

Implements kagome::network::ProtocolBase.

Definition at line 63 of file protocol_req_collation.cpp.

bool kagome::network::ReqCollationProtocol::stop ( )
overridevirtual

Implements kagome::network::ProtocolBase.

Definition at line 68 of file protocol_req_collation.cpp.

Member Data Documentation

std::shared_ptr<ReqCollationProtocolImpl> kagome::network::ReqCollationProtocol::impl_
private

Definition at line 60 of file protocol_req_collation.hpp.


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