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

#include <Message.h>

Public Member Functions

 Envelope ()
 
 Envelope (RLP const &_m)
 
void streamRLP (RLPStream &_s, IncludeNonce _withNonce=WithNonce) const
 
h256 sha3 (IncludeNonce _withNonce=WithNonce) const
 
Message open (Topics const &_t, Secret const &_s=Secret()) const
 
unsigned workProved () const
 
void proveWork (unsigned _ms)
 
unsigned sent () const
 
unsigned expiry () const
 
unsigned ttl () const
 
AbridgedTopics const & topic () const
 
bytes const & data () const
 
bool matchesBloomFilter (TopicBloomFilterHash const &f) const
 
bool isExpired () const
 

Private Member Functions

 Envelope (unsigned _exp, unsigned _ttl, AbridgedTopics const &_topic)
 

Private Attributes

unsigned m_expiry = 0
 
unsigned m_ttl = 0
 
u256 m_nonce
 
AbridgedTopics m_topic
 
bytes m_data
 

Friends

class Message
 

Detailed Description

Definition at line 59 of file Message.h.

Constructor & Destructor Documentation

dev::shh::Envelope::Envelope ( )
inline

Definition at line 64 of file Message.h.

Envelope::Envelope ( RLP const &  _m)

Definition at line 141 of file Message.cpp.

Here is the call graph for this function:

dev::shh::Envelope::Envelope ( unsigned  _exp,
unsigned  _ttl,
AbridgedTopics const &  _topic 
)
inlineprivate

Definition at line 83 of file Message.h.

Member Function Documentation

bytes const& dev::shh::Envelope::data ( ) const
inline

Definition at line 77 of file Message.h.

Here is the caller graph for this function:

unsigned dev::shh::Envelope::expiry ( ) const
inline

Definition at line 74 of file Message.h.

Here is the caller graph for this function:

bool dev::shh::Envelope::isExpired ( ) const
inline

Definition at line 80 of file Message.h.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Envelope::matchesBloomFilter ( TopicBloomFilterHash const &  f) const

Definition at line 184 of file Message.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Message Envelope::open ( Topics const &  _t,
Secret const &  _s = Secret() 
) const

Definition at line 150 of file Message.cpp.

void Envelope::proveWork ( unsigned  _ms)

Definition at line 163 of file Message.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned dev::shh::Envelope::sent ( ) const
inline

Definition at line 73 of file Message.h.

Here is the caller graph for this function:

h256 dev::shh::Envelope::sha3 ( IncludeNonce  _withNonce = WithNonce) const
inline

Definition at line 68 of file Message.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void dev::shh::Envelope::streamRLP ( RLPStream _s,
IncludeNonce  _withNonce = WithNonce 
) const
inline

Definition at line 67 of file Message.h.

Here is the call graph for this function:

Here is the caller graph for this function:

AbridgedTopics const& dev::shh::Envelope::topic ( ) const
inline

Definition at line 76 of file Message.h.

Here is the caller graph for this function:

unsigned dev::shh::Envelope::ttl ( ) const
inline

Definition at line 75 of file Message.h.

Here is the caller graph for this function:

unsigned Envelope::workProved ( ) const

Definition at line 155 of file Message.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class Message
friend

Definition at line 61 of file Message.h.

Member Data Documentation

bytes dev::shh::Envelope::m_data
private

Definition at line 90 of file Message.h.

unsigned dev::shh::Envelope::m_expiry = 0
private

Definition at line 85 of file Message.h.

u256 dev::shh::Envelope::m_nonce
private

Definition at line 87 of file Message.h.

AbridgedTopics dev::shh::Envelope::m_topic
private

Definition at line 89 of file Message.h.

unsigned dev::shh::Envelope::m_ttl = 0
private

Definition at line 86 of file Message.h.


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