Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Public Member Functions | List of all members
RPCTimerInterface Class Referenceabstract

RPC timer "driver". More...

#include <server.h>

Inheritance diagram for RPCTimerInterface:
[legend]

Public Member Functions

virtual ~RPCTimerInterface ()
 
virtual const charName ()=0
 Implementation name.
 
virtual RPCTimerBaseNewTimer (std::function< void()> &func, int64_t millis)=0
 Factory function for timers.
 

Detailed Description

RPC timer "driver".

Definition at line 100 of file server.h.

Constructor & Destructor Documentation

◆ ~RPCTimerInterface()

virtual RPCTimerInterface::~RPCTimerInterface ( )
inlinevirtual

Definition at line 102 of file server.h.

Member Function Documentation

◆ Name()

virtual const char * RPCTimerInterface::Name ( )
pure virtual

Implementation name.

Implemented in HTTPRPCTimerInterface, and QtRPCTimerInterface.

Here is the caller graph for this function:

◆ NewTimer()

virtual RPCTimerBase * RPCTimerInterface::NewTimer ( std::function< void()> &  func,
int64_t  millis 
)
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 HTTPRPCTimerInterface, and QtRPCTimerInterface.

Here is the caller graph for this function:

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