Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <ModularServer.h>
Public Types | |
using | MethodPointer = AbstractMethodPointer< I > |
using | NotificationPointer = AbstractNotificationPointer< I > |
Public Member Functions | |
ModularServer (I *_i, Is *..._is) | |
virtual void | HandleMethodCall (jsonrpc::Procedure &_proc, Json::Value const &_input, Json::Value &_output) override |
virtual void | HandleNotificationCall (jsonrpc::Procedure &_proc, Json::Value const &_input) override |
Public Member Functions inherited from ModularServer< Is... > | |
ModularServer () | |
virtual void | modules (const Json::Value &request, Json::Value &response) |
virtual | ~ModularServer () |
virtual void | StartListening () |
virtual void | StopListening () |
unsigned | addConnector (jsonrpc::AbstractServerConnector *_connector) |
server takes ownership of the connector More... | |
jsonrpc::AbstractServerConnector * | connector (unsigned _i) const |
Private Attributes | |
std::unique_ptr< I > | m_interface |
std::map< std::string, MethodPointer > | m_methods |
std::map< std::string, NotificationPointer > | m_notifications |
Additional Inherited Members | |
Protected Attributes inherited from ModularServer< Is... > | |
std::vector< std::unique_ptr< jsonrpc::AbstractServerConnector > > | m_connectors |
std::unique_ptr< jsonrpc::IProtocolHandler > | m_handler |
Json::Value | m_implementedModules |
Mapping for implemented modules, to be filled by subclasses during construction. More... | |
Definition at line 130 of file ModularServer.h.
using ModularServer< I, Is... >::MethodPointer = AbstractMethodPointer<I> |
Definition at line 133 of file ModularServer.h.
using ModularServer< I, Is... >::NotificationPointer = AbstractNotificationPointer<I> |
Definition at line 134 of file ModularServer.h.
|
inline |
Definition at line 136 of file ModularServer.h.
|
inlineoverridevirtual |
Reimplemented from ModularServer< Is... >.
Definition at line 156 of file ModularServer.h.
|
inlineoverridevirtual |
Reimplemented from ModularServer< Is... >.
Definition at line 165 of file ModularServer.h.
|
private |
Definition at line 175 of file ModularServer.h.
|
private |
Definition at line 176 of file ModularServer.h.
|
private |
Definition at line 177 of file ModularServer.h.