Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Protected Attributes | List of all members
ModularServer< Is > Class Template Reference

#include <ModularServer.h>

Inheritance diagram for ModularServer< Is >:
[legend]
Collaboration diagram for ModularServer< Is >:
[legend]

Public Member Functions

 ModularServer ()
 
virtual void modules (const Json::Value &request, Json::Value &response)
 
virtual ~ModularServer ()
 
virtual void StartListening ()
 
virtual void StopListening ()
 
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
 
unsigned addConnector (jsonrpc::AbstractServerConnector *_connector)
 server takes ownership of the connector More...
 
jsonrpc::AbstractServerConnector * connector (unsigned _i) const
 

Protected Attributes

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...
 

Detailed Description

template<class... Is>
class ModularServer< Is >

Definition at line 68 of file ModularServer.h.

Constructor & Destructor Documentation

template<class... Is>
ModularServer< Is >::ModularServer ( )
inline

Definition at line 71 of file ModularServer.h.

template<class... Is>
virtual ModularServer< Is >::~ModularServer ( )
inlinevirtual

Definition at line 83 of file ModularServer.h.

Member Function Documentation

template<class... Is>
unsigned ModularServer< Is >::addConnector ( jsonrpc::AbstractServerConnector *  _connector)
inline

server takes ownership of the connector

Definition at line 110 of file ModularServer.h.

template<class... Is>
jsonrpc::AbstractServerConnector* ModularServer< Is >::connector ( unsigned  _i) const
inline

Definition at line 117 of file ModularServer.h.

template<class... Is>
virtual void ModularServer< Is >::HandleMethodCall ( jsonrpc::Procedure &  _proc,
Json::Value const &  _input,
Json::Value &  _output 
)
inlineoverridevirtual

Reimplemented in ModularServer< I, Is... >.

Definition at line 97 of file ModularServer.h.

Here is the caller graph for this function:

template<class... Is>
virtual void ModularServer< Is >::HandleNotificationCall ( jsonrpc::Procedure &  _proc,
Json::Value const &  _input 
)
inlineoverridevirtual

Reimplemented in ModularServer< I, Is... >.

Definition at line 103 of file ModularServer.h.

Here is the caller graph for this function:

template<class... Is>
virtual void ModularServer< Is >::modules ( const Json::Value &  request,
Json::Value &  response 
)
inlinevirtual

Definition at line 77 of file ModularServer.h.

template<class... Is>
virtual void ModularServer< Is >::StartListening ( )
inlinevirtual

Definition at line 85 of file ModularServer.h.

template<class... Is>
virtual void ModularServer< Is >::StopListening ( )
inlinevirtual

Definition at line 91 of file ModularServer.h.

Member Data Documentation

template<class... Is>
std::vector<std::unique_ptr<jsonrpc::AbstractServerConnector> > ModularServer< Is >::m_connectors
protected

Definition at line 123 of file ModularServer.h.

template<class... Is>
std::unique_ptr<jsonrpc::IProtocolHandler> ModularServer< Is >::m_handler
protected

Definition at line 124 of file ModularServer.h.

template<class... Is>
Json::Value ModularServer< Is >::m_implementedModules
protected

Mapping for implemented modules, to be filled by subclasses during construction.

Definition at line 126 of file ModularServer.h.


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