Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
dev::rpc::AdminNet Class Reference

#include <AdminNet.h>

Inheritance diagram for dev::rpc::AdminNet:
[legend]
Collaboration diagram for dev::rpc::AdminNet:
[legend]

Public Member Functions

 AdminNet (NetworkFace &_network, SessionManager &_sm)
 
virtual RPCModules implementedModules () const override
 
virtual bool admin_net_start (std::string const &_session) override
 
virtual bool admin_net_stop (std::string const &_session) override
 
virtual bool admin_net_connect (std::string const &_node, std::string const &_session) override
 
virtual Json::Value admin_net_peers (std::string const &_session) override
 
virtual Json::Value admin_net_nodeInfo (std::string const &_session) override
 
virtual Json::Value admin_nodeInfo () override
 
virtual Json::Value admin_peers () override
 
virtual bool admin_addPeer (std::string const &_node) override
 
- Public Member Functions inherited from dev::rpc::AdminNetFace
 AdminNetFace ()
 
virtual void admin_net_startI (const Json::Value &request, Json::Value &response)
 
virtual void admin_net_stopI (const Json::Value &request, Json::Value &response)
 
virtual void admin_net_connectI (const Json::Value &request, Json::Value &response)
 
virtual void admin_net_peersI (const Json::Value &request, Json::Value &response)
 
virtual void admin_net_nodeInfoI (const Json::Value &request, Json::Value &response)
 
virtual void admin_nodeInfoI (const Json::Value &request, Json::Value &response)
 
virtual void admin_peersI (const Json::Value &request, Json::Value &response)
 
virtual void admin_addPeerI (const Json::Value &request, Json::Value &response)
 
- Public Member Functions inherited from ServerInterface< AdminNetFace >
virtual ~ServerInterface ()
 
Methods const & methods () const
 
Notifications const & notifications () const
 

Private Attributes

NetworkFacem_network
 
SessionManagerm_sm
 

Additional Inherited Members

- Public Types inherited from ServerInterface< AdminNetFace >
using MethodPointer = AbstractMethodPointer< AdminNetFace >
 
using NotificationPointer = AbstractNotificationPointer< AdminNetFace >
 
using MethodBinding = std::tuple< jsonrpc::Procedure, AbstractMethodPointer< AdminNetFace >>
 
using NotificationBinding = std::tuple< jsonrpc::Procedure, AbstractNotificationPointer< AdminNetFace >>
 
using Methods = std::vector< MethodBinding >
 
using Notifications = std::vector< NotificationBinding >
 
using RPCModules = std::vector< RPCModule >
 
- Protected Member Functions inherited from ServerInterface< AdminNetFace >
void bindAndAddMethod (jsonrpc::Procedure const &_proc, MethodPointer _pointer)
 
void bindAndAddNotification (jsonrpc::Procedure const &_proc, NotificationPointer _pointer)
 

Detailed Description

Definition at line 14 of file AdminNet.h.

Constructor & Destructor Documentation

AdminNet::AdminNet ( NetworkFace _network,
SessionManager _sm 
)

Definition at line 13 of file AdminNet.cpp.

Member Function Documentation

bool AdminNet::admin_addPeer ( std::string const &  _node)
overridevirtual

Implements dev::rpc::AdminNetFace.

Definition at line 81 of file AdminNet.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool AdminNet::admin_net_connect ( std::string const &  _node,
std::string const &  _session 
)
overridevirtual

Implements dev::rpc::AdminNetFace.

Definition at line 29 of file AdminNet.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Json::Value AdminNet::admin_net_nodeInfo ( std::string const &  _session)
overridevirtual

Implements dev::rpc::AdminNetFace.

Definition at line 41 of file AdminNet.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Json::Value AdminNet::admin_net_peers ( std::string const &  _session)
overridevirtual

Implements dev::rpc::AdminNetFace.

Definition at line 35 of file AdminNet.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool AdminNet::admin_net_start ( std::string const &  _session)
overridevirtual

Implements dev::rpc::AdminNetFace.

Definition at line 15 of file AdminNet.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool AdminNet::admin_net_stop ( std::string const &  _session)
overridevirtual

Implements dev::rpc::AdminNetFace.

Definition at line 22 of file AdminNet.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Json::Value AdminNet::admin_nodeInfo ( )
overridevirtual

Implements dev::rpc::AdminNetFace.

Definition at line 55 of file AdminNet.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Json::Value AdminNet::admin_peers ( )
overridevirtual

Implements dev::rpc::AdminNetFace.

Definition at line 73 of file AdminNet.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual RPCModules dev::rpc::AdminNet::implementedModules ( ) const
inlineoverridevirtual
Returns
which interfaces (eth, admin, db, ...) this class implements in which version.

Implements ServerInterface< AdminNetFace >.

Definition at line 18 of file AdminNet.h.

Here is the call graph for this function:

Member Data Documentation

NetworkFace& dev::rpc::AdminNet::m_network
private

Definition at line 32 of file AdminNet.h.

SessionManager& dev::rpc::AdminNet::m_sm
private

Definition at line 33 of file AdminNet.h.


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