Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <WhisperPeer.h>
Public Member Functions | |
WhisperPeer (std::shared_ptr< SessionFace > _s, HostCapabilityFace *_h, unsigned _i, CapDesc const &_cap, uint16_t _capID) | |
virtual | ~WhisperPeer () |
WhisperHost * | host () const |
TopicBloomFilterHash | bloom () const |
void | sendTopicsOfInterest (TopicBloomFilterHash const &_bloom) |
sends our bloom filter to remote peer More... | |
void | noteAdvertiseTopicsOfInterest () |
Static Public Member Functions | |
static std::string | name () |
static u256 | version () |
static unsigned | messageCount () |
Private Member Functions | |
virtual bool | interpret (unsigned _id, RLP const &) override |
void | sendMessages () |
unsigned | ratingForPeer (Envelope const &e) const |
void | noteNewMessage (h256 _h, Envelope const &_m) |
void | setBloom (TopicBloomFilterHash const &_b) |
Private Attributes | |
dev::Mutex | x_unseen |
std::multimap< unsigned, h256 > | m_unseen |
Rated according to what they want. More... | |
std::chrono::system_clock::time_point | m_timer = std::chrono::system_clock::now() |
dev::Mutex | x_bloom |
TopicBloomFilterHash | m_bloom |
Peer's topics of interest. More... | |
dev::Mutex | x_advertiseTopicsOfInterest |
bool | m_advertiseTopicsOfInterest |
Friends | |
class | WhisperHost |
Definition at line 47 of file WhisperPeer.h.
WhisperPeer::WhisperPeer | ( | std::shared_ptr< SessionFace > | _s, |
HostCapabilityFace * | _h, | ||
unsigned | _i, | ||
CapDesc const & | _cap, | ||
uint16_t | _capID | ||
) |
|
virtual |
Definition at line 39 of file WhisperPeer.cpp.
|
inline |
Definition at line 58 of file WhisperPeer.h.
WhisperHost * WhisperPeer::host | ( | ) | const |
|
overrideprivatevirtual |
Definition at line 48 of file WhisperPeer.cpp.
|
inlinestatic |
Definition at line 57 of file WhisperPeer.h.
|
inlinestatic |
Definition at line 55 of file WhisperPeer.h.
|
inline |
Definition at line 60 of file WhisperPeer.h.
Definition at line 114 of file WhisperPeer.cpp.
|
private |
Definition at line 121 of file WhisperPeer.cpp.
|
private |
Definition at line 90 of file WhisperPeer.cpp.
void WhisperPeer::sendTopicsOfInterest | ( | TopicBloomFilterHash const & | _bloom | ) |
sends our bloom filter to remote peer
Definition at line 143 of file WhisperPeer.cpp.
|
inlineprivate |
|
inlinestatic |
|
friend |
Definition at line 49 of file WhisperPeer.h.
|
private |
Definition at line 77 of file WhisperPeer.h.
|
private |
Peer's topics of interest.
Definition at line 74 of file WhisperPeer.h.
|
private |
Definition at line 71 of file WhisperPeer.h.
|
private |
Rated according to what they want.
Definition at line 70 of file WhisperPeer.h.
|
mutableprivate |
Definition at line 76 of file WhisperPeer.h.
|
mutableprivate |
Definition at line 73 of file WhisperPeer.h.
|
mutableprivate |
Definition at line 69 of file WhisperPeer.h.