Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
dev::p2p::HostCapability< PeerCap > Class Template Reference

#include <HostCapability.h>

Inheritance diagram for dev::p2p::HostCapability< PeerCap >:
[legend]
Collaboration diagram for dev::p2p::HostCapability< PeerCap >:
[legend]

Public Member Functions

 HostCapability ()
 
virtual ~HostCapability ()
 
- Public Member Functions inherited from dev::p2p::HostCapabilityFace
 HostCapabilityFace ()
 
virtual ~HostCapabilityFace ()
 
Hosthost () 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
 

Static Public Member Functions

static std::string staticName ()
 
static u256 staticVersion ()
 
static unsigned staticMessageCount ()
 

Protected Member Functions

virtual std::string name () const
 
virtual u256 version () const
 
virtual unsigned messageCount () const
 
virtual std::shared_ptr< CapabilitynewPeerCapability (std::shared_ptr< SessionFace > const &_s, unsigned _idOffset, CapDesc const &_cap, uint16_t _capID)
 
- Protected Member Functions inherited from dev::p2p::HostCapabilityFace
CapDesc capDesc () const
 
virtual void onStarting ()
 
virtual void onStopping ()
 

Detailed Description

template<class PeerCap>
class dev::p2p::HostCapability< PeerCap >

Definition at line 68 of file HostCapability.h.

Constructor & Destructor Documentation

template<class PeerCap>
dev::p2p::HostCapability< PeerCap >::HostCapability ( )
inline

Definition at line 71 of file HostCapability.h.

template<class PeerCap>
virtual dev::p2p::HostCapability< PeerCap >::~HostCapability ( )
inlinevirtual

Definition at line 72 of file HostCapability.h.

Member Function Documentation

template<class PeerCap>
virtual unsigned dev::p2p::HostCapability< PeerCap >::messageCount ( ) const
inlineprotectedvirtual

Implements dev::p2p::HostCapabilityFace.

Definition at line 81 of file HostCapability.h.

template<class PeerCap>
virtual std::string dev::p2p::HostCapability< PeerCap >::name ( ) const
inlineprotectedvirtual

Implements dev::p2p::HostCapabilityFace.

Definition at line 79 of file HostCapability.h.

template<class PeerCap>
virtual std::shared_ptr<Capability> dev::p2p::HostCapability< PeerCap >::newPeerCapability ( std::shared_ptr< SessionFace > const &  _s,
unsigned  _idOffset,
CapDesc const &  _cap,
uint16_t  _capID 
)
inlineprotectedvirtual

Implements dev::p2p::HostCapabilityFace.

Definition at line 83 of file HostCapability.h.

template<class PeerCap>
static unsigned dev::p2p::HostCapability< PeerCap >::staticMessageCount ( )
inlinestatic

Definition at line 76 of file HostCapability.h.

template<class PeerCap>
static std::string dev::p2p::HostCapability< PeerCap >::staticName ( )
inlinestatic

Definition at line 74 of file HostCapability.h.

template<class PeerCap>
static u256 dev::p2p::HostCapability< PeerCap >::staticVersion ( )
inlinestatic

Definition at line 75 of file HostCapability.h.

template<class PeerCap>
virtual u256 dev::p2p::HostCapability< PeerCap >::version ( ) const
inlineprotectedvirtual

Implements dev::p2p::HostCapabilityFace.

Definition at line 80 of file HostCapability.h.


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