Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
HTTPRPCTimerInterface Class Reference
Inheritance diagram for HTTPRPCTimerInterface:
[legend]
Collaboration diagram for HTTPRPCTimerInterface:
[legend]

Public Member Functions

 HTTPRPCTimerInterface (struct event_base *_base)
 
const char * Name () override
 Implementation name. More...
 
RPCTimerBaseNewTimer (std::function< void(void)> &func, int64_t millis) override
 Factory function for timers. More...
 
- Public Member Functions inherited from RPCTimerInterface
virtual ~RPCTimerInterface ()
 

Private Attributes

struct event_base * base
 

Detailed Description

Definition at line 44 of file httprpc.cpp.

Constructor & Destructor Documentation

HTTPRPCTimerInterface::HTTPRPCTimerInterface ( struct event_base *  _base)
inline

Definition at line 47 of file httprpc.cpp.

Member Function Documentation

const char* HTTPRPCTimerInterface::Name ( )
inlineoverridevirtual

Implementation name.

Implements RPCTimerInterface.

Definition at line 50 of file httprpc.cpp.

RPCTimerBase* HTTPRPCTimerInterface::NewTimer ( std::function< void(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 54 of file httprpc.cpp.

Here is the call graph for this function:

Member Data Documentation

struct event_base* HTTPRPCTimerInterface::base
private

Definition at line 59 of file httprpc.cpp.


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