This commit is contained in:
manojsdoshi
2020-04-24 01:09:47 +00:00
parent 4ad595bf18
commit 430f6c0cf3
2864 changed files with 304301 additions and 292875 deletions

View File

@@ -92,38 +92,41 @@ $(function() {
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#define BEAST_NET_IPADDRESSV4_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/beast/hash/hash_append.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cstdint.html">cstdint</a>&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/functional.html">functional</a>&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/ios.html">ios</a>&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/string.html">string</a>&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/utility.html">utility</a>&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;boost/asio/ip/address_v4.hpp&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;boost/asio/ip/address_v4.hpp&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cstdint.html">cstdint</a>&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/functional.html">functional</a>&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/ios.html">ios</a>&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/string.html">string</a>&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/utility.html">utility</a>&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacebeast.html">beast</a> {</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="keyword">namespace </span>IP {</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="namespacebeast_1_1IP.html#ad2074ed8068d52be937bf6895918bcb5"> 34</a></span>&#160;<span class="keyword">using</span> <a class="code" href="namespacebeast_1_1IP.html#ad2074ed8068d52be937bf6895918bcb5">AddressV4</a> = boost::asio::ip::address_v4;</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="namespacebeast_1_1IP.html#aab5302f0a96d55a125cd4e0dd5d03288">is_private</a> (<a class="code" href="namespacebeast_1_1IP.html#ad2074ed8068d52be937bf6895918bcb5">AddressV4</a> <span class="keyword">const</span>&amp; addr);</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="namespacebeast_1_1IP.html#af5a04b94fad7e242325069c5f730bde6">is_public</a> (<a class="code" href="namespacebeast_1_1IP.html#ad2074ed8068d52be937bf6895918bcb5">AddressV4</a> <span class="keyword">const</span>&amp; addr);</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="keywordtype">char</span> <a class="code" href="namespacebeast_1_1IP.html#ab6d4810c9fcab20d3ad143fd2df49cd5">get_class</a> (<a class="code" href="namespacebeast_1_1IP.html#ad2074ed8068d52be937bf6895918bcb5">AddressV4</a> <span class="keyword">const</span>&amp; address);</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;}</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;}</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="keywordtype">bool</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<a class="code" href="namespacebeast_1_1IP.html#aab5302f0a96d55a125cd4e0dd5d03288">is_private</a>(<a class="code" href="namespacebeast_1_1IP.html#ad2074ed8068d52be937bf6895918bcb5">AddressV4</a> <span class="keyword">const</span>&amp; addr);</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="keywordtype">bool</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<a class="code" href="namespacebeast_1_1IP.html#af5a04b94fad7e242325069c5f730bde6">is_public</a>(<a class="code" href="namespacebeast_1_1IP.html#ad2074ed8068d52be937bf6895918bcb5">AddressV4</a> <span class="keyword">const</span>&amp; addr);</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="keywordtype">char</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<a class="code" href="namespacebeast_1_1IP.html#ab6d4810c9fcab20d3ad143fd2df49cd5">get_class</a>(<a class="code" href="namespacebeast_1_1IP.html#ad2074ed8068d52be937bf6895918bcb5">AddressV4</a> <span class="keyword">const</span>&amp; address);</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"> 50</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;} <span class="comment">// namespace IP</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;} <span class="comment">// namespace beast</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="autility_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/utility.html">utility</a></div></div>
<div class="ttc" id="afunctional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/functional.html">functional</a></div></div>
<div class="ttc" id="anamespacebeast_1_1IP_html_ab6d4810c9fcab20d3ad143fd2df49cd5"><div class="ttname"><a href="namespacebeast_1_1IP.html#ab6d4810c9fcab20d3ad143fd2df49cd5">beast::IP::get_class</a></div><div class="ttdeci">char get_class(AddressV4 const &amp;addr)</div><div class="ttdoc">Returns the address class for the given address.</div><div class="ttdef"><b>Definition:</b> <a href="IPAddressV4_8cpp_source.html#l00044">IPAddressV4.cpp:44</a></div></div>
<div class="ttc" id="anamespacebeast_1_1IP_html_aab5302f0a96d55a125cd4e0dd5d03288"><div class="ttname"><a href="namespacebeast_1_1IP.html#aab5302f0a96d55a125cd4e0dd5d03288">beast::IP::is_private</a></div><div class="ttdeci">bool is_private(AddressV4 const &amp;addr)</div><div class="ttdoc">Returns true if the address is a private unroutable address.</div><div class="ttdef"><b>Definition:</b> <a href="IPAddressV4_8cpp_source.html#l00028">IPAddressV4.cpp:28</a></div></div>
<div class="ttc" id="anamespacebeast_1_1IP_html_ab6d4810c9fcab20d3ad143fd2df49cd5"><div class="ttname"><a href="namespacebeast_1_1IP.html#ab6d4810c9fcab20d3ad143fd2df49cd5">beast::IP::get_class</a></div><div class="ttdeci">char get_class(AddressV4 const &amp;addr)</div><div class="ttdoc">Returns the address class for the given address.</div><div class="ttdef"><b>Definition:</b> <a href="IPAddressV4_8cpp_source.html#l00047">IPAddressV4.cpp:47</a></div></div>
<div class="ttc" id="anamespacebeast_1_1IP_html_aab5302f0a96d55a125cd4e0dd5d03288"><div class="ttname"><a href="namespacebeast_1_1IP.html#aab5302f0a96d55a125cd4e0dd5d03288">beast::IP::is_private</a></div><div class="ttdeci">bool is_private(AddressV4 const &amp;addr)</div><div class="ttdoc">Returns true if the address is a private unroutable address.</div><div class="ttdef"><b>Definition:</b> <a href="IPAddressV4_8cpp_source.html#l00029">IPAddressV4.cpp:29</a></div></div>
<div class="ttc" id="acstdint_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cstdint.html">cstdint</a></div></div>
<div class="ttc" id="anamespacebeast_1_1IP_html_af5a04b94fad7e242325069c5f730bde6"><div class="ttname"><a href="namespacebeast_1_1IP.html#af5a04b94fad7e242325069c5f730bde6">beast::IP::is_public</a></div><div class="ttdeci">bool is_public(AddressV4 const &amp;addr)</div><div class="ttdoc">Returns true if the address is a public routable address.</div><div class="ttdef"><b>Definition:</b> <a href="IPAddressV4_8cpp_source.html#l00037">IPAddressV4.cpp:37</a></div></div>
<div class="ttc" id="anamespacebeast_1_1IP_html_af5a04b94fad7e242325069c5f730bde6"><div class="ttname"><a href="namespacebeast_1_1IP.html#af5a04b94fad7e242325069c5f730bde6">beast::IP::is_public</a></div><div class="ttdeci">bool is_public(AddressV4 const &amp;addr)</div><div class="ttdoc">Returns true if the address is a public routable address.</div><div class="ttdef"><b>Definition:</b> <a href="IPAddressV4_8cpp_source.html#l00041">IPAddressV4.cpp:41</a></div></div>
<div class="ttc" id="anamespacebeast_1_1IP_html_ad2074ed8068d52be937bf6895918bcb5"><div class="ttname"><a href="namespacebeast_1_1IP.html#ad2074ed8068d52be937bf6895918bcb5">beast::IP::AddressV4</a></div><div class="ttdeci">boost::asio::ip::address_v4 AddressV4</div><div class="ttdef"><b>Definition:</b> <a href="IPAddressV4_8h_source.html#l00034">IPAddressV4.h:34</a></div></div>
<div class="ttc" id="aios_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/ios.html">ios</a></div></div>
<div class="ttc" id="anamespacebeast_html"><div class="ttname"><a href="namespacebeast.html">beast</a></div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00582">base_uint.h:582</a></div></div>
<div class="ttc" id="anamespacebeast_html"><div class="ttname"><a href="namespacebeast.html">beast</a></div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00646">base_uint.h:646</a></div></div>
<div class="ttc" id="astring_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/string.html">string</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>