68 virtual Topics const& fullTopics(
unsigned _id)
const = 0;
69 virtual unsigned installWatch(
Topics const& _filter) = 0;
70 virtual void uninstallWatch(
unsigned _watchId) = 0;
71 virtual h256s peekWatch(
unsigned _watchId)
const = 0;
72 virtual h256s checkWatch(
unsigned _watchId) = 0;
73 virtual h256s watchMessages(
unsigned _watchId) = 0;
77 void post(
bytes const& _payload,
Topics _topics,
unsigned _ttl = 50,
unsigned _workToProve = 50) { inject(
Message(_payload).seal(_topics, _ttl, _workToProve)); }
78 void post(
Public _to,
bytes const& _payload,
Topics _topics,
unsigned _ttl = 50,
unsigned _workToProve = 50) { inject(
Message(_payload).sealTo(_to, _topics, _ttl, _workToProve)); }
79 void post(
Secret const& _from,
bytes const& _payload,
Topics _topics,
unsigned _ttl = 50,
unsigned _workToProve = 50) { inject(
Message(_payload).seal(_from, _topics, _ttl, _workToProve)); }
80 void post(
Secret const& _from,
Public _to,
bytes const& _payload,
Topics _topics,
unsigned _ttl = 50,
unsigned _workToProve = 50) { inject(
Message(_payload).sealTo(_from, _to, _topics, _ttl, _workToProve)); }
84 #define cwatshh dev::LogOutputStream<shh::WatshhChannel, true>() 96 class Watch:
public boost::noncopyable
103 ~Watch() {
if (m_c) m_c->uninstallWatch(m_id); }
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
Watch(Interface &_c, Topics const &_t)
void swap(dev::eth::Watch &_a, dev::eth::Watch &_b)
void post(Public _to, bytes const &_payload, Topics _topics, unsigned _ttl=50, unsigned _workToProve=50)
std::hash for asio::adress
void swap(dev::shh::Watch &_a, dev::shh::Watch &_b)
std::vector< byte > bytes
void post(Secret const &_from, Public _to, bytes const &_payload, Topics _topics, unsigned _ttl=50, unsigned _workToProve=50)
InstalledFilter(Topics const &_t)
An (unencrypted) message, constructed from the combination of an Envelope, and, potentially, a Secret key to decrypt the Message.
void post(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)
The default logging channels.
std::vector< h256 > h256s