Fabcoin Core
0.16.2
P2P Digital Currency
|
Public Member Functions | |
TestUDPSocket () | |
void | onDisconnected (UDPSocketFace *) |
void | onReceived (UDPSocketFace *, bi::udp::endpoint const &, bytesConstRef _packet) |
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 | |
shared_ptr< UDPSocket< TestUDPSocket, 1024 > > | m_socket |
bool | success = false |
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... | |
Worker & | operator= (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 |
|
inlinevirtual |
Reimplemented from dev::p2p::UDPSocketEvents.
|
inlinevirtual |
Implements dev::p2p::UDPSocketEvents.
Definition at line 150 of file net.cpp.
shared_ptr<UDPSocket<TestUDPSocket, 1024> > TestUDPSocket::m_socket |