Kagome
Polkadot Runtime Engine in C++17
|
#include <router_libp2p.hpp>
Public Member Functions | |
RouterLibp2p (std::shared_ptr< application::AppStateManager > app_state_manager, libp2p::Host &host, const application::AppConfiguration &app_config, const OwnPeerInfo &own_info, const BootstrapNodes &bootstrap_nodes, std::shared_ptr< libp2p::protocol::Ping > ping_proto, std::shared_ptr< network::ProtocolFactory > protocol_factory) | |
~RouterLibp2p () override=default | |
bool | prepare () |
bool | start () |
void | stop () |
std::shared_ptr< BlockAnnounceProtocol > | getBlockAnnounceProtocol () const override |
std::shared_ptr< PropagateTransactionsProtocol > | getPropagateTransactionsProtocol () const override |
std::shared_ptr< StateProtocol > | getStateProtocol () const override |
std::shared_ptr< SyncProtocol > | getSyncProtocol () const override |
std::shared_ptr< GrandpaProtocol > | getGrandpaProtocol () const override |
std::shared_ptr< CollationProtocol > | getCollationProtocol () const override |
std::shared_ptr< ReqCollationProtocol > | getReqCollationProtocol () const override |
std::shared_ptr< libp2p::protocol::Ping > | getPingProtocol () const override |
Public Member Functions inherited from kagome::network::Router | |
virtual | ~Router ()=default |
Private Member Functions | |
outcome::result< void > | appendPeerIdToAddress (libp2p::multi::Multiaddress &address) const |
Private Attributes | |
std::shared_ptr< application::AppStateManager > | app_state_manager_ |
libp2p::Host & | host_ |
const application::AppConfiguration & | app_config_ |
const OwnPeerInfo & | own_info_ |
log::Logger | log_ |
std::shared_ptr< libp2p::protocol::Ping > | ping_protocol_ |
std::shared_ptr< network::ProtocolFactory > | protocol_factory_ |
std::shared_ptr< BlockAnnounceProtocol > | block_announce_protocol_ |
std::shared_ptr< GrandpaProtocol > | grandpa_protocol_ |
std::shared_ptr< PropagateTransactionsProtocol > | propagate_transaction_protocol_ |
std::shared_ptr< StateProtocol > | state_protocol_ |
std::shared_ptr< SyncProtocol > | sync_protocol_ |
std::shared_ptr< CollationProtocol > | collation_protocol_ |
std::shared_ptr< ReqCollationProtocol > | req_collation_protocol_ |
Definition at line 31 of file router_libp2p.hpp.
kagome::network::RouterLibp2p::RouterLibp2p | ( | std::shared_ptr< application::AppStateManager > | app_state_manager, |
libp2p::Host & | host, | ||
const application::AppConfiguration & | app_config, | ||
const OwnPeerInfo & | own_info, | ||
const BootstrapNodes & | bootstrap_nodes, | ||
std::shared_ptr< libp2p::protocol::Ping > | ping_proto, | ||
std::shared_ptr< network::ProtocolFactory > | protocol_factory | ||
) |
Definition at line 9 of file router_libp2p.cpp.
|
overridedefault |
|
private |
Appends /p2p/<peerid> part to ip4 and ip6 addresses which then passed to host->listen method. Used further by Kademlia. Non ip4 and ip6 addresses are left untouched
address | multiaddress |
Definition at line 196 of file router_libp2p.cpp.
|
overridevirtual |
Implements kagome::network::Router.
Definition at line 160 of file router_libp2p.cpp.
|
overridevirtual |
Implements kagome::network::Router.
Definition at line 164 of file router_libp2p.cpp.
|
overridevirtual |
Implements kagome::network::Router.
Definition at line 187 of file router_libp2p.cpp.
|
overridevirtual |
Implements kagome::network::Router.
Definition at line 191 of file router_libp2p.cpp.
|
overridevirtual |
Implements kagome::network::Router.
Definition at line 175 of file router_libp2p.cpp.
|
overridevirtual |
Implements kagome::network::Router.
Definition at line 169 of file router_libp2p.cpp.
|
overridevirtual |
Implements kagome::network::Router.
Definition at line 179 of file router_libp2p.cpp.
|
overridevirtual |
Implements kagome::network::Router.
Definition at line 183 of file router_libp2p.cpp.
bool kagome::network::RouterLibp2p::prepare | ( | ) |
Definition at line 44 of file router_libp2p.cpp.
bool kagome::network::RouterLibp2p::start | ( | ) |
Definition at line 108 of file router_libp2p.cpp.
void kagome::network::RouterLibp2p::stop | ( | ) |
Definition at line 153 of file router_libp2p.cpp.
|
private |
Definition at line 80 of file router_libp2p.hpp.
|
private |
Definition at line 78 of file router_libp2p.hpp.
|
private |
Definition at line 86 of file router_libp2p.hpp.
|
private |
Definition at line 92 of file router_libp2p.hpp.
|
private |
Definition at line 87 of file router_libp2p.hpp.
|
private |
Definition at line 79 of file router_libp2p.hpp.
|
private |
Definition at line 82 of file router_libp2p.hpp.
|
private |
Definition at line 81 of file router_libp2p.hpp.
|
private |
Definition at line 83 of file router_libp2p.hpp.
|
private |
Definition at line 89 of file router_libp2p.hpp.
|
private |
Definition at line 84 of file router_libp2p.hpp.
|
private |
Definition at line 93 of file router_libp2p.hpp.
|
private |
Definition at line 90 of file router_libp2p.hpp.
|
private |
Definition at line 91 of file router_libp2p.hpp.