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

#include <protocol_base_impl.hpp>

Inheritance diagram for kagome::network::ProtocolBaseImpl:
Collaboration diagram for kagome::network::ProtocolBaseImpl:

Public Member Functions

 ProtocolBaseImpl ()=delete
 
 ~ProtocolBaseImpl ()=default
 
 ProtocolBaseImpl (libp2p::Host &host, Protocols const &protocols, std::string const &log_section)
 
template<typename T >
bool start (std::weak_ptr< T > wptr)
 
bool stop ()
 
Protocols const & protocolIds () const
 
Hosthost ()
 
log::Logger const & logger () const
 
template<typename T >
void closeStream (std::weak_ptr< T > wptr, std::shared_ptr< Stream > stream)
 

Private Attributes

Hosthost_
 
Protocols const protocols_
 
log::Logger log_
 

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_base_impl.hpp.

Constructor & Destructor Documentation

kagome::network::ProtocolBaseImpl::ProtocolBaseImpl ( )
delete
kagome::network::ProtocolBaseImpl::~ProtocolBaseImpl ( )
default
kagome::network::ProtocolBaseImpl::ProtocolBaseImpl ( libp2p::Host &  host,
Protocols const &  protocols,
std::string const &  log_section 
)
inline

Definition at line 36 of file protocol_base_impl.hpp.

Member Function Documentation

template<typename T >
void kagome::network::ProtocolBaseImpl::closeStream ( std::weak_ptr< T >  wptr,
std::shared_ptr< Stream stream 
)
inline

Definition at line 85 of file protocol_base_impl.hpp.

Host& kagome::network::ProtocolBaseImpl::host ( )
inline

Definition at line 76 of file protocol_base_impl.hpp.

log::Logger const& kagome::network::ProtocolBaseImpl::logger ( ) const
inline

Definition at line 80 of file protocol_base_impl.hpp.

Protocols const& kagome::network::ProtocolBaseImpl::protocolIds ( ) const
inline

Definition at line 72 of file protocol_base_impl.hpp.

template<typename T >
bool kagome::network::ProtocolBaseImpl::start ( std::weak_ptr< T >  wptr)
inline

Definition at line 44 of file protocol_base_impl.hpp.

bool kagome::network::ProtocolBaseImpl::stop ( )
inline

Definition at line 68 of file protocol_base_impl.hpp.

Member Data Documentation

Host& kagome::network::ProtocolBaseImpl::host_
private

Definition at line 106 of file protocol_base_impl.hpp.

log::Logger kagome::network::ProtocolBaseImpl::log_
private

Definition at line 108 of file protocol_base_impl.hpp.

Protocols const kagome::network::ProtocolBaseImpl::protocols_
private

Definition at line 107 of file protocol_base_impl.hpp.


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