#include <WhisperHost.h>
|
| WhisperHost (bool _storeMessagesInDB=false) |
|
virtual | ~WhisperHost () |
|
unsigned | protocolVersion () const |
|
void | cleanup () |
| remove old messages More...
|
|
std::map< h256, Envelope > | all () const |
|
TopicBloomFilterHash | bloom () const |
|
virtual void | inject (Envelope const &_e, WhisperPeer *_from=nullptr) override |
|
virtual Topics const & | fullTopics (unsigned _id) const override |
|
virtual unsigned | installWatch (Topics const &_filter) override |
|
virtual void | uninstallWatch (unsigned _watchId) override |
|
virtual h256s | peekWatch (unsigned _watchId) const override |
|
virtual h256s | checkWatch (unsigned _watchId) override |
|
virtual h256s | watchMessages (unsigned _watchId) override |
| returns IDs of messages, which match specific watch criteria More...
|
|
virtual Envelope | envelope (h256 _m) const override |
|
virtual | ~Interface () |
|
void | post (bytes const &_payload, Topics _topics, unsigned _ttl=50, unsigned _workToProve=50) |
|
void | post (Public _to, bytes const &_payload, Topics _topics, unsigned _ttl=50, unsigned _workToProve=50) |
|
void | post (Secret const &_from, bytes const &_payload, Topics _topics, unsigned _ttl=50, unsigned _workToProve=50) |
|
void | post (Secret const &_from, Public _to, bytes const &_payload, Topics _topics, unsigned _ttl=50, unsigned _workToProve=50) |
|
Definition at line 46 of file WhisperHost.h.
WhisperHost::WhisperHost |
( |
bool |
_storeMessagesInDB = false | ) |
|
WhisperHost::~WhisperHost |
( |
| ) |
|
|
virtual |
std::map<h256, Envelope> dev::shh::WhisperHost::all |
( |
| ) |
const |
|
inline |
h256s WhisperHost::checkWatch |
( |
unsigned |
_watchId | ) |
|
|
overridevirtual |
void WhisperHost::cleanup |
( |
| ) |
|
void WhisperHost::doWork |
( |
| ) |
|
|
overrideprotectedvirtual |
virtual Envelope dev::shh::WhisperHost::envelope |
( |
h256 |
_m | ) |
const |
|
inlineoverridevirtual |
virtual Topics const& dev::shh::WhisperHost::fullTopics |
( |
unsigned |
_id | ) |
const |
|
inlineoverridevirtual |
unsigned WhisperHost::installWatch |
( |
shh::Topics const & |
_t | ) |
|
|
overridevirtual |
bool WhisperHost::isWatched |
( |
Envelope const & |
_e | ) |
const |
|
protected |
void WhisperHost::loadMessagesFromBD |
( |
| ) |
|
|
private |
void WhisperHost::noteAdvertiseTopicsOfInterest |
( |
| ) |
|
|
protected |
virtual void dev::shh::WhisperHost::onStarting |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
virtual void dev::shh::WhisperHost::onStopping |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
virtual h256s dev::shh::WhisperHost::peekWatch |
( |
unsigned |
_watchId | ) |
const |
|
inlineoverridevirtual |
unsigned dev::shh::WhisperHost::protocolVersion |
( |
| ) |
const |
|
inline |
void WhisperHost::saveMessagesToBD |
( |
| ) |
|
|
private |
void WhisperHost::streamMessage |
( |
h256 |
_m, |
|
|
RLPStream & |
_s |
|
) |
| const |
|
private |
void WhisperHost::uninstallWatch |
( |
unsigned |
_watchId | ) |
|
|
overridevirtual |
h256s WhisperHost::watchMessages |
( |
unsigned |
_watchId | ) |
|
|
overridevirtual |
std::multimap<unsigned, h256> dev::shh::WhisperHost::m_expiryQueue |
|
private |
bool dev::shh::WhisperHost::m_storeMessagesInDB |
|
private |
needed for tests and other special cases
Definition at line 88 of file WhisperHost.h.
std::map<unsigned, ClientWatch> dev::shh::WhisperHost::m_watches |
|
private |
The documentation for this class was generated from the following files: