mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 19:45:53 +00:00
deploy: 72377e7bf2
This commit is contained in:
@@ -103,7 +103,7 @@ $(function() {
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="namespaceripple_1_1PeerFinder.html#a22c88667b16496babeb8c9726e6d1eec"> 33</a></span> <a class="code" href="namespaceripple_1_1PeerFinder.html#a22c88667b16496babeb8c9726e6d1eec">operator==</a>(<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html">Endpoint</a> <span class="keyword">const</span>& a, <a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html">Endpoint</a> <span class="keyword">const</span>& b)</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> {</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordflow">return</span> (a.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#afad10bc9649cff5ad68f6a87aae15018">hops</a> == b.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#afad10bc9649cff5ad68f6a87aae15018">hops</a> && a.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#a5902587981565796078acf3168c19143">address</a> == b.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#a5902587981565796078acf3168c19143">address</a>);</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordflow">return</span> (a.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#a816bff7055d181e63590a3e6d862b869">hops</a> == b.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#a816bff7055d181e63590a3e6d862b869">hops</a> && a.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#a5902587981565796078acf3168c19143">address</a> == b.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#a5902587981565796078acf3168c19143">address</a>);</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> }</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  </div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1Livecache__test.html"> 38</a></span> <span class="keyword">class </span><a class="code" href="classripple_1_1PeerFinder_1_1Livecache__test.html">Livecache_test</a> : <span class="keyword">public</span> beast::unit_test::suite</div>
|
||||
@@ -119,7 +119,7 @@ $(function() {
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="comment">// Add the address as an endpoint</span></div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keyword">template</span> <<span class="keyword">class</span> C></div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1Livecache__test.html#ad69e58eaf0380314546d75aa37f53b84"> 51</a></span>  <a class="code" href="classripple_1_1PeerFinder_1_1Livecache__test.html#ad69e58eaf0380314546d75aa37f53b84">add</a>(<a class="code" href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a> ep, C& c, <span class="keywordtype">int</span> hops = 0)</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1Livecache__test.html#a3659ef2ed70f07f63dca85b0d5135b24"> 51</a></span>  <a class="code" href="classripple_1_1PeerFinder_1_1Livecache__test.html#a3659ef2ed70f07f63dca85b0d5135b24">add</a>(<a class="code" href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a> ep, C& c, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> hops = 0)</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  {</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html">Endpoint</a> cep{ep, hops};</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  c.insert(cep);</div>
|
||||
@@ -133,13 +133,13 @@ $(function() {
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  BEAST_EXPECT(c.<a class="code" href="classripple_1_1PeerFinder_1_1Livecache.html#ae7ec1f8853bc9500064dda7c8b66bdd9">empty</a>());</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  </div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> i = 0; i < 10; ++i)</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="classripple_1_1PeerFinder_1_1Livecache__test.html#ad69e58eaf0380314546d75aa37f53b84">add</a>(<a class="code" href="namespacebeast_1_1IP.html#a928be2090ada42907cc2417afa30337d">beast::IP::randomEP</a>(<span class="keyword">true</span>), c);</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="classripple_1_1PeerFinder_1_1Livecache__test.html#a3659ef2ed70f07f63dca85b0d5135b24">add</a>(<a class="code" href="namespacebeast_1_1IP.html#a928be2090ada42907cc2417afa30337d">beast::IP::randomEP</a>(<span class="keyword">true</span>), c);</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  </div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  BEAST_EXPECT(!c.<a class="code" href="classripple_1_1PeerFinder_1_1Livecache.html#ae7ec1f8853bc9500064dda7c8b66bdd9">empty</a>());</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  BEAST_EXPECT(c.<a class="code" href="classripple_1_1PeerFinder_1_1Livecache.html#a07ee4dd2012653fe30803a148d6801f1">size</a>() == 10);</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  </div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> i = 0; i < 10; ++i)</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="classripple_1_1PeerFinder_1_1Livecache__test.html#ad69e58eaf0380314546d75aa37f53b84">add</a>(<a class="code" href="namespacebeast_1_1IP.html#a928be2090ada42907cc2417afa30337d">beast::IP::randomEP</a>(<span class="keyword">false</span>), c);</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="classripple_1_1PeerFinder_1_1Livecache__test.html#a3659ef2ed70f07f63dca85b0d5135b24">add</a>(<a class="code" href="namespacebeast_1_1IP.html#a928be2090ada42907cc2417afa30337d">beast::IP::randomEP</a>(<span class="keyword">false</span>), c);</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  BEAST_EXPECT(!c.<a class="code" href="classripple_1_1PeerFinder_1_1Livecache.html#ae7ec1f8853bc9500064dda7c8b66bdd9">empty</a>());</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  BEAST_EXPECT(c.<a class="code" href="classripple_1_1PeerFinder_1_1Livecache.html#a07ee4dd2012653fe30803a148d6801f1">size</a>() == 20);</div>
|
||||
@@ -192,7 +192,7 @@ $(function() {
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  BEAST_EXPECT(c.<a class="code" href="classripple_1_1PeerFinder_1_1Livecache.html#a07ee4dd2012653fe30803a148d6801f1">size</a>() == 1);</div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="comment">// verify that advancing to 1 sec before expiration</span></div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="comment">// leaves our entry intact</span></div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="classripple_1_1PeerFinder_1_1Livecache__test.html#a56e97d923c40dbed6b92297f93250a7e">clock_</a>.<a class="code" href="classbeast_1_1manual__clock.html#a411c0c02d6680afd003aba5a876d610a">advance</a>(<a class="code" href="namespaceripple_1_1PeerFinder_1_1Tuning.html#a4a670e377309e85e6651f688f6971bd3">Tuning::liveCacheSecondsToLive</a> - 1s);</div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="classripple_1_1PeerFinder_1_1Livecache__test.html#a56e97d923c40dbed6b92297f93250a7e">clock_</a>.<a class="code" href="classbeast_1_1manual__clock.html#a411c0c02d6680afd003aba5a876d610a">advance</a>(<a class="code" href="namespaceripple_1_1PeerFinder_1_1Tuning.html#a4505f8120be51df363c12837213f2a36">Tuning::liveCacheSecondsToLive</a> - 1s);</div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  c.<a class="code" href="classripple_1_1PeerFinder_1_1Livecache.html#a29aef983f39d1a4c8de8ca9a99fb92db">expire</a>();</div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  BEAST_EXPECT(c.<a class="code" href="classripple_1_1PeerFinder_1_1Livecache.html#a07ee4dd2012653fe30803a148d6801f1">size</a>() == 1);</div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="comment">// now advance to the point of expiration</span></div>
|
||||
@@ -208,9 +208,9 @@ $(function() {
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  constexpr <span class="keyword">auto</span> num_eps = 40;</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <a class="code" href="classripple_1_1PeerFinder_1_1Livecache.html">Livecache<></a> c(<a class="code" href="classripple_1_1PeerFinder_1_1Livecache__test.html#a56e97d923c40dbed6b92297f93250a7e">clock_</a>, <a class="code" href="classripple_1_1PeerFinder_1_1Livecache__test.html#a25316abe9eb56d4b7adbb16830b4a701">journal_</a>);</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> i = 0; i < num_eps; ++i)</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <a class="code" href="classripple_1_1PeerFinder_1_1Livecache__test.html#ad69e58eaf0380314546d75aa37f53b84">add</a>(<a class="code" href="namespacebeast_1_1IP.html#a928be2090ada42907cc2417afa30337d">beast::IP::randomEP</a>(<span class="keyword">true</span>),</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <a class="code" href="classripple_1_1PeerFinder_1_1Livecache__test.html#a3659ef2ed70f07f63dca85b0d5135b24">add</a>(<a class="code" href="namespacebeast_1_1IP.html#a928be2090ada42907cc2417afa30337d">beast::IP::randomEP</a>(<span class="keyword">true</span>),</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  c,</div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <a class="code" href="namespaceripple.html#a71a6227fec78db0b06595d62c06b25dc">ripple::rand_int</a>(0, safe_cast<int>(<a class="code" href="namespaceripple_1_1PeerFinder_1_1Tuning.html#af021a2643b7b5a3db6c40004942a3ba5aa83d68d2b1517c949c6cda2eb597c2e6">Tuning::maxHops</a> + 1)));</div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  ripple::rand_int<std::uint32_t>());</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keyword">auto</span> h = c.<a class="code" href="classripple_1_1PeerFinder_1_1Livecache.html#ae238ba5851c3827c92b4f632f976278f">hops</a>.<a class="code" href="classripple_1_1PeerFinder_1_1Livecache_1_1hops__t.html#a2703f2ed71fa5df9ad11879546fedf6c">histogram</a>();</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordflow">if</span> (!BEAST_EXPECT(!h.empty()))</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">return</span>;</div>
|
||||
@@ -232,16 +232,16 @@ $(function() {
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  testcase(<span class="stringliteral">"Shuffle"</span>);</div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="classripple_1_1PeerFinder_1_1Livecache.html">Livecache<></a> c(<a class="code" href="classripple_1_1PeerFinder_1_1Livecache__test.html#a56e97d923c40dbed6b92297f93250a7e">clock_</a>, <a class="code" href="classripple_1_1PeerFinder_1_1Livecache__test.html#a25316abe9eb56d4b7adbb16830b4a701">journal_</a>);</div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> i = 0; i < 100; ++i)</div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <a class="code" href="classripple_1_1PeerFinder_1_1Livecache__test.html#ad69e58eaf0380314546d75aa37f53b84">add</a>(<a class="code" href="namespacebeast_1_1IP.html#a928be2090ada42907cc2417afa30337d">beast::IP::randomEP</a>(<span class="keyword">true</span>),</div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <a class="code" href="classripple_1_1PeerFinder_1_1Livecache__test.html#a3659ef2ed70f07f63dca85b0d5135b24">add</a>(<a class="code" href="namespacebeast_1_1IP.html#a928be2090ada42907cc2417afa30337d">beast::IP::randomEP</a>(<span class="keyword">true</span>),</div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  c,</div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <a class="code" href="namespaceripple.html#a71a6227fec78db0b06595d62c06b25dc">ripple::rand_int</a>(0, safe_cast<int>(<a class="code" href="namespaceripple_1_1PeerFinder_1_1Tuning.html#af021a2643b7b5a3db6c40004942a3ba5aa83d68d2b1517c949c6cda2eb597c2e6">Tuning::maxHops</a> + 1)));</div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <a class="code" href="namespaceripple.html#a71a6227fec78db0b06595d62c06b25dc">ripple::rand_int</a>(<a class="code" href="namespaceripple_1_1PeerFinder_1_1Tuning.html#a29079dc81726f6923bc08a141607737c">Tuning::maxHops</a> + 1));</div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  </div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keyword">using</span> at_hop = <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<ripple::PeerFinder::Endpoint></a>;</div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keyword">using</span> all_hops = <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/array.html">std::array<at_hop, 1 + Tuning::maxHops + 1></a>;</div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  </div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keyword">auto</span> cmp_EP = [](<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html">Endpoint</a> <span class="keyword">const</span>& a, <a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html">Endpoint</a> <span class="keyword">const</span>& b) {</div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keywordflow">return</span> (</div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  b.hops < a.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#afad10bc9649cff5ad68f6a87aae15018">hops</a> || (b.hops == a.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#afad10bc9649cff5ad68f6a87aae15018">hops</a> && b.address < a.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#a5902587981565796078acf3168c19143">address</a>));</div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  b.hops < a.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#a816bff7055d181e63590a3e6d862b869">hops</a> || (b.hops == a.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#a816bff7055d181e63590a3e6d862b869">hops</a> && b.address < a.<a class="code" href="structripple_1_1PeerFinder_1_1Endpoint.html#a5902587981565796078acf3168c19143">address</a>));</div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  };</div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  all_hops before;</div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  all_hops before_sorted;</div>
|
||||
@@ -313,32 +313,34 @@ $(function() {
|
||||
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> } <span class="comment">// namespace PeerFinder</span></div>
|
||||
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> } <span class="comment">// namespace ripple</span></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache_1_1hops__t_html_a2703f2ed71fa5df9ad11879546fedf6c"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache_1_1hops__t.html#a2703f2ed71fa5df9ad11879546fedf6c">ripple::PeerFinder::Livecache::hops_t::histogram</a></div><div class="ttdeci">std::string histogram() const</div><div class="ttdef"><b>Definition:</b> <a href="Livecache_8h_source.html#l00523">Livecache.h:523</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache_1_1hops__t_html_a2703f2ed71fa5df9ad11879546fedf6c"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache_1_1hops__t.html#a2703f2ed71fa5df9ad11879546fedf6c">ripple::PeerFinder::Livecache::hops_t::histogram</a></div><div class="ttdeci">std::string histogram() const</div><div class="ttdef"><b>Definition:</b> <a href="Livecache_8h_source.html#l00522">Livecache.h:522</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache__test_html_ac964dc1c412eea6e15a125c6a4208c86"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache__test.html#ac964dc1c412eea6e15a125c6a4208c86">ripple::PeerFinder::Livecache_test::testHistogram</a></div><div class="ttdeci">void testHistogram()</div><div class="ttdef"><b>Definition:</b> <a href="Livecache__test_8cpp_source.html#l00134">Livecache_test.cpp:134</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1PeerFinder_1_1Tuning_html_a4a670e377309e85e6651f688f6971bd3"><div class="ttname"><a href="namespaceripple_1_1PeerFinder_1_1Tuning.html#a4a670e377309e85e6651f688f6971bd3">ripple::PeerFinder::Tuning::liveCacheSecondsToLive</a></div><div class="ttdeci">static const std::chrono::seconds liveCacheSecondsToLive(30)</div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1manual__clock_html_a411c0c02d6680afd003aba5a876d610a"><div class="ttname"><a href="classbeast_1_1manual__clock.html#a411c0c02d6680afd003aba5a876d610a">beast::manual_clock::advance</a></div><div class="ttdeci">void advance(std::chrono::duration< Rep, Period > const &elapsed)</div><div class="ttdoc">Advance the clock by a duration.</div><div class="ttdef"><b>Definition:</b> <a href="manual__clock_8h_source.html#l00079">manual_clock.h:79</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache__test_html"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache__test.html">ripple::PeerFinder::Livecache_test</a></div><div class="ttdef"><b>Definition:</b> <a href="Livecache__test_8cpp_source.html#l00038">Livecache_test.cpp:38</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache__test_html_a7219a9329585ca24aa1b3286715e7b65"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache__test.html#a7219a9329585ca24aa1b3286715e7b65">ripple::PeerFinder::Livecache_test::testBasicInsert</a></div><div class="ttdeci">void testBasicInsert()</div><div class="ttdef"><b>Definition:</b> <a href="Livecache__test_8cpp_source.html#l00058">Livecache_test.cpp:58</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache__test_html_a3659ef2ed70f07f63dca85b0d5135b24"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache__test.html#a3659ef2ed70f07f63dca85b0d5135b24">ripple::PeerFinder::Livecache_test::add</a></div><div class="ttdeci">void add(beast::IP::Endpoint ep, C &c, std::uint32_t hops=0)</div><div class="ttdef"><b>Definition:</b> <a href="Livecache__test_8cpp_source.html#l00051">Livecache_test.cpp:51</a></div></div>
|
||||
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector< std::string ></a></div></div>
|
||||
<div class="ttc" id="aback_inserter_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/iterator/back_inserter.html">std::back_inserter</a></div><div class="ttdeci">T back_inserter(T... args)</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache__test_html_a56e97d923c40dbed6b92297f93250a7e"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache__test.html#a56e97d923c40dbed6b92297f93250a7e">ripple::PeerFinder::Livecache_test::clock_</a></div><div class="ttdeci">TestStopwatch clock_</div><div class="ttdef"><b>Definition:</b> <a href="Livecache__test_8cpp_source.html#l00040">Livecache_test.cpp:40</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache__test_html_a87e1a715fc7bf15e2cc26dceb8906c32"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache__test.html#a87e1a715fc7bf15e2cc26dceb8906c32">ripple::PeerFinder::Livecache_test::Livecache_test</a></div><div class="ttdeci">Livecache_test()</div><div class="ttdef"><b>Definition:</b> <a href="Livecache__test_8cpp_source.html#l00044">Livecache_test.cpp:44</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1PeerFinder_1_1Tuning_html_a4505f8120be51df363c12837213f2a36"><div class="ttname"><a href="namespaceripple_1_1PeerFinder_1_1Tuning.html#a4505f8120be51df363c12837213f2a36">ripple::PeerFinder::Tuning::liveCacheSecondsToLive</a></div><div class="ttdeci">constexpr std::chrono::seconds liveCacheSecondsToLive(30)</div></div>
|
||||
<div class="ttc" id="asort_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/sort.html">std::sort</a></div><div class="ttdeci">T sort(T... args)</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache_html_a07ee4dd2012653fe30803a148d6801f1"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache.html#a07ee4dd2012653fe30803a148d6801f1">ripple::PeerFinder::Livecache::size</a></div><div class="ttdeci">cache_type::size_type size() const</div><div class="ttdoc">Returns the number of entries in the cache.</div><div class="ttdef"><b>Definition:</b> <a href="Livecache_8h_source.html#l00385">Livecache.h:385</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache__test_html_a35426a28bed2b04fb6ae5b0e999ffc7b"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache__test.html#a35426a28bed2b04fb6ae5b0e999ffc7b">ripple::PeerFinder::Livecache_test::testInsertUpdate</a></div><div class="ttdeci">void testInsertUpdate()</div><div class="ttdef"><b>Definition:</b> <a href="Livecache__test_8cpp_source.html#l00078">Livecache_test.cpp:78</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache_html_a648ba7ba650efda15e8726dce186da6b"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache.html#a648ba7ba650efda15e8726dce186da6b">ripple::PeerFinder::Livecache::insert</a></div><div class="ttdeci">void insert(Endpoint const &ep)</div><div class="ttdoc">Creates or updates an existing Element based on a new message.</div><div class="ttdef"><b>Definition:</b> <a href="Livecache_8h_source.html#l00438">Livecache.h:438</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a71a6227fec78db0b06595d62c06b25dc"><div class="ttname"><a href="namespaceripple.html#a71a6227fec78db0b06595d62c06b25dc">ripple::rand_int</a></div><div class="ttdeci">std::enable_if_t< std::is_integral< Integral >::value &&detail::is_engine< Engine >::value, Integral > rand_int(Engine &engine, Integral min, Integral max)</div><div class="ttdoc">Return a uniformly distributed random integer.</div><div class="ttdef"><b>Definition:</b> <a href="ripple_2basics_2random_8h_source.html#l00115">ripple/basics/random.h:115</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache_1_1hops__t_html_a0f54784b55bab2d0a5de473229997f78"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache_1_1hops__t.html#a0f54784b55bab2d0a5de473229997f78">ripple::PeerFinder::Livecache::hops_t::shuffle</a></div><div class="ttdeci">void shuffle()</div><div class="ttdoc">Shuffle each hop list.</div><div class="ttdef"><b>Definition:</b> <a href="Livecache_8h_source.html#l00507">Livecache.h:507</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache_1_1hops__t_html_a0f54784b55bab2d0a5de473229997f78"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache_1_1hops__t.html#a0f54784b55bab2d0a5de473229997f78">ripple::PeerFinder::Livecache::hops_t::shuffle</a></div><div class="ttdeci">void shuffle()</div><div class="ttdoc">Shuffle each hop list.</div><div class="ttdef"><b>Definition:</b> <a href="Livecache_8h_source.html#l00506">Livecache.h:506</a></div></div>
|
||||
<div class="ttc" id="aarray_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="astructripple_1_1PeerFinder_1_1Endpoint_html_a816bff7055d181e63590a3e6d862b869"><div class="ttname"><a href="structripple_1_1PeerFinder_1_1Endpoint.html#a816bff7055d181e63590a3e6d862b869">ripple::PeerFinder::Endpoint::hops</a></div><div class="ttdeci">std::uint32_t hops</div><div class="ttdef"><b>Definition:</b> <a href="PeerfinderManager_8h_source.html#l00119">PeerfinderManager.h:119</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache__test_html_a070fd08690dfcd6bca5fc359d7703c20"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache__test.html#a070fd08690dfcd6bca5fc359d7703c20">ripple::PeerFinder::Livecache_test::run</a></div><div class="ttdeci">void run() override</div><div class="ttdef"><b>Definition:</b> <a href="Livecache__test_8cpp_source.html#l00230">Livecache_test.cpp:230</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache_html"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache.html">ripple::PeerFinder::Livecache</a></div><div class="ttdoc">The Livecache holds the short-lived relayed Endpoint messages.</div><div class="ttdef"><b>Definition:</b> <a href="Livecache_8h_source.html#l00039">Livecache.h:39</a></div></div>
|
||||
<div class="ttc" id="acopy_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/copy.html">std::copy</a></div><div class="ttdeci">T copy(T... args)</div></div>
|
||||
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache__test_html_a2e4631b68ff1f452120744562e4109cb"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache__test.html#a2e4631b68ff1f452120744562e4109cb">ripple::PeerFinder::Livecache_test::testShuffle</a></div><div class="ttdeci">void testShuffle()</div><div class="ttdef"><b>Definition:</b> <a href="Livecache__test_8cpp_source.html#l00159">Livecache_test.cpp:159</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1SuiteJournal_html"><div class="ttname"><a href="classripple_1_1test_1_1SuiteJournal.html">ripple::test::SuiteJournal</a></div><div class="ttdef"><b>Definition:</b> <a href="SuiteJournal_8h_source.html#l00088">SuiteJournal.h:88</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache_html_ae238ba5851c3827c92b4f632f976278f"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache.html#ae238ba5851c3827c92b4f632f976278f">ripple::PeerFinder::Livecache::hops</a></div><div class="ttdeci">class ripple::PeerFinder::Livecache::hops_t hops</div></div>
|
||||
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache_1_1hops__t_html_aae4fb484834a853bda4162d6c498b52c"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache_1_1hops__t.html#aae4fb484834a853bda4162d6c498b52c">ripple::PeerFinder::Livecache::hops_t::end</a></div><div class="ttdeci">iterator end()</div><div class="ttdef"><b>Definition:</b> <a href="Livecache_8h_source.html#l00298">Livecache.h:298</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache__test_html_ad69e58eaf0380314546d75aa37f53b84"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache__test.html#ad69e58eaf0380314546d75aa37f53b84">ripple::PeerFinder::Livecache_test::add</a></div><div class="ttdeci">void add(beast::IP::Endpoint ep, C &c, int hops=0)</div><div class="ttdef"><b>Definition:</b> <a href="Livecache__test_8cpp_source.html#l00051">Livecache_test.cpp:51</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1PeerFinder_html_a22c88667b16496babeb8c9726e6d1eec"><div class="ttname"><a href="namespaceripple_1_1PeerFinder.html#a22c88667b16496babeb8c9726e6d1eec">ripple::PeerFinder::operator==</a></div><div class="ttdeci">bool operator==(Endpoint const &a, Endpoint const &b)</div><div class="ttdef"><b>Definition:</b> <a href="Livecache__test_8cpp_source.html#l00033">Livecache_test.cpp:33</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache_html_a29aef983f39d1a4c8de8ca9a99fb92db"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache.html#a29aef983f39d1a4c8de8ca9a99fb92db">ripple::PeerFinder::Livecache::expire</a></div><div class="ttdeci">void expire()</div><div class="ttdoc">Erase entries whose time has expired.</div><div class="ttdef"><b>Definition:</b> <a href="Livecache_8h_source.html#l00416">Livecache.h:416</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache__test_html_a25316abe9eb56d4b7adbb16830b4a701"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache__test.html#a25316abe9eb56d4b7adbb16830b4a701">ripple::PeerFinder::Livecache_test::journal_</a></div><div class="ttdeci">test::SuiteJournal journal_</div><div class="ttdef"><b>Definition:</b> <a href="Livecache__test_8cpp_source.html#l00041">Livecache_test.cpp:41</a></div></div>
|
||||
@@ -348,11 +350,10 @@ $(function() {
|
||||
<div class="ttc" id="anamespaceripple_html_aebcc26ebe20ddcd3bcbfd5402e0acb89"><div class="ttname"><a href="namespaceripple.html#aebcc26ebe20ddcd3bcbfd5402e0acb89">ripple::after</a></div><div class="ttdeci">static bool after(NetClock::time_point now, std::uint32_t mark)</div><div class="ttdoc">Has the specified time passed?</div><div class="ttdef"><b>Definition:</b> <a href="Escrow_8cpp_source.html#l00088">Escrow.cpp:88</a></div></div>
|
||||
<div class="ttc" id="amake_pair_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a></div><div class="ttdeci">T make_pair(T... args)</div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1IP_1_1Endpoint_html"><div class="ttname"><a href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a></div><div class="ttdoc">A version-independent IP address and port combination.</div><div class="ttdef"><b>Definition:</b> <a href="IPEndpoint_8h_source.html#l00038">IPEndpoint.h:38</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1PeerFinder_1_1Tuning_html_a29079dc81726f6923bc08a141607737c"><div class="ttname"><a href="namespaceripple_1_1PeerFinder_1_1Tuning.html#a29079dc81726f6923bc08a141607737c">ripple::PeerFinder::Tuning::maxHops</a></div><div class="ttdeci">constexpr std::uint32_t maxHops</div><div class="ttdef"><b>Definition:</b> <a href="peerfinder_2impl_2Tuning_8h_source.html#l00110">peerfinder/impl/Tuning.h:110</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1manual__clock_html"><div class="ttname"><a href="classbeast_1_1manual__clock.html">beast::manual_clock< std::chrono::steady_clock ></a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1PeerFinder_1_1Endpoint_html_afad10bc9649cff5ad68f6a87aae15018"><div class="ttname"><a href="structripple_1_1PeerFinder_1_1Endpoint.html#afad10bc9649cff5ad68f6a87aae15018">ripple::PeerFinder::Endpoint::hops</a></div><div class="ttdeci">int hops</div><div class="ttdef"><b>Definition:</b> <a href="PeerfinderManager_8h_source.html#l00119">PeerfinderManager.h:119</a></div></div>
|
||||
<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#l00113">PeerfinderManager.h:113</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a06f1da429e6a72c7a8be4248d88ed6e7"><div class="ttname"><a href="namespaceripple.html#a06f1da429e6a72c7a8be4248d88ed6e7">ripple::sum</a></div><div class="ttdeci">static auto sum(TCollection const &col)</div><div class="ttdef"><b>Definition:</b> <a href="BookStep_8cpp_source.html#l00710">BookStep.cpp:710</a></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="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#l00120">PeerfinderManager.h:120</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache__test_html_a500d864d913159cc9b074343a2dd7597"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache__test.html#a500d864d913159cc9b074343a2dd7597">ripple::PeerFinder::Livecache_test::testExpire</a></div><div class="ttdeci">void testExpire()</div><div class="ttdef"><b>Definition:</b> <a href="Livecache__test_8cpp_source.html#l00111">Livecache_test.cpp:111</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Livecache_1_1hops__t_html_ae69e4a1cf2387be624cf1054e3c4792b"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Livecache_1_1hops__t.html#ae69e4a1cf2387be624cf1054e3c4792b">ripple::PeerFinder::Livecache::hops_t::begin</a></div><div class="ttdeci">iterator begin()</div><div class="ttdef"><b>Definition:</b> <a href="Livecache_8h_source.html#l00280">Livecache.h:280</a></div></div>
|
||||
|
||||
Reference in New Issue
Block a user