mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
deploy: 72377e7bf2
This commit is contained in:
@@ -173,7 +173,7 @@ $(function() {
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> }</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  </div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#a21e9e3b724b7e05b681aba72445cb6da"> 105</a></span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#a21e9e3b724b7e05b681aba72445cb6da">SlotImp::recent_t::insert</a>(<a class="code" href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a> <span class="keyword">const</span>& ep, <span class="keywordtype">int</span> hops)</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#adeb37a9344fa2f87ba68485bc4842558"> 105</a></span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#adeb37a9344fa2f87ba68485bc4842558">SlotImp::recent_t::insert</a>(<a class="code" href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a> <span class="keyword">const</span>& ep, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> hops)</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> {</div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keyword">auto</span> <span class="keyword">const</span> result(cache.emplace(ep, hops));</div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordflow">if</span> (!result.second)</div>
|
||||
@@ -188,7 +188,7 @@ $(function() {
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> }</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  </div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#a418ec1cbd4983abee140fc88ba124fa1"> 120</a></span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#a418ec1cbd4983abee140fc88ba124fa1">SlotImp::recent_t::filter</a>(<a class="code" href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a> <span class="keyword">const</span>& ep, <span class="keywordtype">int</span> hops)</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#a9edb0da1c4fa6d4c395eae05e08aae8a"> 120</a></span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#a9edb0da1c4fa6d4c395eae05e08aae8a">SlotImp::recent_t::filter</a>(<a class="code" href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a> <span class="keyword">const</span>& ep, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> hops)</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> {</div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keyword">auto</span> <span class="keyword">const</span> iter(cache.find(ep));</div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">if</span> (iter == cache.end())</div>
|
||||
@@ -202,31 +202,32 @@ $(function() {
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#aa51c8ffe7a51c98cbf178690755e0469"> 132</a></span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#aa51c8ffe7a51c98cbf178690755e0469">SlotImp::recent_t::expire</a>()</div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> {</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <a class="code" href="namespacebeast.html#a0d4902fd756aee03082ffc8a6f528792">beast::expire</a>(cache, <a class="code" href="namespaceripple_1_1PeerFinder_1_1Tuning.html#a4a670e377309e85e6651f688f6971bd3">Tuning::liveCacheSecondsToLive</a>);</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <a class="code" href="namespacebeast.html#a0d4902fd756aee03082ffc8a6f528792">beast::expire</a>(cache, <a class="code" href="namespaceripple_1_1PeerFinder_1_1Tuning.html#a4505f8120be51df363c12837213f2a36">Tuning::liveCacheSecondsToLive</a>);</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> }</div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  </div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> } <span class="comment">// namespace PeerFinder</span></div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> } <span class="comment">// namespace ripple</span></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<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="aclassripple_1_1PeerFinder_1_1Slot_html_aef66a8665535aa45b5b8a628be9bc1feac87de6c1eb1061049de480db7712dc54"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Slot.html#aef66a8665535aa45b5b8a628be9bc1feac87de6c1eb1061049de480db7712dc54">ripple::PeerFinder::Slot::accept</a></div><div class="ttdeci">@ accept</div><div class="ttdef"><b>Definition:</b> <a href="peerfinder_2Slot_8h_source.html#l00037">peerfinder/Slot.h:37</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_1_1recent__t_html_aa51c8ffe7a51c98cbf178690755e0469"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#aa51c8ffe7a51c98cbf178690755e0469">ripple::PeerFinder::SlotImp::recent_t::expire</a></div><div class="ttdeci">void expire()</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8cpp_source.html#l00132">SlotImp.cpp:132</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Slot_html_aef66a8665535aa45b5b8a628be9bc1feac795f97229ae813282d51a668a48df57"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Slot.html#aef66a8665535aa45b5b8a628be9bc1feac795f97229ae813282d51a668a48df57">ripple::PeerFinder::Slot::active</a></div><div class="ttdeci">@ active</div><div class="ttdef"><b>Definition:</b> <a href="peerfinder_2Slot_8h_source.html#l00037">peerfinder/Slot.h:37</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_ab1fd53bb8647951a8d95a97e536bd65e"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#ab1fd53bb8647951a8d95a97e536bd65e">ripple::PeerFinder::SlotImp::whenAcceptEndpoints</a></div><div class="ttdeci">clock_type::time_point whenAcceptEndpoints</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00209">SlotImp.h:209</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_ad4eeb57b9bf2bc0c62196f2fb89ca902"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#ad4eeb57b9bf2bc0c62196f2fb89ca902">ripple::PeerFinder::SlotImp::m_state</a></div><div class="ttdeci">State m_state</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00182">SlotImp.h:182</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_ab1fd53bb8647951a8d95a97e536bd65e"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#ab1fd53bb8647951a8d95a97e536bd65e">ripple::PeerFinder::SlotImp::whenAcceptEndpoints</a></div><div class="ttdeci">clock_type::time_point whenAcceptEndpoints</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00206">SlotImp.h:206</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_1_1recent__t_html_a9edb0da1c4fa6d4c395eae05e08aae8a"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#a9edb0da1c4fa6d4c395eae05e08aae8a">ripple::PeerFinder::SlotImp::recent_t::filter</a></div><div class="ttdeci">bool filter(beast::IP::Endpoint const &ep, std::uint32_t hops)</div><div class="ttdoc">Returns true if we should not send endpoint to the slot.</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8cpp_source.html#l00120">SlotImp.cpp:120</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="aclassripple_1_1PeerFinder_1_1SlotImp_html_ad4eeb57b9bf2bc0c62196f2fb89ca902"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#ad4eeb57b9bf2bc0c62196f2fb89ca902">ripple::PeerFinder::SlotImp::m_state</a></div><div class="ttdeci">State m_state</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00179">SlotImp.h:179</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_1_1recent__t_html_a3c7d8089093e513b3f426f8059826901"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#a3c7d8089093e513b3f426f8059826901">ripple::PeerFinder::SlotImp::recent_t::recent_t</a></div><div class="ttdeci">recent_t(clock_type &clock)</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8cpp_source.html#l00100">SlotImp.cpp:100</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Slot_html_aef66a8665535aa45b5b8a628be9bc1fea488267e5b4e7d9c0602ed78161301ded"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Slot.html#aef66a8665535aa45b5b8a628be9bc1fea488267e5b4e7d9c0602ed78161301ded">ripple::PeerFinder::Slot::connected</a></div><div class="ttdeci">@ connected</div><div class="ttdef"><b>Definition:</b> <a href="peerfinder_2Slot_8h_source.html#l00037">peerfinder/Slot.h:37</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a730f9c667421d5c1b7c8f033f3508cbb"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a730f9c667421d5c1b7c8f033f3508cbb">ripple::PeerFinder::SlotImp::SlotImp</a></div><div class="ttdeci">SlotImp(beast::IP::Endpoint const &local_endpoint, beast::IP::Endpoint const &remote_endpoint, bool fixed, clock_type &clock)</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8cpp_source.html#l00027">SlotImp.cpp:27</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_1_1recent__t_html_adeb37a9344fa2f87ba68485bc4842558"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#adeb37a9344fa2f87ba68485bc4842558">ripple::PeerFinder::SlotImp::recent_t::insert</a></div><div class="ttdeci">void insert(beast::IP::Endpoint const &ep, std::uint32_t hops)</div><div class="ttdoc">Called for each valid endpoint received for a slot.</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8cpp_source.html#l00105">SlotImp.cpp:105</a></div></div>
|
||||
<div class="ttc" id="anamespacebeast_html_a0d4902fd756aee03082ffc8a6f528792"><div class="ttname"><a href="namespacebeast.html#a0d4902fd756aee03082ffc8a6f528792">beast::expire</a></div><div class="ttdeci">std::enable_if< is_aged_container< AgedContainer >::value, std::size_t >::type expire(AgedContainer &c, std::chrono::duration< Rep, Period > const &age)</div><div class="ttdoc">Expire aged container items past the specified age.</div><div class="ttdef"><b>Definition:</b> <a href="aged__container__utility_8h_source.html#l00033">aged_container_utility.h:33</a></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_1Slot_html_aef66a8665535aa45b5b8a628be9bc1fea6e8b8dbe8eae258de16200a7a3625726"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Slot.html#aef66a8665535aa45b5b8a628be9bc1fea6e8b8dbe8eae258de16200a7a3625726">ripple::PeerFinder::Slot::closing</a></div><div class="ttdeci">@ closing</div><div class="ttdef"><b>Definition:</b> <a href="peerfinder_2Slot_8h_source.html#l00037">peerfinder/Slot.h:37</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Slot_html_aef66a8665535aa45b5b8a628be9bc1fe"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Slot.html#aef66a8665535aa45b5b8a628be9bc1fe">ripple::PeerFinder::Slot::State</a></div><div class="ttdeci">State</div><div class="ttdef"><b>Definition:</b> <a href="peerfinder_2Slot_8h_source.html#l00037">peerfinder/Slot.h:37</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1abstract__clock_html"><div class="ttname"><a href="classbeast_1_1abstract__clock.html">beast::abstract_clock< std::chrono::steady_clock ></a></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_1SlotImp_html_a6024e3ceb32896081ebcb3659887ba65"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a6024e3ceb32896081ebcb3659887ba65">ripple::PeerFinder::SlotImp::m_inbound</a></div><div class="ttdeci">const bool m_inbound</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00179">SlotImp.h:179</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_1_1recent__t_html_a418ec1cbd4983abee140fc88ba124fa1"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#a418ec1cbd4983abee140fc88ba124fa1">ripple::PeerFinder::SlotImp::recent_t::filter</a></div><div class="ttdeci">bool filter(beast::IP::Endpoint const &ep, int hops)</div><div class="ttdoc">Returns true if we should not send endpoint to the slot.</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8cpp_source.html#l00120">SlotImp.cpp:120</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_1_1recent__t_html_a21e9e3b724b7e05b681aba72445cb6da"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#a21e9e3b724b7e05b681aba72445cb6da">ripple::PeerFinder::SlotImp::recent_t::insert</a></div><div class="ttdeci">void insert(beast::IP::Endpoint const &ep, int hops)</div><div class="ttdoc">Called for each valid endpoint received for a slot.</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8cpp_source.html#l00105">SlotImp.cpp:105</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a6024e3ceb32896081ebcb3659887ba65"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a6024e3ceb32896081ebcb3659887ba65">ripple::PeerFinder::SlotImp::m_inbound</a></div><div class="ttdeci">const bool m_inbound</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00176">SlotImp.h:176</a></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="aclassripple_1_1PeerFinder_1_1SlotImp_html_ab05ca3e1236ac84b172b6f49fb66de52"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#ab05ca3e1236ac84b172b6f49fb66de52">ripple::PeerFinder::SlotImp::state</a></div><div class="ttdeci">State state() const override</div><div class="ttdoc">Returns the state of the connection.</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00073">SlotImp.h:73</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_ab05ca3e1236ac84b172b6f49fb66de52"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#ab05ca3e1236ac84b172b6f49fb66de52">ripple::PeerFinder::SlotImp::state</a></div><div class="ttdeci">State state() const override</div><div class="ttdoc">Returns the state of the connection.</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00070">SlotImp.h:70</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Slot_html_ab74dc02fff51cd2d959e40c3ad241772"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Slot.html#ab74dc02fff51cd2d959e40c3ad241772">ripple::PeerFinder::Slot::~Slot</a></div><div class="ttdeci">virtual ~Slot()=0</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1Slot_html_aef66a8665535aa45b5b8a628be9bc1feaabad7159e651d717b0c7d100c507d2b2"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Slot.html#aef66a8665535aa45b5b8a628be9bc1feaabad7159e651d717b0c7d100c507d2b2">ripple::PeerFinder::Slot::connect</a></div><div class="ttdeci">@ connect</div><div class="ttdef"><b>Definition:</b> <a href="peerfinder_2Slot_8h_source.html#l00037">peerfinder/Slot.h:37</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a612a0b488db6ae33b07a725508383636"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a612a0b488db6ae33b07a725508383636">ripple::PeerFinder::SlotImp::activate</a></div><div class="ttdeci">void activate(clock_type::time_point const &now)</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8cpp_source.html#l00085">SlotImp.cpp:85</a></div></div>
|
||||
|
||||
Reference in New Issue
Block a user