Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
TestNodeTableHost Struct Reference

Only used for testing. More...

Inheritance diagram for TestNodeTableHost:
[legend]
Collaboration diagram for TestNodeTableHost:
[legend]

Public Member Functions

 TestNodeTableHost (unsigned _count=8)
 
 ~TestNodeTableHost ()
 
void setup ()
 
void pingAll ()
 
void populateAll (size_t _count=0)
 
void populate (size_t _count=0)
 
- Public Member Functions inherited from TestHost
 TestHost ()
 
virtual ~TestHost ()
 
void start ()
 
void doWork ()
 Called continuously following sleep for m_idleWaitMs. More...
 
void doneWorking ()
 Called when is to be stopped, just prior to thread being joined. More...
 

Public Attributes

KeyPair m_alias
 
shared_ptr< TestNodeTablenodeTable
 
std::vector< std::pair< KeyPair, unsigned > > testNodes
 
std::vector< shared_ptr< TestNodeTable > > nodeTables
 

Additional Inherited Members

- 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 workLoop ()
 Overrides doWork(); should call shouldStop() often and exit when true. More...
 
bool shouldStop () const
 
- Protected Attributes inherited from TestHost
ba::io_service m_io
 

Detailed Description

Only used for testing.

Not useful beyond tests.

Definition at line 125 of file net.cpp.

Constructor & Destructor Documentation

TestNodeTableHost::TestNodeTableHost ( unsigned  _count = 8)
inline

Definition at line 127 of file net.cpp.

TestNodeTableHost::~TestNodeTableHost ( )
inline

Definition at line 128 of file net.cpp.

Member Function Documentation

void TestNodeTableHost::pingAll ( )
inline

Definition at line 132 of file net.cpp.

void TestNodeTableHost::populate ( size_t  _count = 0)
inline

Definition at line 136 of file net.cpp.

Here is the caller graph for this function:

void TestNodeTableHost::populateAll ( size_t  _count = 0)
inline

Definition at line 134 of file net.cpp.

Here is the caller graph for this function:

void TestNodeTableHost::setup ( )
inline

Definition at line 130 of file net.cpp.

Here is the caller graph for this function:

Member Data Documentation

KeyPair TestNodeTableHost::m_alias

Definition at line 138 of file net.cpp.

shared_ptr<TestNodeTable> TestNodeTableHost::nodeTable

Definition at line 139 of file net.cpp.

std::vector<shared_ptr<TestNodeTable> > TestNodeTableHost::nodeTables

Definition at line 141 of file net.cpp.

std::vector<std::pair<KeyPair,unsigned> > TestNodeTableHost::testNodes

Definition at line 140 of file net.cpp.


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