31 Capability::Capability(std::shared_ptr<SessionFace> _s,
HostCapabilityFace* _h,
unsigned _idOffset, uint16_t _protocolID):
32 c_protocolID(_protocolID), m_session(_s), m_hostCap(_h), m_idOffset(_idOffset)
59 session->addRating(_r);
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
std::weak_ptr< SessionFace > m_session
void disable(std::string const &_problem)
std::shared_ptr< SessionFace > session() const
std::hash for asio::adress
std::vector< byte > bytes
RLPStream & appendList(size_t _items)
Appends a list.
uint16_t const c_protocolID
RLPStream & prep(RLPStream &_s, unsigned _id, unsigned _args=0)
HostCapabilityFace * m_hostCap
void sealAndSend(RLPStream &_s)
virtual std::string name() const =0
Class for writing to an RLP bytestream.
RLPStream & appendRaw(bytesConstRef _rlp, size_t _itemCount=1)
Appends raw (pre-serialised) RLP data. Use with caution.