Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TestCapability Class Reference
Inheritance diagram for TestCapability:
[legend]
Collaboration diagram for TestCapability:
[legend]

Public Member Functions

 TestCapability (std::shared_ptr< SessionFace > _s, HostCapabilityFace *_h, unsigned _idOffset, CapDesc const &, uint16_t _capID)
 
virtual ~TestCapability ()
 
int countReceivedMessages ()
 
int testSum ()
 
void sendTestMessage (int _i)
 
- Public Member Functions inherited from dev::p2p::Capability
 Capability (std::shared_ptr< SessionFace > _s, HostCapabilityFace *_h, unsigned _idOffset, uint16_t _protocolID)
 
virtual ~Capability ()
 

Static Public Member Functions

static std::string name ()
 
static u256 version ()
 
static unsigned messageCount ()
 

Protected Member Functions

virtual bool interpret (unsigned _id, RLP const &_r) override
 
- Protected Member Functions inherited from dev::p2p::Capability
std::shared_ptr< SessionFacesession () const
 
HostCapabilityFacehostCapability () const
 
void disable (std::string const &_problem)
 
RLPStreamprep (RLPStream &_s, unsigned _id, unsigned _args=0)
 
void sealAndSend (RLPStream &_s)
 
void addRating (int _r)
 

Protected Attributes

int m_cntReceivedMessages
 
int m_testSum
 
- Protected Attributes inherited from dev::p2p::Capability
uint16_t const c_protocolID
 

Detailed Description

Definition at line 43 of file capability.cpp.

Constructor & Destructor Documentation

TestCapability::TestCapability ( std::shared_ptr< SessionFace _s,
HostCapabilityFace _h,
unsigned  _idOffset,
CapDesc const &  ,
uint16_t  _capID 
)
inline

Definition at line 46 of file capability.cpp.

virtual TestCapability::~TestCapability ( )
inlinevirtual

Definition at line 47 of file capability.cpp.

Member Function Documentation

int TestCapability::countReceivedMessages ( )
inline

Definition at line 48 of file capability.cpp.

bool TestCapability::interpret ( unsigned  _id,
RLP const &  _r 
)
overrideprotectedvirtual

Implements dev::p2p::Capability.

Definition at line 62 of file capability.cpp.

Here is the call graph for this function:

static unsigned TestCapability::messageCount ( )
inlinestatic

Definition at line 52 of file capability.cpp.

static std::string TestCapability::name ( )
inlinestatic

Definition at line 50 of file capability.cpp.

void TestCapability::sendTestMessage ( int  _i)
inline

Definition at line 53 of file capability.cpp.

int TestCapability::testSum ( )
inline

Definition at line 49 of file capability.cpp.

static u256 TestCapability::version ( )
inlinestatic

Definition at line 51 of file capability.cpp.

Member Data Documentation

int TestCapability::m_cntReceivedMessages
protected

Definition at line 58 of file capability.cpp.

int TestCapability::m_testSum
protected

Definition at line 59 of file capability.cpp.


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