mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 19:45:53 +00:00
deploy: 54da532ace
This commit is contained in:
@@ -491,7 +491,7 @@ $(function() {
|
||||
<div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  <span class="comment">// but we will use it to make connections and hand it out</span></div>
|
||||
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  <span class="comment">// when redirecting.</span></div>
|
||||
<div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  <span class="comment">//</span></div>
|
||||
<div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  assert(ep.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#afad10bc9649cff5ad68f6a87aae15018">hops</a> <= (<a class="code" href="namespaceripple_1_1PeerFinder_1_1Tuning.html#a64251435427f33c1f5e7e6da6d63ee30aa83d68d2b1517c949c6cda2eb597c2e6">Tuning::maxHops</a> + 1));</div>
|
||||
<div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  assert(ep.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#afad10bc9649cff5ad68f6a87aae15018">hops</a> <= (<a class="code" href="namespaceripple_1_1PeerFinder_1_1Tuning.html#af021a2643b7b5a3db6c40004942a3ba5aa83d68d2b1517c949c6cda2eb597c2e6">Tuning::maxHops</a> + 1));</div>
|
||||
<div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair<typename cache_type::iterator, bool></a> result(</div>
|
||||
<div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  m_cache.<a class="code" href="classbeast_1_1detail_1_1aged__ordered__container.html#a2454cdd0fc61b959dc9a1545dd90e8bf">emplace</a>(ep.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#a5902587981565796078acf3168c19143">address</a>, ep));</div>
|
||||
<div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  Element& e(result.<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">first</a>->second);</div>
|
||||
@@ -573,7 +573,7 @@ $(function() {
|
||||
<div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a> ss;</div>
|
||||
<div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  <span class="keywordflow">for</span> (<span class="keyword">typename</span> decltype(m_hist)::size_type i(0); i < m_hist.size(); ++i)</div>
|
||||
<div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  {</div>
|
||||
<div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  ss << m_hist[i] << ((i < <a class="code" href="namespaceripple_1_1PeerFinder_1_1Tuning.html#a64251435427f33c1f5e7e6da6d63ee30aa83d68d2b1517c949c6cda2eb597c2e6">Tuning::maxHops</a> + 1) ? <span class="stringliteral">", "</span> : <span class="stringliteral">""</span>);</div>
|
||||
<div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  ss << m_hist[i] << ((i < <a class="code" href="namespaceripple_1_1PeerFinder_1_1Tuning.html#af021a2643b7b5a3db6c40004942a3ba5aa83d68d2b1517c949c6cda2eb597c2e6">Tuning::maxHops</a> + 1) ? <span class="stringliteral">", "</span> : <span class="stringliteral">""</span>);</div>
|
||||
<div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  }</div>
|
||||
<div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  <span class="keywordflow">return</span> ss.<a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream/str.html">str</a>();</div>
|
||||
<div class="line"><a name="l00531"></a><span class="lineno"> 531</span> }</div>
|
||||
@@ -588,7 +588,7 @@ $(function() {
|
||||
<div class="line"><a name="l00540"></a><span class="lineno"> 540</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00541"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1Livecache_1_1hops__t.html#ad20656647e059b3df11aef125304d970"> 541</a></span> <a class="code" href="classripple_1_1PeerFinder_1_1Livecache_1_1hops__t.html#ad20656647e059b3df11aef125304d970">Livecache<Allocator>::hops_t::insert</a>(Element& e)</div>
|
||||
<div class="line"><a name="l00542"></a><span class="lineno"> 542</span> {</div>
|
||||
<div class="line"><a name="l00543"></a><span class="lineno"> 543</span>  assert(e.endpoint.hops >= 0 && e.endpoint.hops <= <a class="code" href="namespaceripple_1_1PeerFinder_1_1Tuning.html#a64251435427f33c1f5e7e6da6d63ee30aa83d68d2b1517c949c6cda2eb597c2e6">Tuning::maxHops</a> + 1);</div>
|
||||
<div class="line"><a name="l00543"></a><span class="lineno"> 543</span>  assert(e.endpoint.hops >= 0 && e.endpoint.hops <= <a class="code" href="namespaceripple_1_1PeerFinder_1_1Tuning.html#af021a2643b7b5a3db6c40004942a3ba5aa83d68d2b1517c949c6cda2eb597c2e6">Tuning::maxHops</a> + 1);</div>
|
||||
<div class="line"><a name="l00544"></a><span class="lineno"> 544</span>  <span class="comment">// This has security implications without a shuffle</span></div>
|
||||
<div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  m_lists[e.endpoint.hops].push_front(e);</div>
|
||||
<div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  ++m_hist[e.endpoint.hops];</div>
|
||||
@@ -598,7 +598,7 @@ $(function() {
|
||||
<div class="line"><a name="l00550"></a><span class="lineno"> 550</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00551"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1Livecache_1_1hops__t.html#a52c4d7c6a3caed3e1fc828bbac52b468"> 551</a></span> <a class="code" href="classripple_1_1PeerFinder_1_1Livecache_1_1hops__t.html#a52c4d7c6a3caed3e1fc828bbac52b468">Livecache<Allocator>::hops_t::reinsert</a>(Element& e, <span class="keywordtype">int</span> numHops)</div>
|
||||
<div class="line"><a name="l00552"></a><span class="lineno"> 552</span> {</div>
|
||||
<div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  assert(numHops >= 0 && numHops <= <a class="code" href="namespaceripple_1_1PeerFinder_1_1Tuning.html#a64251435427f33c1f5e7e6da6d63ee30aa83d68d2b1517c949c6cda2eb597c2e6">Tuning::maxHops</a> + 1);</div>
|
||||
<div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  assert(numHops >= 0 && numHops <= <a class="code" href="namespaceripple_1_1PeerFinder_1_1Tuning.html#af021a2643b7b5a3db6c40004942a3ba5aa83d68d2b1517c949c6cda2eb597c2e6">Tuning::maxHops</a> + 1);</div>
|
||||
<div class="line"><a name="l00554"></a><span class="lineno"> 554</span>  list_type& list(m_lists[e.endpoint.hops]);</div>
|
||||
<div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  list.erase(list.iterator_to(e));</div>
|
||||
<div class="line"><a name="l00556"></a><span class="lineno"> 556</span>  --m_hist[e.endpoint.hops];</div>
|
||||
@@ -737,8 +737,8 @@ $(function() {
|
||||
<div class="ttc" id="astructripple_1_1PeerFinder_1_1Endpoint_html"><div class="ttname"><a href="structripple_1_1PeerFinder_1_1Endpoint.html">ripple::PeerFinder::Endpoint</a></div><div class="ttdoc">Describes a connectible peer address along with some metadata.</div><div class="ttdef"><b>Definition:</b> <a href="PeerfinderManager_8h_source.html#l00114">PeerfinderManager.h:114</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1detail_1_1LivecacheBase_1_1Hop_html_ab190dcfb8e4acb0ed7f7ecd36f8780b0"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1detail_1_1LivecacheBase_1_1Hop.html#ab190dcfb8e4acb0ed7f7ecd36f8780b0">ripple::PeerFinder::detail::LivecacheBase::Hop::const_reverse_iterator</a></div><div class="ttdeci">reverse_iterator const_reverse_iterator</div><div class="ttdef"><b>Definition:</b> <a href="Livecache_8h_source.html#l00100">Livecache.h:100</a></div></div>
|
||||
<div class="ttc" id="arandom_shuffle_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/random_shuffle.html">std::shuffle</a></div><div class="ttdeci">T shuffle(T... args)</div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1PeerFinder_1_1Tuning_html_af021a2643b7b5a3db6c40004942a3ba5aa83d68d2b1517c949c6cda2eb597c2e6"><div class="ttname"><a href="namespaceripple_1_1PeerFinder_1_1Tuning.html#af021a2643b7b5a3db6c40004942a3ba5aa83d68d2b1517c949c6cda2eb597c2e6">ripple::PeerFinder::Tuning::maxHops</a></div><div class="ttdeci">@ maxHops</div><div class="ttdef"><b>Definition:</b> <a href="peerfinder_2impl_2Tuning_8h_source.html#l00111">peerfinder/impl/Tuning.h:111</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache_1_1hops__t_html_a88dee750f0bfc40ed4dcf2df3f91a7b5"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache_1_1hops__t.html#a88dee750f0bfc40ed4dcf2df3f91a7b5">ripple::PeerFinder::Livecache::hops_t::rend</a></div><div class="ttdeci">reverse_iterator rend()</div><div class="ttdef"><b>Definition:</b> <a href="Livecache_8h_source.html#l00334">Livecache.h:334</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1PeerFinder_1_1Tuning_html_a64251435427f33c1f5e7e6da6d63ee30aa83d68d2b1517c949c6cda2eb597c2e6"><div class="ttname"><a href="namespaceripple_1_1PeerFinder_1_1Tuning.html#a64251435427f33c1f5e7e6da6d63ee30aa83d68d2b1517c949c6cda2eb597c2e6">ripple::PeerFinder::Tuning::maxHops</a></div><div class="ttdeci">@ maxHops</div><div class="ttdef"><b>Definition:</b> <a href="peerfinder_2impl_2Tuning_8h_source.html#l00111">peerfinder/impl/Tuning.h:111</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1PeerFinder_1_1Endpoint_html_a5902587981565796078acf3168c19143"><div class="ttname"><a href="structripple_1_1PeerFinder_1_1Endpoint.html#a5902587981565796078acf3168c19143">ripple::PeerFinder::Endpoint::address</a></div><div class="ttdeci">beast::IP::Endpoint address</div><div class="ttdef"><b>Definition:</b> <a href="PeerfinderManager_8h_source.html#l00121">PeerfinderManager.h:121</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1detail_1_1LivecacheBase_html_ae0f7121e3ee61ad03bd40ee2e0eeed1e"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1detail_1_1LivecacheBase.html#ae0f7121e3ee61ad03bd40ee2e0eeed1e">ripple::PeerFinder::detail::LivecacheBase::make_hop</a></div><div class="ttdeci">static Hop< IsConst > make_hop(typename beast::maybe_const< IsConst, list_type >::type &list)</div><div class="ttdef"><b>Definition:</b> <a href="Livecache_8h_source.html#l00177">Livecache.h:177</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1detail_1_1LivecacheBase_1_1Hop_html_a3428d82e98f7ee15afc160012bc775a3"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1detail_1_1LivecacheBase_1_1Hop.html#a3428d82e98f7ee15afc160012bc775a3">ripple::PeerFinder::detail::LivecacheBase::Hop::crbegin</a></div><div class="ttdeci">reverse_iterator crbegin() const</div><div class="ttdef"><b>Definition:</b> <a href="Livecache_8h_source.html#l00133">Livecache.h:133</a></div></div>
|
||||
|
||||
Reference in New Issue
Block a user