30 std::vector<std::pair<std::shared_ptr<SessionFace>, std::shared_ptr<Peer>>> HostCapabilityFace::peerSessions()
const 35 std::vector<std::pair<std::shared_ptr<SessionFace>, std::shared_ptr<Peer>>> HostCapabilityFace::peerSessions(
u256 const& _version)
const 38 std::vector<std::pair<std::shared_ptr<SessionFace>, std::shared_ptr<Peer>>> ret;
39 for (
auto const& i: m_host->m_sessions)
40 if (std::shared_ptr<SessionFace> s = i.second.lock())
41 if (s->capabilities().count(std::make_pair(
name(), _version)))
42 ret.push_back(make_pair(s,s->peer()));
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
std::hash for asio::adress
boost::multiprecision::number< boost::multiprecision::cpp_int_backend< 256, 256, boost::multiprecision::unsigned_magnitude, boost::multiprecision::unchecked, void >> u256
std::lock_guard< std::recursive_mutex > RecursiveGuard