Dash Core  0.12.2.1
P2P Digital Currency
HTTPRPCTimerInterface Class Reference
+ Inheritance diagram for HTTPRPCTimerInterface:

Public Member Functions

 HTTPRPCTimerInterface (struct event_base *base)
 
const char * Name ()
 
RPCTimerBaseNewTimer (boost::function< void(void)> &func, int64_t millis)
 
- Public Member Functions inherited from RPCTimerInterface
virtual ~RPCTimerInterface ()
 

Private Attributes

struct event_base * base
 

Detailed Description

Definition at line 41 of file httprpc.cpp.

Constructor & Destructor Documentation

◆ HTTPRPCTimerInterface()

HTTPRPCTimerInterface::HTTPRPCTimerInterface ( struct event_base *  base)
inline

Definition at line 44 of file httprpc.cpp.

Member Function Documentation

◆ Name()

const char* HTTPRPCTimerInterface::Name ( )
inlinevirtual

Implementation name

Implements RPCTimerInterface.

Definition at line 47 of file httprpc.cpp.

◆ NewTimer()

RPCTimerBase* HTTPRPCTimerInterface::NewTimer ( boost::function< void(void)> &  func,
int64_t  millis 
)
inlinevirtual

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 51 of file httprpc.cpp.

Member Data Documentation

◆ base

struct event_base* HTTPRPCTimerInterface::base
private

Definition at line 56 of file httprpc.cpp.

Referenced by NewTimer().


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