Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
RPCTimerInterface Class Referenceabstract
RPC timer "driver". More...
#include <server.h>
Inheritance diagram for RPCTimerInterface:
Public Member Functions | |
virtual | ~RPCTimerInterface () |
virtual const char * | Name ()=0 |
Implementation name. More... | |
virtual RPCTimerBase * | NewTimer (std::function< void(void)> &func, int64_t millis)=0 |
Factory function for timers. More... | |
Detailed Description
Constructor & Destructor Documentation
◆ ~RPCTimerInterface()
|
inlinevirtual |
Member Function Documentation
◆ Name()
|
pure virtual |
Implementation name.
Implemented in QtRPCTimerInterface, and HTTPRPCTimerInterface.
Referenced by RPCRunLater().
◆ NewTimer()
|
pure virtual |
Factory function for timers.
RPC will call the function to create a timer that will call func in millis milliseconds.
- Note
- As the RPC mechanism is backend-neutral, it can use different implementations of timers. This is needed to cope with the case in which there is no HTTP server, but only GUI RPC console, and to break the dependency of pcserver on httprpc.
Implemented in QtRPCTimerInterface, and HTTPRPCTimerInterface.
Referenced by RPCRunLater().
The documentation for this class was generated from the following file:
- src/rpc/server.h