mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
deploy: afc05659ed
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.5"/>
|
||||
<meta name="generator" content="Doxygen 1.9.8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>rippled: PeerSet.cpp Source File</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -29,7 +29,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.5 -->
|
||||
<!-- Generated by Doxygen 1.9.8 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
||||
@@ -46,6 +46,11 @@ $(function() {
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function() { init_codefold(0); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
@@ -102,6 +107,7 @@ $(function() {
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
|
||||
<div class="foldopen" id="foldopen00027" data-start="{" data-end="};">
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="classripple_1_1PeerSetImpl.html"> 27</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1PeerSetImpl.html">PeerSetImpl</a> : <span class="keyword">public</span> <a class="code hl_class" href="classripple_1_1PeerSet.html">PeerSet</a></div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span>{</div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="keyword">public</span>:</div>
|
||||
@@ -130,13 +136,17 @@ $(function() {
|
||||
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div>
|
||||
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="classripple_1_1PeerSetImpl.html#ab28e397ae7a50d75f864c54a35a239ae"> 55</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set<Peer::id_t></a> <a class="code hl_variable" href="classripple_1_1PeerSetImpl.html#ab28e397ae7a50d75f864c54a35a239ae">peers_</a>;</div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span>};</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div>
|
||||
<div class="foldopen" id="foldopen00058" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="classripple_1_1PeerSetImpl.html#a2400eb70eec8d0befce1ea7a1c7b22d1"> 58</a></span><a class="code hl_function" href="classripple_1_1PeerSetImpl.html#a2400eb70eec8d0befce1ea7a1c7b22d1">PeerSetImpl::PeerSetImpl</a>(<a class="code hl_class" href="classripple_1_1Application.html">Application</a>& app)</div>
|
||||
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> : app_(app), journal_(app.journal(<span class="stringliteral">"PeerSet"</span>))</div>
|
||||
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span>{</div>
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span><span class="keywordtype">void</span></div>
|
||||
<div class="foldopen" id="foldopen00064" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="classripple_1_1PeerSetImpl.html#a3fa1774a60d7d1dd5e1049f627db3a36"> 64</a></span><a class="code hl_function" href="classripple_1_1PeerSetImpl.html#a3fa1774a60d7d1dd5e1049f627db3a36">PeerSetImpl::addPeers</a>(</div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> limit,</div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a><<span class="keywordtype">bool</span>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Peer></a> <span class="keyword">const</span>&)> hasItem,</div>
|
||||
@@ -172,14 +182,16 @@ $(function() {
|
||||
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="keywordflow">break</span>;</div>
|
||||
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> }</div>
|
||||
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
|
||||
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span><span class="keywordtype">void</span></div>
|
||||
<div class="foldopen" id="foldopen00101" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="classripple_1_1PeerSetImpl.html#a7b81fc46938e71c3af2befee4ea824a8"> 101</a></span><a class="code hl_function" href="classripple_1_1PeerSetImpl.html#a7b81fc46938e71c3af2befee4ea824a8">PeerSetImpl::sendRequest</a>(</div>
|
||||
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> ::google::protobuf::Message <span class="keyword">const</span>& message,</div>
|
||||
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> protocol::MessageType type,</div>
|
||||
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Peer></a> <span class="keyword">const</span>& peer)</div>
|
||||
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span>{</div>
|
||||
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <span class="keyword">auto</span> packet = std::make_shared<Message>(message, type);</div>
|
||||
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <span class="keyword">auto</span> packet = <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::make_shared<Message></a>(message, type);</div>
|
||||
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="keywordflow">if</span> (peer)</div>
|
||||
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> {</div>
|
||||
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> peer->send(packet);</div>
|
||||
@@ -192,44 +204,59 @@ $(function() {
|
||||
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> p->send(packet);</div>
|
||||
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> }</div>
|
||||
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> </div>
|
||||
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set<Peer::id_t></a> <span class="keyword">const</span>&</div>
|
||||
<div class="foldopen" id="foldopen00121" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"><a class="line" href="classripple_1_1PeerSetImpl.html#ab7f50468a49ec1710f95fcb42fce10b1"> 121</a></span><a class="code hl_function" href="classripple_1_1PeerSetImpl.html#ab7f50468a49ec1710f95fcb42fce10b1">PeerSetImpl::getPeerIds</a>()<span class="keyword"> const</span></div>
|
||||
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span><span class="keyword"></span>{</div>
|
||||
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1PeerSetImpl.html#ab28e397ae7a50d75f864c54a35a239ae">peers_</a>;</div>
|
||||
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> </div>
|
||||
<div class="foldopen" id="foldopen00126" data-start="{" data-end="};">
|
||||
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="classripple_1_1PeerSetBuilderImpl.html"> 126</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1PeerSetBuilderImpl.html">PeerSetBuilderImpl</a> : <span class="keyword">public</span> <a class="code hl_class" href="classripple_1_1PeerSetBuilder.html">PeerSetBuilder</a></div>
|
||||
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span>{</div>
|
||||
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span><span class="keyword">public</span>:</div>
|
||||
<div class="foldopen" id="foldopen00129" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"><a class="line" href="classripple_1_1PeerSetBuilderImpl.html#acca44248ca7571c72f2401f4b17be832"> 129</a></span> <a class="code hl_function" href="classripple_1_1PeerSetBuilderImpl.html#acca44248ca7571c72f2401f4b17be832">PeerSetBuilderImpl</a>(<a class="code hl_class" href="classripple_1_1Application.html">Application</a>& app) : <a class="code hl_variable" href="classripple_1_1PeerSetBuilderImpl.html#a4c169d11c3b043e1c4a053ec92dab6f7">app_</a>(app)</div>
|
||||
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> {</div>
|
||||
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> </div>
|
||||
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> <span class="keyword">virtual</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<PeerSet></a></div>
|
||||
<div class="foldopen" id="foldopen00134" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"><a class="line" href="classripple_1_1PeerSetBuilderImpl.html#a2b74633689442dc732046cf15394194c"> 134</a></span> <a class="code hl_function" href="classripple_1_1PeerSetBuilderImpl.html#a2b74633689442dc732046cf15394194c">build</a>()<span class="keyword"> override</span></div>
|
||||
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <span class="keywordflow">return</span> std::make_unique<PeerSetImpl>(<a class="code hl_variable" href="classripple_1_1PeerSetBuilderImpl.html#a4c169d11c3b043e1c4a053ec92dab6f7">app_</a>);</div>
|
||||
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <span class="keywordflow">return</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::make_unique<PeerSetImpl></a>(<a class="code hl_variable" href="classripple_1_1PeerSetBuilderImpl.html#a4c169d11c3b043e1c4a053ec92dab6f7">app_</a>);</div>
|
||||
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> </div>
|
||||
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span><span class="keyword">private</span>:</div>
|
||||
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="classripple_1_1PeerSetBuilderImpl.html#a4c169d11c3b043e1c4a053ec92dab6f7"> 140</a></span> <a class="code hl_class" href="classripple_1_1Application.html">Application</a>& <a class="code hl_variable" href="classripple_1_1PeerSetBuilderImpl.html#a4c169d11c3b043e1c4a053ec92dab6f7">app_</a>;</div>
|
||||
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span>};</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> </div>
|
||||
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<PeerSetBuilder></a></div>
|
||||
<div class="foldopen" id="foldopen00144" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"><a class="line" href="namespaceripple.html#a6d96d342f61e5dd48b86a8a37cdce642"> 144</a></span><a class="code hl_function" href="namespaceripple.html#a6d96d342f61e5dd48b86a8a37cdce642">make_PeerSetBuilder</a>(<a class="code hl_class" href="classripple_1_1Application.html">Application</a>& app)</div>
|
||||
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span>{</div>
|
||||
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="keywordflow">return</span> std::make_unique<PeerSetBuilderImpl>(app);</div>
|
||||
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="keywordflow">return</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::make_unique<PeerSetBuilderImpl></a>(app);</div>
|
||||
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> </div>
|
||||
<div class="foldopen" id="foldopen00149" data-start="{" data-end="};">
|
||||
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"><a class="line" href="classripple_1_1DummyPeerSet.html"> 149</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1DummyPeerSet.html">DummyPeerSet</a> : <span class="keyword">public</span> <a class="code hl_class" href="classripple_1_1PeerSet.html">PeerSet</a></div>
|
||||
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span>{</div>
|
||||
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span><span class="keyword">public</span>:</div>
|
||||
<div class="foldopen" id="foldopen00152" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"><a class="line" href="classripple_1_1DummyPeerSet.html#a58e78af0afaf2c6c8d9c7260f094aff6"> 152</a></span> <a class="code hl_function" href="classripple_1_1DummyPeerSet.html#a58e78af0afaf2c6c8d9c7260f094aff6">DummyPeerSet</a>(<a class="code hl_class" href="classripple_1_1Application.html">Application</a>& app) : <a class="code hl_variable" href="classripple_1_1DummyPeerSet.html#abefbc8fb25e8a8aad8f023a347883083">j_</a>(app.journal(<span class="stringliteral">"DummyPeerSet"</span>))</div>
|
||||
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> {</div>
|
||||
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> </div>
|
||||
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <span class="keywordtype">void</span></div>
|
||||
<div class="foldopen" id="foldopen00157" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"><a class="line" href="classripple_1_1DummyPeerSet.html#a3bdffec7a1fbc933d20a00b5ac17534d"> 157</a></span> <a class="code hl_function" href="classripple_1_1DummyPeerSet.html#a3bdffec7a1fbc933d20a00b5ac17534d">addPeers</a>(</div>
|
||||
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> limit,</div>
|
||||
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a><<span class="keywordtype">bool</span>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Peer></a> <span class="keyword">const</span>&)> hasItem,</div>
|
||||
@@ -237,8 +264,10 @@ $(function() {
|
||||
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> JLOG(<a class="code hl_variable" href="classripple_1_1DummyPeerSet.html#abefbc8fb25e8a8aad8f023a347883083">j_</a>.<a class="code hl_function" href="classbeast_1_1Journal.html#a49b0713e65bb8e2c51b76fbf16252afe">error</a>()) << <span class="stringliteral">"DummyPeerSet addPeers should not be called"</span>;</div>
|
||||
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> </div>
|
||||
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <span class="keywordtype">void</span></div>
|
||||
<div class="foldopen" id="foldopen00166" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"><a class="line" href="classripple_1_1DummyPeerSet.html#a4caf45ed3abda910abd2a6193e1f5ff3"> 166</a></span> <a class="code hl_function" href="classripple_1_1DummyPeerSet.html#a4caf45ed3abda910abd2a6193e1f5ff3">sendRequest</a>(</div>
|
||||
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> ::google::protobuf::Message <span class="keyword">const</span>& message,</div>
|
||||
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> protocol::MessageType type,</div>
|
||||
@@ -246,58 +275,65 @@ $(function() {
|
||||
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> JLOG(<a class="code hl_variable" href="classripple_1_1DummyPeerSet.html#abefbc8fb25e8a8aad8f023a347883083">j_</a>.<a class="code hl_function" href="classbeast_1_1Journal.html#a49b0713e65bb8e2c51b76fbf16252afe">error</a>()) << <span class="stringliteral">"DummyPeerSet sendRequest should not be called"</span>;</div>
|
||||
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> </div>
|
||||
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set<Peer::id_t></a> <span class="keyword">const</span>&</div>
|
||||
<div class="foldopen" id="foldopen00175" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"><a class="line" href="classripple_1_1DummyPeerSet.html#a702cd2490b72fa679e9fd452fdc94008"> 175</a></span> <a class="code hl_function" href="classripple_1_1DummyPeerSet.html#a702cd2490b72fa679e9fd452fdc94008">getPeerIds</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> <span class="keyword">static</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set<Peer::id_t></a> emptyPeers;</div>
|
||||
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> JLOG(<a class="code hl_variable" href="classripple_1_1DummyPeerSet.html#abefbc8fb25e8a8aad8f023a347883083">j_</a>.<a class="code hl_function" href="classbeast_1_1Journal.html#a49b0713e65bb8e2c51b76fbf16252afe">error</a>()) << <span class="stringliteral">"DummyPeerSet getPeerIds should not be called"</span>;</div>
|
||||
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> <span class="keywordflow">return</span> emptyPeers;</div>
|
||||
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> </div>
|
||||
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span><span class="keyword">private</span>:</div>
|
||||
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"><a class="line" href="classripple_1_1DummyPeerSet.html#abefbc8fb25e8a8aad8f023a347883083"> 183</a></span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> <a class="code hl_variable" href="classripple_1_1DummyPeerSet.html#abefbc8fb25e8a8aad8f023a347883083">j_</a>;</div>
|
||||
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span>};</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> </div>
|
||||
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<PeerSet></a></div>
|
||||
<div class="foldopen" id="foldopen00187" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"><a class="line" href="namespaceripple.html#a5a08ef41766731386ceb3ec0866c47d8"> 187</a></span><a class="code hl_function" href="namespaceripple.html#a5a08ef41766731386ceb3ec0866c47d8">make_DummyPeerSet</a>(<a class="code hl_class" href="classripple_1_1Application.html">Application</a>& app)</div>
|
||||
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span>{</div>
|
||||
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> <span class="keywordflow">return</span> std::make_unique<DummyPeerSet>(app);</div>
|
||||
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> <span class="keywordflow">return</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::make_unique<DummyPeerSet></a>(app);</div>
|
||||
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> </div>
|
||||
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span>} <span class="comment">// namespace ripple</span></div>
|
||||
<div class="ttc" id="abegin_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/begin.html">std::vector::begin</a></div><div class="ttdeci">T begin(T... args)</div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00059">Journal.h:60</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html_a49b0713e65bb8e2c51b76fbf16252afe"><div class="ttname"><a href="classbeast_1_1Journal.html#a49b0713e65bb8e2c51b76fbf16252afe">beast::Journal::error</a></div><div class="ttdeci">Stream error() const</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00346">Journal.h:346</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Application_html"><div class="ttname"><a href="classripple_1_1Application.html">ripple::Application</a></div><div class="ttdef"><b>Definition:</b> <a href="Application_8h_source.html#l00113">Application.h:114</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition</b> <a href="Journal_8h_source.html#l00059">Journal.h:60</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html_a49b0713e65bb8e2c51b76fbf16252afe"><div class="ttname"><a href="classbeast_1_1Journal.html#a49b0713e65bb8e2c51b76fbf16252afe">beast::Journal::error</a></div><div class="ttdeci">Stream error() const</div><div class="ttdef"><b>Definition</b> <a href="Journal_8h_source.html#l00346">Journal.h:346</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Application_html"><div class="ttname"><a href="classripple_1_1Application.html">ripple::Application</a></div><div class="ttdef"><b>Definition</b> <a href="Application_8h_source.html#l00113">Application.h:114</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Application_html_a101819f49b53b1387198d2827d31cd52"><div class="ttname"><a href="classripple_1_1Application.html#a101819f49b53b1387198d2827d31cd52">ripple::Application::overlay</a></div><div class="ttdeci">virtual Overlay & overlay()=0</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1DummyPeerSet_html"><div class="ttname"><a href="classripple_1_1DummyPeerSet.html">ripple::DummyPeerSet</a></div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00149">PeerSet.cpp:150</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1DummyPeerSet_html_a3bdffec7a1fbc933d20a00b5ac17534d"><div class="ttname"><a href="classripple_1_1DummyPeerSet.html#a3bdffec7a1fbc933d20a00b5ac17534d">ripple::DummyPeerSet::addPeers</a></div><div class="ttdeci">void addPeers(std::size_t limit, std::function< bool(std::shared_ptr< Peer > const &)> hasItem, std::function< void(std::shared_ptr< Peer > const &)> onPeerAdded) override</div><div class="ttdoc">Try add more peers.</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00157">PeerSet.cpp:157</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1DummyPeerSet_html_a4caf45ed3abda910abd2a6193e1f5ff3"><div class="ttname"><a href="classripple_1_1DummyPeerSet.html#a4caf45ed3abda910abd2a6193e1f5ff3">ripple::DummyPeerSet::sendRequest</a></div><div class="ttdeci">void sendRequest(::google::protobuf::Message const &message, protocol::MessageType type, std::shared_ptr< Peer > const &peer) override</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00166">PeerSet.cpp:166</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1DummyPeerSet_html_a58e78af0afaf2c6c8d9c7260f094aff6"><div class="ttname"><a href="classripple_1_1DummyPeerSet.html#a58e78af0afaf2c6c8d9c7260f094aff6">ripple::DummyPeerSet::DummyPeerSet</a></div><div class="ttdeci">DummyPeerSet(Application &app)</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00152">PeerSet.cpp:152</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1DummyPeerSet_html_a702cd2490b72fa679e9fd452fdc94008"><div class="ttname"><a href="classripple_1_1DummyPeerSet.html#a702cd2490b72fa679e9fd452fdc94008">ripple::DummyPeerSet::getPeerIds</a></div><div class="ttdeci">std::set< Peer::id_t > const & getPeerIds() const override</div><div class="ttdoc">get the set of ids of previously added peers</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00175">PeerSet.cpp:175</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1DummyPeerSet_html_abefbc8fb25e8a8aad8f023a347883083"><div class="ttname"><a href="classripple_1_1DummyPeerSet.html#abefbc8fb25e8a8aad8f023a347883083">ripple::DummyPeerSet::j_</a></div><div class="ttdeci">beast::Journal j_</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00183">PeerSet.cpp:183</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1DummyPeerSet_html"><div class="ttname"><a href="classripple_1_1DummyPeerSet.html">ripple::DummyPeerSet</a></div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00149">PeerSet.cpp:150</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1DummyPeerSet_html_a3bdffec7a1fbc933d20a00b5ac17534d"><div class="ttname"><a href="classripple_1_1DummyPeerSet.html#a3bdffec7a1fbc933d20a00b5ac17534d">ripple::DummyPeerSet::addPeers</a></div><div class="ttdeci">void addPeers(std::size_t limit, std::function< bool(std::shared_ptr< Peer > const &)> hasItem, std::function< void(std::shared_ptr< Peer > const &)> onPeerAdded) override</div><div class="ttdoc">Try add more peers.</div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00157">PeerSet.cpp:157</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1DummyPeerSet_html_a4caf45ed3abda910abd2a6193e1f5ff3"><div class="ttname"><a href="classripple_1_1DummyPeerSet.html#a4caf45ed3abda910abd2a6193e1f5ff3">ripple::DummyPeerSet::sendRequest</a></div><div class="ttdeci">void sendRequest(::google::protobuf::Message const &message, protocol::MessageType type, std::shared_ptr< Peer > const &peer) override</div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00166">PeerSet.cpp:166</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1DummyPeerSet_html_a58e78af0afaf2c6c8d9c7260f094aff6"><div class="ttname"><a href="classripple_1_1DummyPeerSet.html#a58e78af0afaf2c6c8d9c7260f094aff6">ripple::DummyPeerSet::DummyPeerSet</a></div><div class="ttdeci">DummyPeerSet(Application &app)</div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00152">PeerSet.cpp:152</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1DummyPeerSet_html_a702cd2490b72fa679e9fd452fdc94008"><div class="ttname"><a href="classripple_1_1DummyPeerSet.html#a702cd2490b72fa679e9fd452fdc94008">ripple::DummyPeerSet::getPeerIds</a></div><div class="ttdeci">std::set< Peer::id_t > const & getPeerIds() const override</div><div class="ttdoc">get the set of ids of previously added peers</div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00175">PeerSet.cpp:175</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1DummyPeerSet_html_abefbc8fb25e8a8aad8f023a347883083"><div class="ttname"><a href="classripple_1_1DummyPeerSet.html#abefbc8fb25e8a8aad8f023a347883083">ripple::DummyPeerSet::j_</a></div><div class="ttdeci">beast::Journal j_</div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00183">PeerSet.cpp:183</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Overlay_html_a52aa545a8f573d7fc36e5bf83b2da90f"><div class="ttname"><a href="classripple_1_1Overlay.html#a52aa545a8f573d7fc36e5bf83b2da90f">ripple::Overlay::findPeerByShortID</a></div><div class="ttdeci">virtual std::shared_ptr< Peer > findPeerByShortID(Peer::id_t const &id) const =0</div><div class="ttdoc">Returns the peer with the matching short id, or null.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetBuilderImpl_html"><div class="ttname"><a href="classripple_1_1PeerSetBuilderImpl.html">ripple::PeerSetBuilderImpl</a></div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00126">PeerSet.cpp:127</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetBuilderImpl_html_a2b74633689442dc732046cf15394194c"><div class="ttname"><a href="classripple_1_1PeerSetBuilderImpl.html#a2b74633689442dc732046cf15394194c">ripple::PeerSetBuilderImpl::build</a></div><div class="ttdeci">virtual std::unique_ptr< PeerSet > build() override</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00134">PeerSet.cpp:134</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetBuilderImpl_html_a4c169d11c3b043e1c4a053ec92dab6f7"><div class="ttname"><a href="classripple_1_1PeerSetBuilderImpl.html#a4c169d11c3b043e1c4a053ec92dab6f7">ripple::PeerSetBuilderImpl::app_</a></div><div class="ttdeci">Application & app_</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00140">PeerSet.cpp:140</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetBuilderImpl_html_acca44248ca7571c72f2401f4b17be832"><div class="ttname"><a href="classripple_1_1PeerSetBuilderImpl.html#acca44248ca7571c72f2401f4b17be832">ripple::PeerSetBuilderImpl::PeerSetBuilderImpl</a></div><div class="ttdeci">PeerSetBuilderImpl(Application &app)</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00129">PeerSet.cpp:129</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetBuilder_html"><div class="ttname"><a href="classripple_1_1PeerSetBuilder.html">ripple::PeerSetBuilder</a></div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8h_source.html#l00075">PeerSet.h:76</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetImpl_html"><div class="ttname"><a href="classripple_1_1PeerSetImpl.html">ripple::PeerSetImpl</a></div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00027">PeerSet.cpp:28</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetImpl_html_a2400eb70eec8d0befce1ea7a1c7b22d1"><div class="ttname"><a href="classripple_1_1PeerSetImpl.html#a2400eb70eec8d0befce1ea7a1c7b22d1">ripple::PeerSetImpl::PeerSetImpl</a></div><div class="ttdeci">PeerSetImpl(Application &app)</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00058">PeerSet.cpp:58</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetImpl_html_a3fa1774a60d7d1dd5e1049f627db3a36"><div class="ttname"><a href="classripple_1_1PeerSetImpl.html#a3fa1774a60d7d1dd5e1049f627db3a36">ripple::PeerSetImpl::addPeers</a></div><div class="ttdeci">void addPeers(std::size_t limit, std::function< bool(std::shared_ptr< Peer > const &)> hasItem, std::function< void(std::shared_ptr< Peer > const &)> onPeerAdded) override</div><div class="ttdoc">Try add more peers.</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00064">PeerSet.cpp:64</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetImpl_html_a7b81fc46938e71c3af2befee4ea824a8"><div class="ttname"><a href="classripple_1_1PeerSetImpl.html#a7b81fc46938e71c3af2befee4ea824a8">ripple::PeerSetImpl::sendRequest</a></div><div class="ttdeci">void sendRequest(::google::protobuf::Message const &message, protocol::MessageType type, std::shared_ptr< Peer > const &peer) override</div><div class="ttdoc">Send a message to one or all peers.</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00101">PeerSet.cpp:101</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetImpl_html_ab06c336e5ab2378aa1b409eef6246ece"><div class="ttname"><a href="classripple_1_1PeerSetImpl.html#ab06c336e5ab2378aa1b409eef6246ece">ripple::PeerSetImpl::journal_</a></div><div class="ttdeci">beast::Journal journal_</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00052">PeerSet.cpp:52</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetImpl_html_ab28e397ae7a50d75f864c54a35a239ae"><div class="ttname"><a href="classripple_1_1PeerSetImpl.html#ab28e397ae7a50d75f864c54a35a239ae">ripple::PeerSetImpl::peers_</a></div><div class="ttdeci">std::set< Peer::id_t > peers_</div><div class="ttdoc">The identifiers of the peers we are tracking.</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00055">PeerSet.cpp:55</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetImpl_html_ab7f50468a49ec1710f95fcb42fce10b1"><div class="ttname"><a href="classripple_1_1PeerSetImpl.html#ab7f50468a49ec1710f95fcb42fce10b1">ripple::PeerSetImpl::getPeerIds</a></div><div class="ttdeci">std::set< Peer::id_t > const & getPeerIds() const override</div><div class="ttdoc">get the set of ids of previously added peers</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00121">PeerSet.cpp:121</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetImpl_html_ad87a36ea88f6f6285631eb54c8a8b9a0"><div class="ttname"><a href="classripple_1_1PeerSetImpl.html#ad87a36ea88f6f6285631eb54c8a8b9a0">ripple::PeerSetImpl::app_</a></div><div class="ttdeci">Application & app_</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00051">PeerSet.cpp:51</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSet_html"><div class="ttname"><a href="classripple_1_1PeerSet.html">ripple::PeerSet</a></div><div class="ttdoc">Supports data retrieval by managing a set of peers.</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8h_source.html#l00039">PeerSet.h:40</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetBuilderImpl_html"><div class="ttname"><a href="classripple_1_1PeerSetBuilderImpl.html">ripple::PeerSetBuilderImpl</a></div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00126">PeerSet.cpp:127</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetBuilderImpl_html_a2b74633689442dc732046cf15394194c"><div class="ttname"><a href="classripple_1_1PeerSetBuilderImpl.html#a2b74633689442dc732046cf15394194c">ripple::PeerSetBuilderImpl::build</a></div><div class="ttdeci">virtual std::unique_ptr< PeerSet > build() override</div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00134">PeerSet.cpp:134</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetBuilderImpl_html_a4c169d11c3b043e1c4a053ec92dab6f7"><div class="ttname"><a href="classripple_1_1PeerSetBuilderImpl.html#a4c169d11c3b043e1c4a053ec92dab6f7">ripple::PeerSetBuilderImpl::app_</a></div><div class="ttdeci">Application & app_</div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00140">PeerSet.cpp:140</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetBuilderImpl_html_acca44248ca7571c72f2401f4b17be832"><div class="ttname"><a href="classripple_1_1PeerSetBuilderImpl.html#acca44248ca7571c72f2401f4b17be832">ripple::PeerSetBuilderImpl::PeerSetBuilderImpl</a></div><div class="ttdeci">PeerSetBuilderImpl(Application &app)</div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00129">PeerSet.cpp:129</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetBuilder_html"><div class="ttname"><a href="classripple_1_1PeerSetBuilder.html">ripple::PeerSetBuilder</a></div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8h_source.html#l00075">PeerSet.h:76</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetImpl_html"><div class="ttname"><a href="classripple_1_1PeerSetImpl.html">ripple::PeerSetImpl</a></div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00027">PeerSet.cpp:28</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetImpl_html_a2400eb70eec8d0befce1ea7a1c7b22d1"><div class="ttname"><a href="classripple_1_1PeerSetImpl.html#a2400eb70eec8d0befce1ea7a1c7b22d1">ripple::PeerSetImpl::PeerSetImpl</a></div><div class="ttdeci">PeerSetImpl(Application &app)</div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00058">PeerSet.cpp:58</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetImpl_html_a3fa1774a60d7d1dd5e1049f627db3a36"><div class="ttname"><a href="classripple_1_1PeerSetImpl.html#a3fa1774a60d7d1dd5e1049f627db3a36">ripple::PeerSetImpl::addPeers</a></div><div class="ttdeci">void addPeers(std::size_t limit, std::function< bool(std::shared_ptr< Peer > const &)> hasItem, std::function< void(std::shared_ptr< Peer > const &)> onPeerAdded) override</div><div class="ttdoc">Try add more peers.</div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00064">PeerSet.cpp:64</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetImpl_html_a7b81fc46938e71c3af2befee4ea824a8"><div class="ttname"><a href="classripple_1_1PeerSetImpl.html#a7b81fc46938e71c3af2befee4ea824a8">ripple::PeerSetImpl::sendRequest</a></div><div class="ttdeci">void sendRequest(::google::protobuf::Message const &message, protocol::MessageType type, std::shared_ptr< Peer > const &peer) override</div><div class="ttdoc">Send a message to one or all peers.</div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00101">PeerSet.cpp:101</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetImpl_html_ab06c336e5ab2378aa1b409eef6246ece"><div class="ttname"><a href="classripple_1_1PeerSetImpl.html#ab06c336e5ab2378aa1b409eef6246ece">ripple::PeerSetImpl::journal_</a></div><div class="ttdeci">beast::Journal journal_</div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00052">PeerSet.cpp:52</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetImpl_html_ab28e397ae7a50d75f864c54a35a239ae"><div class="ttname"><a href="classripple_1_1PeerSetImpl.html#ab28e397ae7a50d75f864c54a35a239ae">ripple::PeerSetImpl::peers_</a></div><div class="ttdeci">std::set< Peer::id_t > peers_</div><div class="ttdoc">The identifiers of the peers we are tracking.</div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00055">PeerSet.cpp:55</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetImpl_html_ab7f50468a49ec1710f95fcb42fce10b1"><div class="ttname"><a href="classripple_1_1PeerSetImpl.html#ab7f50468a49ec1710f95fcb42fce10b1">ripple::PeerSetImpl::getPeerIds</a></div><div class="ttdeci">std::set< Peer::id_t > const & getPeerIds() const override</div><div class="ttdoc">get the set of ids of previously added peers</div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00121">PeerSet.cpp:121</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSetImpl_html_ad87a36ea88f6f6285631eb54c8a8b9a0"><div class="ttname"><a href="classripple_1_1PeerSetImpl.html#ad87a36ea88f6f6285631eb54c8a8b9a0">ripple::PeerSetImpl::app_</a></div><div class="ttdeci">Application & app_</div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00051">PeerSet.cpp:51</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1PeerSet_html"><div class="ttname"><a href="classripple_1_1PeerSet.html">ripple::PeerSet</a></div><div class="ttdoc">Supports data retrieval by managing a set of peers.</div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8h_source.html#l00039">PeerSet.h:40</a></div></div>
|
||||
<div class="ttc" id="aemplace_back_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/emplace_back.html">std::vector::emplace_back</a></div><div class="ttdeci">T emplace_back(T... args)</div></div>
|
||||
<div class="ttc" id="aend_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/end.html">std::vector::end</a></div><div class="ttdeci">T end(T... args)</div></div>
|
||||
<div class="ttc" id="afunction_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</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="algorithm_8h_source.html#l00025">algorithm.h:25</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a5a08ef41766731386ceb3ec0866c47d8"><div class="ttname"><a href="namespaceripple.html#a5a08ef41766731386ceb3ec0866c47d8">ripple::make_DummyPeerSet</a></div><div class="ttdeci">std::unique_ptr< PeerSet > make_DummyPeerSet(Application &app)</div><div class="ttdoc">Make a dummy PeerSet that does not do anything.</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00187">PeerSet.cpp:187</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a6d96d342f61e5dd48b86a8a37cdce642"><div class="ttname"><a href="namespaceripple.html#a6d96d342f61e5dd48b86a8a37cdce642">ripple::make_PeerSetBuilder</a></div><div class="ttdeci">std::unique_ptr< PeerSetBuilder > make_PeerSetBuilder(Application &app)</div><div class="ttdef"><b>Definition:</b> <a href="PeerSet_8cpp_source.html#l00144">PeerSet.cpp:144</a></div></div>
|
||||
<div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a></div><div class="ttdeci">T is_same_v</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="algorithm_8h_source.html#l00025">algorithm.h:25</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a5a08ef41766731386ceb3ec0866c47d8"><div class="ttname"><a href="namespaceripple.html#a5a08ef41766731386ceb3ec0866c47d8">ripple::make_DummyPeerSet</a></div><div class="ttdeci">std::unique_ptr< PeerSet > make_DummyPeerSet(Application &app)</div><div class="ttdoc">Make a dummy PeerSet that does not do anything.</div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00187">PeerSet.cpp:187</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a6d96d342f61e5dd48b86a8a37cdce642"><div class="ttname"><a href="namespaceripple.html#a6d96d342f61e5dd48b86a8a37cdce642">ripple::make_PeerSetBuilder</a></div><div class="ttdeci">std::unique_ptr< PeerSetBuilder > make_PeerSetBuilder(Application &app)</div><div class="ttdef"><b>Definition</b> <a href="PeerSet_8cpp_source.html#l00144">PeerSet.cpp:144</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a8a16d6f665a032453ec4cbfca01929b6a3e4d891a5df3d6d0d7dd9432a1bc6470"><div class="ttname"><a href="namespaceripple.html#a8a16d6f665a032453ec4cbfca01929b6a3e4d891a5df3d6d0d7dd9432a1bc6470">ripple::ManifestDisposition::accepted</a></div><div class="ttdeci">@ accepted</div><div class="ttdoc">Manifest is valid.</div></div>
|
||||
<div class="ttc" id="apair_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair</a></div></div>
|
||||
<div class="ttc" id="areserve_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/reserve.html">std::vector::reserve</a></div><div class="ttdeci">T reserve(T... args)</div></div>
|
||||
@@ -310,7 +346,7 @@ $(function() {
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
|
||||
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user