Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <HostCapability.h>
Public Member Functions | |
HostCapabilityFace () | |
virtual | ~HostCapabilityFace () |
Host * | host () const |
std::vector< std::pair< std::shared_ptr< SessionFace >, std::shared_ptr< Peer > > > | peerSessions () const |
std::vector< std::pair< std::shared_ptr< SessionFace >, std::shared_ptr< Peer > > > | peerSessions (u256 const &_version) const |
Protected Member Functions | |
virtual std::string | name () const =0 |
virtual u256 | version () const =0 |
CapDesc | capDesc () const |
virtual unsigned | messageCount () const =0 |
virtual std::shared_ptr< Capability > | newPeerCapability (std::shared_ptr< SessionFace > const &_s, unsigned _idOffset, CapDesc const &_cap, uint16_t _capID)=0 |
virtual void | onStarting () |
virtual void | onStopping () |
Private Attributes | |
Host * | m_host = nullptr |
Friends | |
class | Host |
template<class T > | |
class | HostCapability |
class | Capability |
class | Session |
Definition at line 37 of file HostCapability.h.
|
inline |
Definition at line 45 of file HostCapability.h.
|
inlinevirtual |
Definition at line 46 of file HostCapability.h.
|
inlineprotected |
|
inline |
Definition at line 48 of file HostCapability.h.
|
protectedpure virtual |
Implemented in dev::p2p::HostCapability< PeerCap >, dev::p2p::HostCapability< TestCap >, dev::p2p::HostCapability< TestCapability >, dev::p2p::HostCapability< EthereumPeer >, and MockHostCapability.
|
protectedpure virtual |
Implemented in dev::p2p::HostCapability< PeerCap >, dev::p2p::HostCapability< TestCap >, dev::p2p::HostCapability< TestCapability >, dev::p2p::HostCapability< EthereumPeer >, and MockHostCapability.
|
protectedpure virtual |
Implemented in dev::p2p::HostCapability< PeerCap >, dev::p2p::HostCapability< TestCap >, dev::p2p::HostCapability< TestCapability >, and dev::p2p::HostCapability< EthereumPeer >.
|
inlineprotectedvirtual |
Reimplemented in dev::eth::EthereumHost.
Definition at line 60 of file HostCapability.h.
|
inlineprotectedvirtual |
Reimplemented in dev::eth::EthereumHost.
Definition at line 61 of file HostCapability.h.
std::vector< std::pair< std::shared_ptr< SessionFace >, std::shared_ptr< Peer > > > HostCapabilityFace::peerSessions | ( | ) | const |
Definition at line 30 of file HostCapability.cpp.
std::vector< std::pair< std::shared_ptr< SessionFace >, std::shared_ptr< Peer > > > HostCapabilityFace::peerSessions | ( | u256 const & | _version | ) | const |
Definition at line 35 of file HostCapability.cpp.
|
protectedpure virtual |
Implemented in dev::p2p::HostCapability< PeerCap >, dev::p2p::HostCapability< TestCap >, dev::p2p::HostCapability< TestCapability >, dev::p2p::HostCapability< EthereumPeer >, and MockHostCapability.
|
friend |
Definition at line 41 of file HostCapability.h.
|
friend |
Definition at line 39 of file HostCapability.h.
|
friend |
Definition at line 40 of file HostCapability.h.
|
friend |
Definition at line 42 of file HostCapability.h.
Definition at line 64 of file HostCapability.h.