Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <Capability.h>
Public Member Functions | |
Capability (std::shared_ptr< SessionFace > _s, HostCapabilityFace *_h, unsigned _idOffset, uint16_t _protocolID) | |
virtual | ~Capability () |
Protected Member Functions | |
std::shared_ptr< SessionFace > | session () const |
HostCapabilityFace * | hostCapability () const |
virtual bool | interpret (unsigned _id, RLP const &)=0 |
void | disable (std::string const &_problem) |
RLPStream & | prep (RLPStream &_s, unsigned _id, unsigned _args=0) |
void | sealAndSend (RLPStream &_s) |
void | addRating (int _r) |
Protected Attributes | |
uint16_t const | c_protocolID |
Private Attributes | |
std::weak_ptr< SessionFace > | m_session |
HostCapabilityFace * | m_hostCap |
bool | m_enabled = true |
unsigned | m_idOffset |
Friends | |
class | Session |
Definition at line 34 of file Capability.h.
Capability::Capability | ( | std::shared_ptr< SessionFace > | _s, |
HostCapabilityFace * | _h, | ||
unsigned | _idOffset, | ||
uint16_t | _protocolID | ||
) |
|
inlinevirtual |
Definition at line 40 of file Capability.h.
|
protected |
Definition at line 55 of file Capability.cpp.
|
protected |
Definition at line 37 of file Capability.cpp.
|
inlineprotected |
|
protectedpure virtual |
Implemented in dev::eth::EthereumPeer, TestCapability, and TestCap.
Definition at line 43 of file Capability.cpp.
|
protected |
Definition at line 48 of file Capability.cpp.
|
inlineprotected |
|
friend |
Definition at line 36 of file Capability.h.
|
protected |
Definition at line 59 of file Capability.h.
|
private |
Definition at line 64 of file Capability.h.
|
private |
Definition at line 63 of file Capability.h.
|
private |
Definition at line 65 of file Capability.h.
|
private |
Definition at line 62 of file Capability.h.