Files
rippled/JSONRPCClient_8cpp_source.html
2025-08-19 09:49:50 -07:00

319 lines
51 KiB
HTML

<!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" lang="en-US">
<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.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: JSONRPCClient.cpp 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 id="projectrow">
<td id="projectalign">
<div id="projectname">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;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()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_120ed4da3e3217b1e7fc0b4f48568e79.html">test</a></li><li class="navelem"><a class="el" href="dir_ffd09a46879067226d7ad9ce2abbf5ef.html">jtx</a></li><li class="navelem"><a class="el" href="dir_b6e1af3af959840d44bdaef0b719b3f9.html">impl</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">JSONRPCClient.cpp</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">/*</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> Copyright (c) 2016 Ripple Labs Inc.</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"></span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"></span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment">*/</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment">//==============================================================================</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#include &lt;test/jtx/JSONRPCClient.h&gt;</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#include &lt;xrpl/json/json_reader.h&gt;</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include &lt;xrpl/json/to_string.h&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include &lt;xrpl/protocol/jss.h&gt;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include &lt;xrpl/server/Port.h&gt;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &lt;boost/asio.hpp&gt;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include &lt;boost/beast/http/dynamic_body.hpp&gt;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include &lt;boost/beast/http/message.hpp&gt;</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include &lt;boost/beast/http/read.hpp&gt;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include &lt;boost/beast/http/string_body.hpp&gt;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#include &lt;boost/beast/http/write.hpp&gt;</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><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 id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="keyword">namespace </span>test {</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> </div>
<div class="foldopen" id="foldopen00039" data-start="{" data-end="};">
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html"> 39</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1JSONRPCClient.html">JSONRPCClient</a> : <span class="keyword">public</span> <a class="code hl_class" href="classripple_1_1test_1_1AbstractClient.html">AbstractClient</a></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span>{</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">static</span> boost::asio::ip::tcp::endpoint</div>
<div class="foldopen" id="foldopen00042" data-start="{" data-end="}">
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#a238a99997981855b3320c948daa624c2"> 42</a></span> <a class="code hl_function" href="classripple_1_1test_1_1JSONRPCClient.html#a238a99997981855b3320c948daa624c2">getEndpoint</a>(<a class="code hl_class" href="classripple_1_1BasicConfig.html">BasicConfig</a> <span class="keyword">const</span>&amp; cfg)</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> {</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">auto</span>&amp; log = <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/io/cerr.html">std::cerr</a>;</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <a class="code hl_struct" href="structripple_1_1ParsedPort.html">ParsedPort</a> common;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <a class="code hl_function" href="namespaceripple.html#a5b67e65f60cd241099149dc88f1e4bfd">parse_Port</a>(common, cfg[<span class="stringliteral">&quot;server&quot;</span>], log);</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>&amp; name : cfg.<a class="code hl_function" href="classripple_1_1BasicConfig.html#a60aca585d76b1121dd4f72b358729456">section</a>(<span class="stringliteral">&quot;server&quot;</span>).<a class="code hl_function" href="classripple_1_1Section.html#ab5174adf8d37057817e90eb7adeaf7c3">values</a>())</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> {</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="keywordflow">if</span> (!cfg.<a class="code hl_function" href="classripple_1_1BasicConfig.html#a09b31b8ed3c769b4c23b040c3d4798ed">exists</a>(name))</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="keywordflow">continue</span>;</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <a class="code hl_struct" href="structripple_1_1ParsedPort.html">ParsedPort</a> pp;</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <a class="code hl_function" href="namespaceripple.html#a5b67e65f60cd241099149dc88f1e4bfd">parse_Port</a>(pp, cfg[name], log);</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keywordflow">if</span> (pp.<a class="code hl_variable" href="structripple_1_1ParsedPort.html#a6f5cbe8976ce63af96dccfa383874ff8">protocol</a>.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/set/count.html">count</a>(<span class="stringliteral">&quot;http&quot;</span>) == 0)</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="keywordflow">continue</span>;</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keyword">using namespace </span>boost::asio::ip;</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keywordflow">if</span> (pp.<a class="code hl_variable" href="structripple_1_1ParsedPort.html#ae32c2f5693e35df49944be81a716f2c3">ip</a> &amp;&amp; pp.<a class="code hl_variable" href="structripple_1_1ParsedPort.html#ae32c2f5693e35df49944be81a716f2c3">ip</a>-&gt;is_unspecified())</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> *pp.<a class="code hl_variable" href="structripple_1_1ParsedPort.html#ae32c2f5693e35df49944be81a716f2c3">ip</a> = pp.<a class="code hl_variable" href="structripple_1_1ParsedPort.html#ae32c2f5693e35df49944be81a716f2c3">ip</a>-&gt;is_v6() ? address{address_v6::loopback()}</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> : address{address_v4::loopback()};</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keywordflow">if</span> (!pp.<a class="code hl_variable" href="structripple_1_1ParsedPort.html#a379a41d37bcc5806794320915b6d151e">port</a>)</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> Throw&lt;std::runtime_error&gt;(<span class="stringliteral">&quot;Use fixConfigPorts with auto ports&quot;</span>);</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="keywordflow">return</span> {*pp.<a class="code hl_variable" href="structripple_1_1ParsedPort.html#ae32c2f5693e35df49944be81a716f2c3">ip</a>, *pp.<a class="code hl_variable" href="structripple_1_1ParsedPort.html#a379a41d37bcc5806794320915b6d151e">port</a>};</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> }</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> Throw&lt;std::runtime_error&gt;(<span class="stringliteral">&quot;Missing HTTP port&quot;</span>);</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keywordflow">return</span> {}; <span class="comment">// Silence compiler control paths return value warning</span></div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> }</div>
</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span> ConstBufferSequence&gt;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keyword">static</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
<div class="foldopen" id="foldopen00071" data-start="{" data-end="}">
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#aaa94ed912c4e5cd98a7092180c261134"> 71</a></span> <a class="code hl_function" href="classripple_1_1test_1_1JSONRPCClient.html#aaa94ed912c4e5cd98a7092180c261134">buffer_string</a>(ConstBufferSequence <span class="keyword">const</span>&amp; b)</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> {</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keyword">using namespace </span><a class="code hl_namespace" href="namespaceboost_1_1asio.html">boost::asio</a>;</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> s;</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> s.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/string/basic_string/resize.html">resize</a>(buffer_size(b));</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> buffer_copy(buffer(&amp;s[0], s.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/string/basic_string/size.html">size</a>()), b);</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordflow">return</span> s;</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> }</div>
</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#a6c2b26ca348906310516c38e21d5b7bb"> 80</a></span> boost::asio::ip::tcp::endpoint <a class="code hl_variable" href="classripple_1_1test_1_1JSONRPCClient.html#a6c2b26ca348906310516c38e21d5b7bb">ep_</a>;</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#aafc3f150dd9dffe12a5d892d5c38a123"> 81</a></span> boost::asio::io_service <a class="code hl_variable" href="classripple_1_1test_1_1JSONRPCClient.html#aafc3f150dd9dffe12a5d892d5c38a123">ios_</a>;</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#a6805e33dff774718ebc8f9455de5d390"> 82</a></span> boost::asio::ip::tcp::socket <a class="code hl_variable" href="classripple_1_1test_1_1JSONRPCClient.html#a6805e33dff774718ebc8f9455de5d390">stream_</a>;</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#ad4310d689b11ac6183901576cbb9f5c0"> 83</a></span> boost::beast::multi_buffer <a class="code hl_variable" href="classripple_1_1test_1_1JSONRPCClient.html#ad4310d689b11ac6183901576cbb9f5c0">bin_</a>;</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#a72e462c62df648fd930fa1d7e6268a33"> 84</a></span> boost::beast::multi_buffer <a class="code hl_variable" href="classripple_1_1test_1_1JSONRPCClient.html#a72e462c62df648fd930fa1d7e6268a33">bout_</a>;</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#ab67da091f0d42d4ba0722dcfe596a261"> 85</a></span> <span class="keywordtype">unsigned</span> <a class="code hl_variable" href="classripple_1_1test_1_1JSONRPCClient.html#ab67da091f0d42d4ba0722dcfe596a261">rpc_version_</a>;</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span><span class="keyword">public</span>:</div>
<div class="foldopen" id="foldopen00088" data-start="{" data-end="}">
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#a97e5f08d509240c3d0f0b5be2c16e95c"> 88</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="classripple_1_1test_1_1JSONRPCClient.html#a97e5f08d509240c3d0f0b5be2c16e95c">JSONRPCClient</a>(<a class="code hl_class" href="classripple_1_1Config.html">Config</a> <span class="keyword">const</span>&amp; cfg, <span class="keywordtype">unsigned</span> rpc_version)</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> : <a class="code hl_variable" href="classripple_1_1test_1_1JSONRPCClient.html#a6c2b26ca348906310516c38e21d5b7bb">ep_</a>(<a class="code hl_function" href="classripple_1_1test_1_1JSONRPCClient.html#a238a99997981855b3320c948daa624c2">getEndpoint</a>(cfg)), <a class="code hl_variable" href="classripple_1_1test_1_1JSONRPCClient.html#a6805e33dff774718ebc8f9455de5d390">stream_</a>(<a class="code hl_variable" href="classripple_1_1test_1_1JSONRPCClient.html#aafc3f150dd9dffe12a5d892d5c38a123">ios_</a>), <a class="code hl_variable" href="classripple_1_1test_1_1JSONRPCClient.html#ab67da091f0d42d4ba0722dcfe596a261">rpc_version_</a>(rpc_version)</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> {</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <a class="code hl_variable" href="classripple_1_1test_1_1JSONRPCClient.html#a6805e33dff774718ebc8f9455de5d390">stream_</a>.connect(<a class="code hl_variable" href="classripple_1_1test_1_1JSONRPCClient.html#a6c2b26ca348906310516c38e21d5b7bb">ep_</a>);</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> }</div>
</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> </div>
<div class="foldopen" id="foldopen00094" data-start="{" data-end="}">
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#a47e4735d3eb4605b91b80e3b661db3b7"> 94</a></span> <a class="code hl_function" href="classripple_1_1test_1_1JSONRPCClient.html#a47e4735d3eb4605b91b80e3b661db3b7">~JSONRPCClient</a>()<span class="keyword"> override</span></div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="comment">// stream_.shutdown(boost::asio::ip::tcp::socket::shutdown_both);</span></div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="comment">// stream_.close();</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="comment">/*</span></div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span><span class="comment"> Return value is an Object type with up to three keys:</span></div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span><span class="comment"> status</span></div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span><span class="comment"> error</span></div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span><span class="comment"> result</span></div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span><span class="comment"> */</span></div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a></div>
<div class="foldopen" id="foldopen00107" data-start="{" data-end="}">
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#a9875ee0122004b7a8592fa9c42c2f054"> 107</a></span> <a class="code hl_function" href="classripple_1_1test_1_1JSONRPCClient.html#a9875ee0122004b7a8592fa9c42c2f054">invoke</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; cmd, <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a> <span class="keyword">const</span>&amp; params)<span class="keyword"> override</span></div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keyword">using namespace </span>boost::beast::http;</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <span class="keyword">using namespace </span><a class="code hl_namespace" href="namespaceboost_1_1asio.html">boost::asio</a>;</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keyword">using namespace </span>std::string_literals;</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> </div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> request&lt;string_body&gt; req;</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> req.method(boost::beast::http::verb::post);</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> req.target(<span class="stringliteral">&quot;/&quot;</span>);</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> req.version(11);</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> req.insert(<span class="stringliteral">&quot;Content-Type&quot;</span>, <span class="stringliteral">&quot;application/json; charset=UTF-8&quot;</span>);</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> {</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/io/basic_ostringstream.html">std::ostringstream</a> ostr;</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> ostr &lt;&lt; <a class="code hl_variable" href="classripple_1_1test_1_1JSONRPCClient.html#a6c2b26ca348906310516c38e21d5b7bb">ep_</a>;</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> req.insert(<span class="stringliteral">&quot;Host&quot;</span>, ostr.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/io/basic_ostringstream/str.html">str</a>());</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> }</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> {</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a> jr;</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> jr[jss::method] = cmd;</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="classripple_1_1test_1_1JSONRPCClient.html#ab67da091f0d42d4ba0722dcfe596a261">rpc_version_</a> == 2)</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> jr[jss::jsonrpc] = <span class="stringliteral">&quot;2.0&quot;</span>;</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> jr[jss::ripplerpc] = <span class="stringliteral">&quot;2.0&quot;</span>;</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> jr[jss::id] = 5;</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> }</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="keywordflow">if</span> (params)</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> {</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a>&amp; ja = jr[jss::params] = <a class="code hl_enumvalue" href="namespaceJson.html#a7d654b75c16a57007925868e38212b4eadc8f264f36b55b063c78126b335415f4">Json::arrayValue</a>;</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> ja.<a class="code hl_function" href="classJson_1_1Value.html#a21526b61dea2a1771030473e6248621e">append</a>(params);</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> }</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> req.body() = <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(jr);</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> req.prepare_payload();</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> write(<a class="code hl_variable" href="classripple_1_1test_1_1JSONRPCClient.html#a6805e33dff774718ebc8f9455de5d390">stream_</a>, req);</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> response&lt;dynamic_body&gt; res;</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> read(<a class="code hl_variable" href="classripple_1_1test_1_1JSONRPCClient.html#a6805e33dff774718ebc8f9455de5d390">stream_</a>, <a class="code hl_variable" href="classripple_1_1test_1_1JSONRPCClient.html#ad4310d689b11ac6183901576cbb9f5c0">bin_</a>, res);</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> </div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <a class="code hl_class" href="classJson_1_1Reader.html">Json::Reader</a> jr;</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a> jv;</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> jr.<a class="code hl_function" href="classJson_1_1Reader.html#a8ee4d40504e4f8b069745d762ab4d78c">parse</a>(<a class="code hl_function" href="classripple_1_1test_1_1JSONRPCClient.html#aaa94ed912c4e5cd98a7092180c261134">buffer_string</a>(res.body().data()), jv);</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <span class="keywordflow">if</span> (jv[<span class="stringliteral">&quot;result&quot;</span>].isMember(<span class="stringliteral">&quot;error&quot;</span>))</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> jv[<span class="stringliteral">&quot;error&quot;</span>] = jv[<span class="stringliteral">&quot;result&quot;</span>][<span class="stringliteral">&quot;error&quot;</span>];</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <span class="keywordflow">if</span> (jv[<span class="stringliteral">&quot;result&quot;</span>].isMember(<span class="stringliteral">&quot;status&quot;</span>))</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> jv[<span class="stringliteral">&quot;status&quot;</span>] = jv[<span class="stringliteral">&quot;result&quot;</span>][<span class="stringliteral">&quot;status&quot;</span>];</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="keywordflow">return</span> jv;</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> }</div>
</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> </div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="keywordtype">unsigned</span></div>
<div class="foldopen" id="foldopen00156" data-start="{" data-end="}">
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#a3e9907c3c05d837110db13178304824f"> 156</a></span> <a class="code hl_function" href="classripple_1_1test_1_1JSONRPCClient.html#a3e9907c3c05d837110db13178304824f">version</a>()<span class="keyword"> const override</span></div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1JSONRPCClient.html#ab67da091f0d42d4ba0722dcfe596a261">rpc_version_</a>;</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> }</div>
</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span>};</div>
</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> </div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr&lt;AbstractClient&gt;</a></div>
<div class="foldopen" id="foldopen00163" data-start="{" data-end="}">
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"><a class="line" href="namespaceripple_1_1test.html#add7f8e2b06ca954ef33e5a0cb1fde85c"> 163</a></span><a class="code hl_function" href="namespaceripple_1_1test.html#add7f8e2b06ca954ef33e5a0cb1fde85c">makeJSONRPCClient</a>(<a class="code hl_class" href="classripple_1_1Config.html">Config</a> <span class="keyword">const</span>&amp; cfg, <span class="keywordtype">unsigned</span> rpc_version)</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="keywordflow">return</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::make_unique&lt;JSONRPCClient&gt;</a>(cfg, rpc_version);</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span>}</div>
</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> </div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span>} <span class="comment">// namespace test</span></div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span>} <span class="comment">// namespace ripple</span></div>
<div class="ttc" id="abasic_ostringstream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostringstream.html">std::ostringstream</a></div></div>
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div></div>
<div class="ttc" id="acerr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/cerr.html">std::cerr</a></div></div>
<div class="ttc" id="aclassJson_1_1Reader_html"><div class="ttname"><a href="classJson_1_1Reader.html">Json::Reader</a></div><div class="ttdoc">Unserialize a JSON document into a Value.</div><div class="ttdef"><b>Definition</b> <a href="json__reader_8h_source.html#l00038">json_reader.h:39</a></div></div>
<div class="ttc" id="aclassJson_1_1Reader_html_a8ee4d40504e4f8b069745d762ab4d78c"><div class="ttname"><a href="classJson_1_1Reader.html#a8ee4d40504e4f8b069745d762ab4d78c">Json::Reader::parse</a></div><div class="ttdeci">bool parse(std::string const &amp;document, Value &amp;root)</div><div class="ttdoc">Read a Value from a JSON document.</div><div class="ttdef"><b>Definition</b> <a href="json__reader_8cpp_source.html#l00078">json_reader.cpp:78</a></div></div>
<div class="ttc" id="aclassJson_1_1Value_html"><div class="ttname"><a href="classJson_1_1Value.html">Json::Value</a></div><div class="ttdoc">Represents a JSON value.</div><div class="ttdef"><b>Definition</b> <a href="json__value_8h_source.html#l00148">json_value.h:149</a></div></div>
<div class="ttc" id="aclassJson_1_1Value_html_a21526b61dea2a1771030473e6248621e"><div class="ttname"><a href="classJson_1_1Value.html#a21526b61dea2a1771030473e6248621e">Json::Value::append</a></div><div class="ttdeci">Value &amp; append(Value const &amp;value)</div><div class="ttdoc">Append value to array at the end.</div><div class="ttdef"><b>Definition</b> <a href="json__value_8cpp_source.html#l00910">json_value.cpp:910</a></div></div>
<div class="ttc" id="aclassripple_1_1BasicConfig_html"><div class="ttname"><a href="classripple_1_1BasicConfig.html">ripple::BasicConfig</a></div><div class="ttdoc">Holds unparsed configuration information.</div><div class="ttdef"><b>Definition</b> <a href="BasicConfig_8h_source.html#l00217">BasicConfig.h:218</a></div></div>
<div class="ttc" id="aclassripple_1_1BasicConfig_html_a09b31b8ed3c769b4c23b040c3d4798ed"><div class="ttname"><a href="classripple_1_1BasicConfig.html#a09b31b8ed3c769b4c23b040c3d4798ed">ripple::BasicConfig::exists</a></div><div class="ttdeci">bool exists(std::string const &amp;name) const</div><div class="ttdoc">Returns true if a section with the given name exists.</div><div class="ttdef"><b>Definition</b> <a href="BasicConfig_8cpp_source.html#l00130">BasicConfig.cpp:130</a></div></div>
<div class="ttc" id="aclassripple_1_1BasicConfig_html_a60aca585d76b1121dd4f72b358729456"><div class="ttname"><a href="classripple_1_1BasicConfig.html#a60aca585d76b1121dd4f72b358729456">ripple::BasicConfig::section</a></div><div class="ttdeci">Section &amp; section(std::string const &amp;name)</div><div class="ttdoc">Returns the section with the given name.</div><div class="ttdef"><b>Definition</b> <a href="BasicConfig_8cpp_source.html#l00136">BasicConfig.cpp:136</a></div></div>
<div class="ttc" id="aclassripple_1_1Config_html"><div class="ttname"><a href="classripple_1_1Config.html">ripple::Config</a></div><div class="ttdef"><b>Definition</b> <a href="Config_8h_source.html#l00085">Config.h:86</a></div></div>
<div class="ttc" id="aclassripple_1_1Section_html_ab5174adf8d37057817e90eb7adeaf7c3"><div class="ttname"><a href="classripple_1_1Section.html#ab5174adf8d37057817e90eb7adeaf7c3">ripple::Section::values</a></div><div class="ttdeci">std::vector&lt; std::string &gt; const &amp; values() const</div><div class="ttdoc">Returns all the values in the section.</div><div class="ttdef"><b>Definition</b> <a href="BasicConfig_8h_source.html#l00079">BasicConfig.h:79</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1AbstractClient_html"><div class="ttname"><a href="classripple_1_1test_1_1AbstractClient.html">ripple::test::AbstractClient</a></div><div class="ttdef"><b>Definition</b> <a href="AbstractClient_8h_source.html#l00033">AbstractClient.h:34</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1JSONRPCClient_html"><div class="ttname"><a href="classripple_1_1test_1_1JSONRPCClient.html">ripple::test::JSONRPCClient</a></div><div class="ttdef"><b>Definition</b> <a href="JSONRPCClient_8cpp_source.html#l00039">JSONRPCClient.cpp:40</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1JSONRPCClient_html_a238a99997981855b3320c948daa624c2"><div class="ttname"><a href="classripple_1_1test_1_1JSONRPCClient.html#a238a99997981855b3320c948daa624c2">ripple::test::JSONRPCClient::getEndpoint</a></div><div class="ttdeci">static boost::asio::ip::tcp::endpoint getEndpoint(BasicConfig const &amp;cfg)</div><div class="ttdef"><b>Definition</b> <a href="JSONRPCClient_8cpp_source.html#l00042">JSONRPCClient.cpp:42</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1JSONRPCClient_html_a3e9907c3c05d837110db13178304824f"><div class="ttname"><a href="classripple_1_1test_1_1JSONRPCClient.html#a3e9907c3c05d837110db13178304824f">ripple::test::JSONRPCClient::version</a></div><div class="ttdeci">unsigned version() const override</div><div class="ttdoc">Get RPC 1.0 or RPC 2.0.</div><div class="ttdef"><b>Definition</b> <a href="JSONRPCClient_8cpp_source.html#l00156">JSONRPCClient.cpp:156</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1JSONRPCClient_html_a47e4735d3eb4605b91b80e3b661db3b7"><div class="ttname"><a href="classripple_1_1test_1_1JSONRPCClient.html#a47e4735d3eb4605b91b80e3b661db3b7">ripple::test::JSONRPCClient::~JSONRPCClient</a></div><div class="ttdeci">~JSONRPCClient() override</div><div class="ttdef"><b>Definition</b> <a href="JSONRPCClient_8cpp_source.html#l00094">JSONRPCClient.cpp:94</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1JSONRPCClient_html_a6805e33dff774718ebc8f9455de5d390"><div class="ttname"><a href="classripple_1_1test_1_1JSONRPCClient.html#a6805e33dff774718ebc8f9455de5d390">ripple::test::JSONRPCClient::stream_</a></div><div class="ttdeci">boost::asio::ip::tcp::socket stream_</div><div class="ttdef"><b>Definition</b> <a href="JSONRPCClient_8cpp_source.html#l00082">JSONRPCClient.cpp:82</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1JSONRPCClient_html_a6c2b26ca348906310516c38e21d5b7bb"><div class="ttname"><a href="classripple_1_1test_1_1JSONRPCClient.html#a6c2b26ca348906310516c38e21d5b7bb">ripple::test::JSONRPCClient::ep_</a></div><div class="ttdeci">boost::asio::ip::tcp::endpoint ep_</div><div class="ttdef"><b>Definition</b> <a href="JSONRPCClient_8cpp_source.html#l00080">JSONRPCClient.cpp:80</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1JSONRPCClient_html_a72e462c62df648fd930fa1d7e6268a33"><div class="ttname"><a href="classripple_1_1test_1_1JSONRPCClient.html#a72e462c62df648fd930fa1d7e6268a33">ripple::test::JSONRPCClient::bout_</a></div><div class="ttdeci">boost::beast::multi_buffer bout_</div><div class="ttdef"><b>Definition</b> <a href="JSONRPCClient_8cpp_source.html#l00084">JSONRPCClient.cpp:84</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1JSONRPCClient_html_a97e5f08d509240c3d0f0b5be2c16e95c"><div class="ttname"><a href="classripple_1_1test_1_1JSONRPCClient.html#a97e5f08d509240c3d0f0b5be2c16e95c">ripple::test::JSONRPCClient::JSONRPCClient</a></div><div class="ttdeci">JSONRPCClient(Config const &amp;cfg, unsigned rpc_version)</div><div class="ttdef"><b>Definition</b> <a href="JSONRPCClient_8cpp_source.html#l00088">JSONRPCClient.cpp:88</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1JSONRPCClient_html_a9875ee0122004b7a8592fa9c42c2f054"><div class="ttname"><a href="classripple_1_1test_1_1JSONRPCClient.html#a9875ee0122004b7a8592fa9c42c2f054">ripple::test::JSONRPCClient::invoke</a></div><div class="ttdeci">Json::Value invoke(std::string const &amp;cmd, Json::Value const &amp;params) override</div><div class="ttdoc">Submit a command synchronously.</div><div class="ttdef"><b>Definition</b> <a href="JSONRPCClient_8cpp_source.html#l00107">JSONRPCClient.cpp:107</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1JSONRPCClient_html_aaa94ed912c4e5cd98a7092180c261134"><div class="ttname"><a href="classripple_1_1test_1_1JSONRPCClient.html#aaa94ed912c4e5cd98a7092180c261134">ripple::test::JSONRPCClient::buffer_string</a></div><div class="ttdeci">static std::string buffer_string(ConstBufferSequence const &amp;b)</div><div class="ttdef"><b>Definition</b> <a href="JSONRPCClient_8cpp_source.html#l00071">JSONRPCClient.cpp:71</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1JSONRPCClient_html_aafc3f150dd9dffe12a5d892d5c38a123"><div class="ttname"><a href="classripple_1_1test_1_1JSONRPCClient.html#aafc3f150dd9dffe12a5d892d5c38a123">ripple::test::JSONRPCClient::ios_</a></div><div class="ttdeci">boost::asio::io_service ios_</div><div class="ttdef"><b>Definition</b> <a href="JSONRPCClient_8cpp_source.html#l00081">JSONRPCClient.cpp:81</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1JSONRPCClient_html_ab67da091f0d42d4ba0722dcfe596a261"><div class="ttname"><a href="classripple_1_1test_1_1JSONRPCClient.html#ab67da091f0d42d4ba0722dcfe596a261">ripple::test::JSONRPCClient::rpc_version_</a></div><div class="ttdeci">unsigned rpc_version_</div><div class="ttdef"><b>Definition</b> <a href="JSONRPCClient_8cpp_source.html#l00085">JSONRPCClient.cpp:85</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1JSONRPCClient_html_ad4310d689b11ac6183901576cbb9f5c0"><div class="ttname"><a href="classripple_1_1test_1_1JSONRPCClient.html#ad4310d689b11ac6183901576cbb9f5c0">ripple::test::JSONRPCClient::bin_</a></div><div class="ttdeci">boost::beast::multi_buffer bin_</div><div class="ttdef"><b>Definition</b> <a href="JSONRPCClient_8cpp_source.html#l00083">JSONRPCClient.cpp:83</a></div></div>
<div class="ttc" id="acount_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/set/count.html">std::set::count</a></div><div class="ttdeci">T count(T... args)</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="anamespaceJson_html_a7d654b75c16a57007925868e38212b4eadc8f264f36b55b063c78126b335415f4"><div class="ttname"><a href="namespaceJson.html#a7d654b75c16a57007925868e38212b4eadc8f264f36b55b063c78126b335415f4">Json::arrayValue</a></div><div class="ttdeci">@ arrayValue</div><div class="ttdoc">array value (ordered list)</div><div class="ttdef"><b>Definition</b> <a href="json__value_8h_source.html#l00044">json_value.h:44</a></div></div>
<div class="ttc" id="anamespaceboost_1_1asio_html"><div class="ttname"><a href="namespaceboost_1_1asio.html">boost::asio</a></div><div class="ttdef"><b>Definition</b> <a href="Port_8h_source.html#l00039">Port.h:39</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_html_add7f8e2b06ca954ef33e5a0cb1fde85c"><div class="ttname"><a href="namespaceripple_1_1test.html#add7f8e2b06ca954ef33e5a0cb1fde85c">ripple::test::makeJSONRPCClient</a></div><div class="ttdeci">std::unique_ptr&lt; AbstractClient &gt; makeJSONRPCClient(Config const &amp;cfg, unsigned rpc_version)</div><div class="ttdoc">Returns a client using JSON-RPC over HTTP/S.</div><div class="ttdef"><b>Definition</b> <a href="JSONRPCClient_8cpp_source.html#l00163">JSONRPCClient.cpp:163</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_a5b67e65f60cd241099149dc88f1e4bfd"><div class="ttname"><a href="namespaceripple.html#a5b67e65f60cd241099149dc88f1e4bfd">ripple::parse_Port</a></div><div class="ttdeci">void parse_Port(ParsedPort &amp;port, Section const &amp;section, std::ostream &amp;log)</div><div class="ttdef"><b>Definition</b> <a href="Port_8cpp_source.html#l00213">Port.cpp:213</a></div></div>
<div class="ttc" id="anamespaceripple_html_ac124fe6744b7fe887dec949b56b16d50"><div class="ttname"><a href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">ripple::to_string</a></div><div class="ttdeci">std::string to_string(base_uint&lt; Bits, Tag &gt; const &amp;a)</div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00630">base_uint.h:630</a></div></div>
<div class="ttc" id="aresize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/resize.html">std::string::resize</a></div><div class="ttdeci">T resize(T... args)</div></div>
<div class="ttc" id="asize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/size.html">std::string::size</a></div><div class="ttdeci">T size(T... args)</div></div>
<div class="ttc" id="astr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostringstream/str.html">std::ostringstream::str</a></div><div class="ttdeci">T str(T... args)</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>
<div class="ttc" id="astructripple_1_1ParsedPort_html"><div class="ttname"><a href="structripple_1_1ParsedPort.html">ripple::ParsedPort</a></div><div class="ttdef"><b>Definition</b> <a href="Port_8h_source.html#l00097">Port.h:98</a></div></div>
<div class="ttc" id="astructripple_1_1ParsedPort_html_a379a41d37bcc5806794320915b6d151e"><div class="ttname"><a href="structripple_1_1ParsedPort.html#a379a41d37bcc5806794320915b6d151e">ripple::ParsedPort::port</a></div><div class="ttdeci">std::optional&lt; std::uint16_t &gt; port</div><div class="ttdef"><b>Definition</b> <a href="Port_8h_source.html#l00116">Port.h:116</a></div></div>
<div class="ttc" id="astructripple_1_1ParsedPort_html_a6f5cbe8976ce63af96dccfa383874ff8"><div class="ttname"><a href="structripple_1_1ParsedPort.html#a6f5cbe8976ce63af96dccfa383874ff8">ripple::ParsedPort::protocol</a></div><div class="ttdeci">std::set&lt; std::string, boost::beast::iless &gt; protocol</div><div class="ttdef"><b>Definition</b> <a href="Port_8h_source.html#l00102">Port.h:102</a></div></div>
<div class="ttc" id="astructripple_1_1ParsedPort_html_ae32c2f5693e35df49944be81a716f2c3"><div class="ttname"><a href="structripple_1_1ParsedPort.html#ae32c2f5693e35df49944be81a716f2c3">ripple::ParsedPort::ip</a></div><div class="ttdeci">std::optional&lt; boost::asio::ip::address &gt; ip</div><div class="ttdef"><b>Definition</b> <a href="Port_8h_source.html#l00115">Port.h:115</a></div></div>
<div class="ttc" id="aunique_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<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>