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

#include <Whisper.h>

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

Public Member Functions

 Whisper (WebThreeDirect &_web3, std::vector< dev::KeyPair > const &_accounts)
 
virtual RPCModules implementedModules () const override
 
virtual void setIdentities (std::vector< dev::KeyPair > const &_ids)
 
std::map< dev::Public, dev::Secret > const & ids () const
 
virtual bool shh_post (Json::Value const &_json) override
 
virtual std::string shh_newIdentity () override
 
virtual bool shh_hasIdentity (std::string const &_identity) override
 
virtual std::string shh_newGroup (std::string const &_id, std::string const &_who) override
 
virtual std::string shh_addToGroup (std::string const &_group, std::string const &_who) override
 
virtual std::string shh_newFilter (Json::Value const &_json) override
 
virtual bool shh_uninstallFilter (std::string const &_filterId) override
 
virtual Json::Value shh_getFilterChanges (std::string const &_filterId) override
 
virtual Json::Value shh_getMessages (std::string const &_filterId) override
 
- Public Member Functions inherited from dev::rpc::WhisperFace
 WhisperFace ()
 
virtual void shh_postI (const Json::Value &request, Json::Value &response)
 
virtual void shh_newIdentityI (const Json::Value &request, Json::Value &response)
 
virtual void shh_hasIdentityI (const Json::Value &request, Json::Value &response)
 
virtual void shh_newGroupI (const Json::Value &request, Json::Value &response)
 
virtual void shh_addToGroupI (const Json::Value &request, Json::Value &response)
 
virtual void shh_newFilterI (const Json::Value &request, Json::Value &response)
 
virtual void shh_uninstallFilterI (const Json::Value &request, Json::Value &response)
 
virtual void shh_getFilterChangesI (const Json::Value &request, Json::Value &response)
 
virtual void shh_getMessagesI (const Json::Value &request, Json::Value &response)
 
- Public Member Functions inherited from ServerInterface< WhisperFace >
virtual ~ServerInterface ()
 
Methods const & methods () const
 
Notifications const & notifications () const
 

Private Member Functions

shh::Interfaceshh () const
 

Private Attributes

WebThreeDirectm_web3
 
std::map< dev::Public, dev::Secretm_ids
 
std::map< unsigned, dev::Publicm_watches
 

Additional Inherited Members

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

Detailed Description

Definition at line 41 of file Whisper.h.

Constructor & Destructor Documentation

Whisper::Whisper ( WebThreeDirect _web3,
std::vector< dev::KeyPair > const &  _accounts 
)

Definition at line 39 of file Whisper.cpp.

Here is the call graph for this function:

Member Function Documentation

std::map<dev::Public, dev::Secret> const& dev::rpc::Whisper::ids ( ) const
inline

Definition at line 52 of file Whisper.h.

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

Implements ServerInterface< WhisperFace >.

Definition at line 46 of file Whisper.h.

void Whisper::setIdentities ( std::vector< dev::KeyPair > const &  _ids)
virtual

Definition at line 44 of file Whisper.cpp.

Here is the caller graph for this function:

shh::Interface * Whisper::shh ( ) const
private

Definition at line 51 of file Whisper.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string Whisper::shh_addToGroup ( std::string const &  _group,
std::string const &  _who 
)
overridevirtual

Implements dev::rpc::WhisperFace.

Definition at line 104 of file Whisper.cpp.

Json::Value Whisper::shh_getFilterChanges ( std::string const &  _filterId)
overridevirtual

Implements dev::rpc::WhisperFace.

Definition at line 139 of file Whisper.cpp.

Here is the call graph for this function:

Json::Value Whisper::shh_getMessages ( std::string const &  _filterId)
overridevirtual

Implements dev::rpc::WhisperFace.

Definition at line 172 of file Whisper.cpp.

Here is the call graph for this function:

bool Whisper::shh_hasIdentity ( std::string const &  _identity)
overridevirtual

Implements dev::rpc::WhisperFace.

Definition at line 85 of file Whisper.cpp.

Here is the call graph for this function:

std::string Whisper::shh_newFilter ( Json::Value const &  _json)
overridevirtual

Implements dev::rpc::WhisperFace.

Definition at line 111 of file Whisper.cpp.

Here is the call graph for this function:

std::string Whisper::shh_newGroup ( std::string const &  _id,
std::string const &  _who 
)
overridevirtual

Implements dev::rpc::WhisperFace.

Definition at line 97 of file Whisper.cpp.

std::string Whisper::shh_newIdentity ( )
overridevirtual

Implements dev::rpc::WhisperFace.

Definition at line 78 of file Whisper.cpp.

Here is the call graph for this function:

bool Whisper::shh_post ( Json::Value const &  _json)
overridevirtual

Implements dev::rpc::WhisperFace.

Definition at line 56 of file Whisper.cpp.

Here is the call graph for this function:

bool Whisper::shh_uninstallFilter ( std::string const &  _filterId)
overridevirtual

Implements dev::rpc::WhisperFace.

Definition at line 126 of file Whisper.cpp.

Here is the call graph for this function:

Member Data Documentation

std::map<dev::Public, dev::Secret> dev::rpc::Whisper::m_ids
private

Definition at line 68 of file Whisper.h.

std::map<unsigned, dev::Public> dev::rpc::Whisper::m_watches
private

Definition at line 69 of file Whisper.h.

WebThreeDirect& dev::rpc::Whisper::m_web3
private

Definition at line 67 of file Whisper.h.


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