Definition at line 53 of file httprpc.cpp.
◆ HTTPRPCTimerInterface()
HTTPRPCTimerInterface::HTTPRPCTimerInterface |
( |
struct event_base * |
_base | ) |
|
|
inlineexplicit |
◆ Name()
const char * HTTPRPCTimerInterface::Name |
( |
| ) |
|
|
inlineoverridevirtual |
◆ NewTimer()
RPCTimerBase * HTTPRPCTimerInterface::NewTimer |
( |
std::function< void()> & |
func, |
|
|
int64_t |
millis |
|
) |
| |
|
inlineoverridevirtual |
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.
Implements RPCTimerInterface.
Definition at line 63 of file httprpc.cpp.
◆ base
struct event_base* HTTPRPCTimerInterface::base |
|
private |
The documentation for this class was generated from the following file: