This commit is contained in:
nbougalis
2020-12-21 13:57:13 +00:00
parent 00ae94e785
commit c55b377da7
2394 changed files with 44923 additions and 47046 deletions

View File

@@ -491,7 +491,7 @@ $(function() {
<div class="line"><a name="l00443"></a><span class="lineno"> 443</span>&#160; <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>&#160; <span class="comment">// when redirecting.</span></div>
<div class="line"><a name="l00445"></a><span class="lineno"> 445</span>&#160; <span class="comment">//</span></div>
<div class="line"><a name="l00446"></a><span class="lineno"> 446</span>&#160; assert(ep.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#afad10bc9649cff5ad68f6a87aae15018">hops</a> &lt;= (<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>&#160; assert(ep.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#afad10bc9649cff5ad68f6a87aae15018">hops</a> &lt;= (<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>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair&lt;typename cache_type::iterator, bool&gt;</a> result(</div>
<div class="line"><a name="l00448"></a><span class="lineno"> 448</span>&#160; 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>&#160; Element&amp; e(result.<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">first</a>-&gt;second);</div>
@@ -573,7 +573,7 @@ $(function() {
<div class="line"><a name="l00525"></a><span class="lineno"> 525</span>&#160; <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>&#160; <span class="keywordflow">for</span> (<span class="keyword">typename</span> decltype(m_hist)::size_type i(0); i &lt; m_hist.size(); ++i)</div>
<div class="line"><a name="l00527"></a><span class="lineno"> 527</span>&#160; {</div>
<div class="line"><a name="l00528"></a><span class="lineno"> 528</span>&#160; ss &lt;&lt; m_hist[i] &lt;&lt; ((i &lt; <a class="code" href="namespaceripple_1_1PeerFinder_1_1Tuning.html#a64251435427f33c1f5e7e6da6d63ee30aa83d68d2b1517c949c6cda2eb597c2e6">Tuning::maxHops</a> + 1) ? <span class="stringliteral">&quot;, &quot;</span> : <span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00528"></a><span class="lineno"> 528</span>&#160; ss &lt;&lt; m_hist[i] &lt;&lt; ((i &lt; <a class="code" href="namespaceripple_1_1PeerFinder_1_1Tuning.html#af021a2643b7b5a3db6c40004942a3ba5aa83d68d2b1517c949c6cda2eb597c2e6">Tuning::maxHops</a> + 1) ? <span class="stringliteral">&quot;, &quot;</span> : <span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00529"></a><span class="lineno"> 529</span>&#160; }</div>
<div class="line"><a name="l00530"></a><span class="lineno"> 530</span>&#160; <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>&#160;}</div>
@@ -588,7 +588,7 @@ $(function() {
<div class="line"><a name="l00540"></a><span class="lineno"> 540</span>&#160;<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>&#160;<a class="code" href="classripple_1_1PeerFinder_1_1Livecache_1_1hops__t.html#ad20656647e059b3df11aef125304d970">Livecache&lt;Allocator&gt;::hops_t::insert</a>(Element&amp; e)</div>
<div class="line"><a name="l00542"></a><span class="lineno"> 542</span>&#160;{</div>
<div class="line"><a name="l00543"></a><span class="lineno"> 543</span>&#160; assert(e.endpoint.hops &gt;= 0 &amp;&amp; e.endpoint.hops &lt;= <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>&#160; assert(e.endpoint.hops &gt;= 0 &amp;&amp; e.endpoint.hops &lt;= <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>&#160; <span class="comment">// This has security implications without a shuffle</span></div>
<div class="line"><a name="l00545"></a><span class="lineno"> 545</span>&#160; m_lists[e.endpoint.hops].push_front(e);</div>
<div class="line"><a name="l00546"></a><span class="lineno"> 546</span>&#160; ++m_hist[e.endpoint.hops];</div>
@@ -598,7 +598,7 @@ $(function() {
<div class="line"><a name="l00550"></a><span class="lineno"> 550</span>&#160;<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>&#160;<a class="code" href="classripple_1_1PeerFinder_1_1Livecache_1_1hops__t.html#a52c4d7c6a3caed3e1fc828bbac52b468">Livecache&lt;Allocator&gt;::hops_t::reinsert</a>(Element&amp; e, <span class="keywordtype">int</span> numHops)</div>
<div class="line"><a name="l00552"></a><span class="lineno"> 552</span>&#160;{</div>
<div class="line"><a name="l00553"></a><span class="lineno"> 553</span>&#160; assert(numHops &gt;= 0 &amp;&amp; numHops &lt;= <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>&#160; assert(numHops &gt;= 0 &amp;&amp; numHops &lt;= <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>&#160; list_type&amp; list(m_lists[e.endpoint.hops]);</div>
<div class="line"><a name="l00555"></a><span class="lineno"> 555</span>&#160; list.erase(list.iterator_to(e));</div>
<div class="line"><a name="l00556"></a><span class="lineno"> 556</span>&#160; --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&lt; IsConst &gt; make_hop(typename beast::maybe_const&lt; IsConst, list_type &gt;::type &amp;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>