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

Public Member Functions

 TestHostCap ()
 
virtual ~TestHostCap ()
 
- Public Member Functions inherited from dev::p2p::HostCapability< TestCap >
 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< TestCap >
static std::string staticName ()
 
static u256 staticVersion ()
 
static unsigned staticMessageCount ()
 
- Protected Member Functions inherited from dev::p2p::HostCapability< TestCap >
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 55 of file peer.cpp.

Constructor & Destructor Documentation

TestHostCap::TestHostCap ( )
inline

Definition at line 58 of file peer.cpp.

virtual TestHostCap::~TestHostCap ( )
inlinevirtual

Definition at line 59 of file peer.cpp.


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