This commit is contained in:
nbougalis
2020-04-15 21:15:02 +00:00
commit 4ad595bf18
12373 changed files with 1478990 additions and 0 deletions

315
SlotImp_8h_source.html Normal file
View File

@@ -0,0 +1,315 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: SlotImp.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_df9c78dcf3f59a33b12284f95992a64b.html">ripple</a></li><li class="navelem"><a class="el" href="dir_44aff85a5b558cac9311bb222eb8fa78.html">peerfinder</a></li><li class="navelem"><a class="el" href="dir_01f812eedbcff88039c2ca147e9e73a6.html">impl</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">SlotImp.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#ifndef RIPPLE_PEERFINDER_SLOTIMP_H_INCLUDED</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#define RIPPLE_PEERFINDER_SLOTIMP_H_INCLUDED</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;ripple/peerfinder/Slot.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;ripple/peerfinder/PeerfinderManager.h&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;ripple/beast/container/aged_unordered_map.h&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;ripple/beast/container/aged_container_utility.h&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;boost/optional.hpp&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/atomic.html">atomic</a>&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keyword">namespace </span>PeerFinder {</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html"> 33</a></span>&#160;<span class="keyword">class </span><a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html">SlotImp</a> : <span class="keyword">public</span> <a class="code" href="classripple_1_1PeerFinder_1_1Slot.html">Slot</a></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;{</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a0d95c6368d0d27eff9c4587d949adea3"> 36</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classbeast_1_1detail_1_1aged__unordered__container.html">recent_type</a> = <a class="code" href="classbeast_1_1detail_1_1aged__unordered__container.html">beast::aged_unordered_map &lt;beast::IP::Endpoint, int&gt;</a>;</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a6ec0a185eb935f479ce41d0414911fe3"> 39</a></span>&#160; <span class="keyword">using</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">ptr</a> = <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr &lt;SlotImp&gt;</a>;</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="comment">// inbound</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a730f9c667421d5c1b7c8f033f3508cbb">SlotImp</a> (<a class="code" href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a> <span class="keyword">const</span>&amp; <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a5a9f54ba86fb0f3cd1e1d1854405e603">local_endpoint</a>,</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <a class="code" href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a> <span class="keyword">const</span>&amp; <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#aebec488e6aea6197e4f813914710cafa">remote_endpoint</a>, <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a3f6927b6e3dca316762263d2331af7d1">fixed</a>,</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <a class="code" href="classbeast_1_1abstract__clock.html">clock_type</a>&amp; clock);</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="comment">// outbound</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a730f9c667421d5c1b7c8f033f3508cbb">SlotImp</a> (<a class="code" href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a> <span class="keyword">const</span>&amp; <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#aebec488e6aea6197e4f813914710cafa">remote_endpoint</a>,</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a3f6927b6e3dca316762263d2331af7d1">fixed</a>, <a class="code" href="classbeast_1_1abstract__clock.html">clock_type</a>&amp; clock);</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; </div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a6598320a548e70247020e689a40ce1a3"> 50</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a6598320a548e70247020e689a40ce1a3">inbound</a> ()<span class="keyword"> const override</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a6024e3ceb32896081ebcb3659887ba65">m_inbound</a>;</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; }</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a3f6927b6e3dca316762263d2331af7d1"> 55</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a3f6927b6e3dca316762263d2331af7d1">fixed</a> ()<span class="keyword"> const override</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#aa646ec4ba4869195787249eef509ffd4">m_fixed</a>;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; }</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#af882bbe7500bdb1d12376193d9dea560"> 60</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#af882bbe7500bdb1d12376193d9dea560">reserved</a> ()<span class="keyword"> const override</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a6bc1462b08361b885eae6611eda6ca3a">m_reserved</a>;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; }</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#ab05ca3e1236ac84b172b6f49fb66de52"> 65</a></span>&#160; <a class="code" href="classripple_1_1PeerFinder_1_1Slot.html#aef66a8665535aa45b5b8a628be9bc1fe">State</a> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#ab05ca3e1236ac84b172b6f49fb66de52">state</a> ()<span class="keyword"> const override</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#ad4eeb57b9bf2bc0c62196f2fb89ca902">m_state</a>;</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; }</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#aebec488e6aea6197e4f813914710cafa"> 70</a></span>&#160; <a class="code" href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a> <span class="keyword">const</span>&amp; <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#aebec488e6aea6197e4f813914710cafa">remote_endpoint</a> ()<span class="keyword"> const override</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a782e47634f0726744c3520a9612985dd">m_remote_endpoint</a>;</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; }</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a5a9f54ba86fb0f3cd1e1d1854405e603"> 75</a></span>&#160; boost::optional &lt;beast::IP::Endpoint&gt; <span class="keyword">const</span>&amp; <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a5a9f54ba86fb0f3cd1e1d1854405e603">local_endpoint</a> ()<span class="keyword"> const override</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a9cdda55b97be3852ffc255100eb714ee">m_local_endpoint</a>;</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; }</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a11a7c63433bf952b010d686ace89932d"> 80</a></span>&#160; boost::optional &lt;PublicKey&gt; <span class="keyword">const</span>&amp; <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a11a7c63433bf952b010d686ace89932d">public_key</a> ()<span class="keyword"> const override</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a1a0553d8d93a884ba86f2ebf59d2d326">m_public_key</a>;</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; }</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a06e001b9743633398b6273c0cc4a545e"> 85</a></span>&#160; boost::optional&lt;std::uint16_t&gt; <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a06e001b9743633398b6273c0cc4a545e">listening_port</a> ()<span class="keyword"> const override</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> <span class="keyword">const</span> value = <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a42f04261d965a93ba149527487cfd91e">m_listening_port</a>;</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordflow">if</span> (value == <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#ad7fcb9761487c13043249af981f1a1cf">unknownPort</a>)</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keywordflow">return</span> boost::none;</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keywordflow">return</span> value;</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; }</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; </div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a9cba303e65c340a07cbbb9e9e390e52a"> 93</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a9cba303e65c340a07cbbb9e9e390e52a">set_listening_port</a> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> port)</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; {</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a42f04261d965a93ba149527487cfd91e">m_listening_port</a> = port;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; }</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a2447cfcf638cf3b11372f282dbd0d2e2"> 98</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a2447cfcf638cf3b11372f282dbd0d2e2">local_endpoint</a> (<a class="code" href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a> <span class="keyword">const</span>&amp; endpoint)</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; {</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a9cdda55b97be3852ffc255100eb714ee">m_local_endpoint</a> = endpoint;</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; }</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#ada08d3a7289fa19505f3b0e839ddfcc6"> 103</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#ada08d3a7289fa19505f3b0e839ddfcc6">remote_endpoint</a> (<a class="code" href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a> <span class="keyword">const</span>&amp; endpoint)</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; {</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a782e47634f0726744c3520a9612985dd">m_remote_endpoint</a> = endpoint;</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; }</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a6abfe1b12ae114620d736b186c03f873"> 108</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a6abfe1b12ae114620d736b186c03f873">public_key</a> (<a class="code" href="classripple_1_1PublicKey.html">PublicKey</a> <span class="keyword">const</span>&amp; key)</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; {</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a1a0553d8d93a884ba86f2ebf59d2d326">m_public_key</a> = key;</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; }</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a7c05d205b55643c53b2354716a812cef"> 113</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a7c05d205b55643c53b2354716a812cef">reserved</a> (<span class="keywordtype">bool</span> reserved_)</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; {</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a6bc1462b08361b885eae6611eda6ca3a">m_reserved</a> = reserved_;</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; }</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="comment">//--------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; </div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#ab05ca3e1236ac84b172b6f49fb66de52">state</a> (<a class="code" href="classripple_1_1PeerFinder_1_1Slot.html#aef66a8665535aa45b5b8a628be9bc1fe">State</a> state_);</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a612a0b488db6ae33b07a725508383636">activate</a> (<a class="code" href="classbeast_1_1abstract__clock.html#a4e16832b0bdf9392c5138bbbde024d8e">clock_type::time_point</a> <span class="keyword">const</span>&amp; now);</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; </div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="comment">// &quot;Memberspace&quot;</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="comment">//</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="comment">// The set of all recent addresses that we have seen from this peer.</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="comment">// We try to avoid sending a peer the same addresses they gave us.</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="comment">//</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html"> 129</a></span>&#160; <span class="keyword">class </span><a class="code" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html">recent_t</a></div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; {</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keyword">explicit</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#a3c7d8089093e513b3f426f8059826901">recent_t</a> (<a class="code" href="classbeast_1_1abstract__clock.html">clock_type</a>&amp; clock);</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; </div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#a21e9e3b724b7e05b681aba72445cb6da">insert</a> (<a class="code" href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a> <span class="keyword">const</span>&amp; ep, <span class="keywordtype">int</span> hops);</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; </div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#a418ec1cbd4983abee140fc88ba124fa1">filter</a> (<a class="code" href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a> <span class="keyword">const</span>&amp; ep, <span class="keywordtype">int</span> hops);</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; </div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#aa51c8ffe7a51c98cbf178690755e0469">expire</a> ();</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#a8ac11c6c11b15e6200067722d25e2a89"> 146</a></span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html">SlotImp</a>;</div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#a716be57b70a11f1d919ea3b1a405e042"> 147</a></span>&#160; <a class="code" href="classbeast_1_1detail_1_1aged__unordered__container.html">recent_type</a> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#a716be57b70a11f1d919ea3b1a405e042">cache</a>;</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; } <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a01ff8b2d09257fef99a606aadbd43ac9">recent</a>;</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a7a73abbfec636e917554b6fd5aab07fd"> 150</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a7a73abbfec636e917554b6fd5aab07fd">expire</a>()</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; {</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a01ff8b2d09257fef99a606aadbd43ac9">recent</a>.<a class="code" href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#aa51c8ffe7a51c98cbf178690755e0469">expire</a>();</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; }</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; </div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a6024e3ceb32896081ebcb3659887ba65"> 156</a></span>&#160; <span class="keywordtype">bool</span> <span class="keyword">const</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a6024e3ceb32896081ebcb3659887ba65">m_inbound</a>;</div>
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#aa646ec4ba4869195787249eef509ffd4"> 157</a></span>&#160; <span class="keywordtype">bool</span> <span class="keyword">const</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#aa646ec4ba4869195787249eef509ffd4">m_fixed</a>;</div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a6bc1462b08361b885eae6611eda6ca3a"> 158</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a6bc1462b08361b885eae6611eda6ca3a">m_reserved</a>;</div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#ad4eeb57b9bf2bc0c62196f2fb89ca902"> 159</a></span>&#160; <a class="code" href="classripple_1_1PeerFinder_1_1Slot.html#aef66a8665535aa45b5b8a628be9bc1fe">State</a> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#ad4eeb57b9bf2bc0c62196f2fb89ca902">m_state</a>;</div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a782e47634f0726744c3520a9612985dd"> 160</a></span>&#160; <a class="code" href="classbeast_1_1IP_1_1Endpoint.html">beast::IP::Endpoint</a> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a782e47634f0726744c3520a9612985dd">m_remote_endpoint</a>;</div>
<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a9cdda55b97be3852ffc255100eb714ee"> 161</a></span>&#160; boost::optional &lt;beast::IP::Endpoint&gt; <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a9cdda55b97be3852ffc255100eb714ee">m_local_endpoint</a>;</div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a1a0553d8d93a884ba86f2ebf59d2d326"> 162</a></span>&#160; boost::optional &lt;PublicKey&gt; <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a1a0553d8d93a884ba86f2ebf59d2d326">m_public_key</a>;</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; </div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#ad7fcb9761487c13043249af981f1a1cf"> 164</a></span>&#160; <span class="keyword">static</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::int32_t</a> constexpr <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#ad7fcb9761487c13043249af981f1a1cf">unknownPort</a> = -1;</div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a42f04261d965a93ba149527487cfd91e"> 165</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic &lt;std::int32_t&gt;</a> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a42f04261d965a93ba149527487cfd91e">m_listening_port</a>;</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; </div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="comment">// DEPRECATED public data members</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; </div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="comment">// Tells us if we checked the connection. Outbound connections</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="comment">// are always considered checked since we successfuly connected.</span></div>
<div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#ae14c209c0228c21fe2ed80d1fdf1750c"> 172</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#ae14c209c0228c21fe2ed80d1fdf1750c">checked</a>;</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; </div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <span class="comment">// Set to indicate if the connection can receive incoming at the</span></div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <span class="comment">// address advertised in mtENDPOINTS. Only valid if checked is true.</span></div>
<div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a5086727b1b17b47af39bf71d72960220"> 176</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a5086727b1b17b47af39bf71d72960220">canAccept</a>;</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; </div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="comment">// Set to indicate that a connection check for this peer is in</span></div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="comment">// progress. Valid always.</span></div>
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#a75c931619b3cf4b422663c46dcf52a62"> 180</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#a75c931619b3cf4b422663c46dcf52a62">connectivityCheckInProgress</a>;</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; </div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="comment">// The time after which we will accept mtENDPOINTS from the peer</span></div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="comment">// This is to prevent flooding or spamming. Receipt of mtENDPOINTS</span></div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="comment">// sooner than the allotted time should impose a load charge.</span></div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <span class="comment">//</span></div>
<div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="classripple_1_1PeerFinder_1_1SlotImp.html#ab1fd53bb8647951a8d95a97e536bd65e"> 186</a></span>&#160; <a class="code" href="classbeast_1_1abstract__clock.html#a4e16832b0bdf9392c5138bbbde024d8e">clock_type::time_point</a> <a class="code" href="classripple_1_1PeerFinder_1_1SlotImp.html#ab1fd53bb8647951a8d95a97e536bd65e">whenAcceptEndpoints</a>;</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160;};</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; </div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160;}</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;}</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; </div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a6bc1462b08361b885eae6611eda6ca3a"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a6bc1462b08361b885eae6611eda6ca3a">ripple::PeerFinder::SlotImp::m_reserved</a></div><div class="ttdeci">bool m_reserved</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00158">SlotImp.h:158</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a6598320a548e70247020e689a40ce1a3"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a6598320a548e70247020e689a40ce1a3">ripple::PeerFinder::SlotImp::inbound</a></div><div class="ttdeci">bool inbound() const override</div><div class="ttdoc">Returns true if this is an inbound connection.</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00050">SlotImp.h:50</a></div></div>
<div class="ttc" id="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt; SlotImp &gt;</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a7a73abbfec636e917554b6fd5aab07fd"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a7a73abbfec636e917554b6fd5aab07fd">ripple::PeerFinder::SlotImp::expire</a></div><div class="ttdeci">void expire()</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00150">SlotImp.h:150</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a11a7c63433bf952b010d686ace89932d"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a11a7c63433bf952b010d686ace89932d">ripple::PeerFinder::SlotImp::public_key</a></div><div class="ttdeci">boost::optional&lt; PublicKey &gt; const &amp; public_key() const override</div><div class="ttdoc">The peer's public key, when known.</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00080">SlotImp.h:80</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#l00129">SlotImp.cpp:129</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a06e001b9743633398b6273c0cc4a545e"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a06e001b9743633398b6273c0cc4a545e">ripple::PeerFinder::SlotImp::listening_port</a></div><div class="ttdeci">boost::optional&lt; std::uint16_t &gt; listening_port() const override</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00085">SlotImp.h:85</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_ae14c209c0228c21fe2ed80d1fdf1750c"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#ae14c209c0228c21fe2ed80d1fdf1750c">ripple::PeerFinder::SlotImp::checked</a></div><div class="ttdeci">bool checked</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00172">SlotImp.h:172</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#l00186">SlotImp.h:186</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a782e47634f0726744c3520a9612985dd"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a782e47634f0726744c3520a9612985dd">ripple::PeerFinder::SlotImp::m_remote_endpoint</a></div><div class="ttdeci">beast::IP::Endpoint m_remote_endpoint</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00160">SlotImp.h:160</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_1_1recent__t_html"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html">ripple::PeerFinder::SlotImp::recent_t</a></div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00129">SlotImp.h:129</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_aa646ec4ba4869195787249eef509ffd4"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#aa646ec4ba4869195787249eef509ffd4">ripple::PeerFinder::SlotImp::m_fixed</a></div><div class="ttdeci">const bool m_fixed</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00157">SlotImp.h:157</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_ada08d3a7289fa19505f3b0e839ddfcc6"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#ada08d3a7289fa19505f3b0e839ddfcc6">ripple::PeerFinder::SlotImp::remote_endpoint</a></div><div class="ttdeci">void remote_endpoint(beast::IP::Endpoint const &amp;endpoint)</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00103">SlotImp.h:103</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#l00159">SlotImp.h:159</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a1a0553d8d93a884ba86f2ebf59d2d326"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a1a0553d8d93a884ba86f2ebf59d2d326">ripple::PeerFinder::SlotImp::m_public_key</a></div><div class="ttdeci">boost::optional&lt; PublicKey &gt; m_public_key</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00162">SlotImp.h:162</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 &amp;clock)</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8cpp_source.html#l00096">SlotImp.cpp:96</a></div></div>
<div class="ttc" id="aclassripple_1_1PublicKey_html"><div class="ttname"><a href="classripple_1_1PublicKey.html">ripple::PublicKey</a></div><div class="ttdoc">A public key.</div><div class="ttdef"><b>Definition:</b> <a href="PublicKey_8h_source.html#l00059">PublicKey.h:59</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a9cdda55b97be3852ffc255100eb714ee"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a9cdda55b97be3852ffc255100eb714ee">ripple::PeerFinder::SlotImp::m_local_endpoint</a></div><div class="ttdeci">boost::optional&lt; beast::IP::Endpoint &gt; m_local_endpoint</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00161">SlotImp.h:161</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a2447cfcf638cf3b11372f282dbd0d2e2"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a2447cfcf638cf3b11372f282dbd0d2e2">ripple::PeerFinder::SlotImp::local_endpoint</a></div><div class="ttdeci">void local_endpoint(beast::IP::Endpoint const &amp;endpoint)</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00098">SlotImp.h:98</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a5086727b1b17b47af39bf71d72960220"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a5086727b1b17b47af39bf71d72960220">ripple::PeerFinder::SlotImp::canAccept</a></div><div class="ttdeci">bool canAccept</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00176">SlotImp.h:176</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a6abfe1b12ae114620d736b186c03f873"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a6abfe1b12ae114620d736b186c03f873">ripple::PeerFinder::SlotImp::public_key</a></div><div class="ttdeci">void public_key(PublicKey const &amp;key)</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00108">SlotImp.h:108</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 &amp;local_endpoint, beast::IP::Endpoint const &amp;remote_endpoint, bool fixed, clock_type &amp;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="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="aatomic_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/atomic.html">atomic</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="Slot_8h_source.html#l00037">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&lt; std::chrono::steady_clock &gt;</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_1_1recent__t_html_a716be57b70a11f1d919ea3b1a405e042"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp_1_1recent__t.html#a716be57b70a11f1d919ea3b1a405e042">ripple::PeerFinder::SlotImp::recent_t::cache</a></div><div class="ttdeci">recent_type cache</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00147">SlotImp.h:147</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_ad7fcb9761487c13043249af981f1a1cf"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#ad7fcb9761487c13043249af981f1a1cf">ripple::PeerFinder::SlotImp::unknownPort</a></div><div class="ttdeci">static constexpr std::int32_t unknownPort</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00164">SlotImp.h:164</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a7c05d205b55643c53b2354716a812cef"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a7c05d205b55643c53b2354716a812cef">ripple::PeerFinder::SlotImp::reserved</a></div><div class="ttdeci">void reserved(bool reserved_)</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00113">SlotImp.h:113</a></div></div>
<div class="ttc" id="aclassbeast_1_1detail_1_1aged__unordered__container_html"><div class="ttname"><a href="classbeast_1_1detail_1_1aged__unordered__container.html">beast::detail::aged_unordered_container</a></div><div class="ttdoc">Associative container where each element is also indexed by time.</div><div class="ttdef"><b>Definition:</b> <a href="aged__unordered__container_8h_source.html#l00088">aged_unordered_container.h:88</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#l00156">SlotImp.h:156</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 &amp;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#l00117">SlotImp.cpp:117</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a01ff8b2d09257fef99a606aadbd43ac9"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a01ff8b2d09257fef99a606aadbd43ac9">ripple::PeerFinder::SlotImp::recent</a></div><div class="ttdeci">class ripple::PeerFinder::SlotImp::recent_t recent</div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a42f04261d965a93ba149527487cfd91e"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a42f04261d965a93ba149527487cfd91e">ripple::PeerFinder::SlotImp::m_listening_port</a></div><div class="ttdeci">std::atomic&lt; std::int32_t &gt; m_listening_port</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00165">SlotImp.h:165</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a9cba303e65c340a07cbbb9e9e390e52a"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a9cba303e65c340a07cbbb9e9e390e52a">ripple::PeerFinder::SlotImp::set_listening_port</a></div><div class="ttdeci">void set_listening_port(std::uint16_t port)</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00093">SlotImp.h:93</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 &amp;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#l00102">SlotImp.cpp:102</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a5a9f54ba86fb0f3cd1e1d1854405e603"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a5a9f54ba86fb0f3cd1e1d1854405e603">ripple::PeerFinder::SlotImp::local_endpoint</a></div><div class="ttdeci">boost::optional&lt; beast::IP::Endpoint &gt; const &amp; local_endpoint() const override</div><div class="ttdoc">The local endpoint of the socket, when known.</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00075">SlotImp.h:75</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#l00039">IPEndpoint.h:39</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#l00065">SlotImp.h:65</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html">ripple::PeerFinder::SlotImp</a></div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00033">SlotImp.h:33</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_af882bbe7500bdb1d12376193d9dea560"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#af882bbe7500bdb1d12376193d9dea560">ripple::PeerFinder::SlotImp::reserved</a></div><div class="ttdeci">bool reserved() const override</div><div class="ttdoc">Returns true if this is a reserved connection.</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00060">SlotImp.h:60</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 &amp;now)</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8cpp_source.html#l00081">SlotImp.cpp:81</a></div></div>
<div class="ttc" id="aclassbeast_1_1abstract__clock_html_a4e16832b0bdf9392c5138bbbde024d8e"><div class="ttname"><a href="classbeast_1_1abstract__clock.html#a4e16832b0bdf9392c5138bbbde024d8e">beast::abstract_clock&lt; std::chrono::steady_clock &gt;::time_point</a></div><div class="ttdeci">typename std::chrono::steady_clock ::time_point time_point</div><div class="ttdef"><b>Definition:</b> <a href="abstract__clock_8h_source.html#l00063">abstract_clock.h:63</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a75c931619b3cf4b422663c46dcf52a62"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a75c931619b3cf4b422663c46dcf52a62">ripple::PeerFinder::SlotImp::connectivityCheckInProgress</a></div><div class="ttdeci">bool connectivityCheckInProgress</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00180">SlotImp.h:180</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_a3f6927b6e3dca316762263d2331af7d1"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#a3f6927b6e3dca316762263d2331af7d1">ripple::PeerFinder::SlotImp::fixed</a></div><div class="ttdeci">bool fixed() const override</div><div class="ttdoc">Returns true if this is a fixed connection.</div><div class="ttdef"><b>Definition:</b> <a href="SlotImp_8h_source.html#l00055">SlotImp.h:55</a></div></div>
<div class="ttc" id="aclassripple_1_1PeerFinder_1_1SlotImp_html_aebec488e6aea6197e4f813914710cafa"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1SlotImp.html#aebec488e6aea6197e4f813914710cafa">ripple::PeerFinder::SlotImp::remote_endpoint</a></div><div class="ttdeci">beast::IP::Endpoint const &amp; remote_endpoint() const override</div><div class="ttdoc">The remote endpoint of socket.</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"><div class="ttname"><a href="classripple_1_1PeerFinder_1_1Slot.html">ripple::PeerFinder::Slot</a></div><div class="ttdoc">Properties and state associated with a peer to peer overlay connection.</div><div class="ttdef"><b>Definition:</b> <a href="Slot_8h_source.html#l00032">Slot.h:32</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>