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

Public Member Functions

 TestHostCapability ()
 
virtual ~TestHostCapability ()
 
void sendTestMessage (NodeID const &_id, int _x)
 
std::pair< int, int > retrieveTestData (NodeID const &_id)
 
- Public Member Functions inherited from dev::p2p::HostCapability< TestCapability >
 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
 

Additional Inherited Members

- Static Public Member Functions inherited from dev::p2p::HostCapability< TestCapability >
static std::string staticName ()
 
static u256 staticVersion ()
 
static unsigned staticMessageCount ()
 
- Protected Member Functions inherited from dev::p2p::HostCapability< TestCapability >
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 ()
 
- Protected Member Functions inherited from dev::Worker
 Worker (std::string const &_name="anon", unsigned _idleWaitMs=30)
 
 Worker (Worker &&_m)
 Move-constructor. More...
 
Workeroperator= (Worker &&_m)
 Move-assignment. More...
 
virtual ~Worker ()
 
void setName (std::string _n)
 Allows changing worker name if work is stopped. More...
 
void startWorking ()
 Starts worker thread; causes startedWorking() to be called. More...
 
void stopWorking ()
 Stop worker thread; causes call to stopWorking(). More...
 
bool isWorking () const
 Returns if worker thread is present. More...
 
virtual void startedWorking ()
 Called after thread is started from startWorking(). More...
 
virtual void doWork ()
 Called continuously following sleep for m_idleWaitMs. More...
 
virtual void workLoop ()
 Overrides doWork(); should call shouldStop() often and exit when true. More...
 
bool shouldStop () const
 
virtual void doneWorking ()
 Called when is to be stopped, just prior to thread being joined. More...
 

Detailed Description

Definition at line 71 of file capability.cpp.

Constructor & Destructor Documentation

TestHostCapability::TestHostCapability ( )
inline

Definition at line 74 of file capability.cpp.

virtual TestHostCapability::~TestHostCapability ( )
inlinevirtual

Definition at line 75 of file capability.cpp.

Member Function Documentation

std::pair<int, int> TestHostCapability::retrieveTestData ( NodeID const &  _id)
inline

Definition at line 84 of file capability.cpp.

void TestHostCapability::sendTestMessage ( NodeID const &  _id,
int  _x 
)
inline

Definition at line 77 of file capability.cpp.


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