mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 11:35:53 +00:00
284 lines
47 KiB
HTML
284 lines
47 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">
|
|
<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: 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 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&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&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_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 name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/*</span></div>
|
|
<div class="line"><a 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 name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Copyright (c) 2016 Ripple Labs Inc.</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"></span> </div>
|
|
<div class="line"><a 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 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 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 name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
|
|
<div class="line"><a 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 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 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 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 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 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 name="l00017"></a><span class="lineno"> 17</span> <span class="comment">*/</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">//==============================================================================</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <ripple/json/json_reader.h></span></div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <ripple/json/to_string.h></span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <ripple/protocol/jss.h></span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <ripple/server/Port.h></span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <boost/asio.hpp></span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <boost/beast/http/dynamic_body.hpp></span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <boost/beast/http/message.hpp></span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <boost/beast/http/read.hpp></span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <boost/beast/http/string_body.hpp></span></div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <boost/beast/http/write.hpp></span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/string.html">string</a>></span></div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <test/jtx/JSONRPCClient.h></span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">namespace </span>test {</div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html"> 35</a></span> <span class="keyword">class </span><a class="code" href="classripple_1_1test_1_1JSONRPCClient.html">JSONRPCClient</a> : <span class="keyword">public</span> <a class="code" href="classripple_1_1test_1_1AbstractClient.html">AbstractClient</a></div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> {</div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keyword">static</span> boost::asio::ip::tcp::endpoint</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#a238a99997981855b3320c948daa624c2"> 38</a></span>  <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#a238a99997981855b3320c948daa624c2">getEndpoint</a>(<a class="code" href="classripple_1_1BasicConfig.html">BasicConfig</a> <span class="keyword">const</span>& cfg)</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  {</div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keyword">auto</span>& log = <a class="codeRef" href="http://en.cppreference.com/w/cpp/io/cerr.html">std::cerr</a>;</div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="structripple_1_1ParsedPort.html">ParsedPort</a> common;</div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <a class="code" href="namespaceripple.html#a5b67e65f60cd241099149dc88f1e4bfd">parse_Port</a>(common, cfg[<span class="stringliteral">"server"</span>], log);</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& name : cfg.<a class="code" href="classripple_1_1BasicConfig.html#a60aca585d76b1121dd4f72b358729456">section</a>(<span class="stringliteral">"server"</span>).<a class="code" href="classripple_1_1Section.html#a320f911d1e931b45b71a50c25561ecf7">values</a>())</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  {</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">if</span> (!cfg.<a class="code" href="classripple_1_1BasicConfig.html#a09b31b8ed3c769b4c23b040c3d4798ed">exists</a>(name))</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordflow">continue</span>;</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <a class="code" href="structripple_1_1ParsedPort.html">ParsedPort</a> pp;</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <a class="code" href="namespaceripple.html#a5b67e65f60cd241099149dc88f1e4bfd">parse_Port</a>(pp, cfg[name], log);</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordflow">if</span> (pp.<a class="code" href="structripple_1_1ParsedPort.html#a6f5cbe8976ce63af96dccfa383874ff8">protocol</a>.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/set/count.html">count</a>(<span class="stringliteral">"http"</span>) == 0)</div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">continue</span>;</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keyword">using namespace </span>boost::asio::ip;</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">if</span> (pp.<a class="code" href="structripple_1_1ParsedPort.html#a38a494f5d264d1a467609222ff034a1d">ip</a> && pp.<a class="code" href="structripple_1_1ParsedPort.html#a38a494f5d264d1a467609222ff034a1d">ip</a>->is_unspecified())</div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  *pp.<a class="code" href="structripple_1_1ParsedPort.html#a38a494f5d264d1a467609222ff034a1d">ip</a> = pp.<a class="code" href="structripple_1_1ParsedPort.html#a38a494f5d264d1a467609222ff034a1d">ip</a>->is_v6() ? address{address_v6::loopback()}</div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  : address{address_v4::loopback()};</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordflow">return</span> {*pp.<a class="code" href="structripple_1_1ParsedPort.html#a38a494f5d264d1a467609222ff034a1d">ip</a>, *pp.<a class="code" href="structripple_1_1ParsedPort.html#acfd587066b17b1b09a2be8f7e5087bb8">port</a>};</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  }</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  Throw<std::runtime_error>(<span class="stringliteral">"Missing HTTP port"</span>);</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">return</span> {}; <span class="comment">// Silence compiler control paths return value warning</span></div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  }</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  </div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keyword">template</span> <<span class="keyword">class</span> ConstBufferSequence></div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">static</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#aaa94ed912c4e5cd98a7092180c261134"> 63</a></span>  <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#aaa94ed912c4e5cd98a7092180c261134">buffer_string</a>(ConstBufferSequence <span class="keyword">const</span>& b)</div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  {</div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keyword">using namespace </span><a class="code" href="namespaceboost_1_1asio.html">boost::asio</a>;</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> s;</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  s.<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string/resize.html">resize</a>(buffer_size(b));</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  buffer_copy(buffer(&s[0], s.<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string/size.html">size</a>()), b);</div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">return</span> s;</div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  }</div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  </div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#a6c2b26ca348906310516c38e21d5b7bb"> 72</a></span>  boost::asio::ip::tcp::endpoint <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#a6c2b26ca348906310516c38e21d5b7bb">ep_</a>;</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#aafc3f150dd9dffe12a5d892d5c38a123"> 73</a></span>  boost::asio::io_service <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#aafc3f150dd9dffe12a5d892d5c38a123">ios_</a>;</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#a6805e33dff774718ebc8f9455de5d390"> 74</a></span>  boost::asio::ip::tcp::socket <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#a6805e33dff774718ebc8f9455de5d390">stream_</a>;</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#ad4310d689b11ac6183901576cbb9f5c0"> 75</a></span>  boost::beast::multi_buffer <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#ad4310d689b11ac6183901576cbb9f5c0">bin_</a>;</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#a72e462c62df648fd930fa1d7e6268a33"> 76</a></span>  boost::beast::multi_buffer <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#a72e462c62df648fd930fa1d7e6268a33">bout_</a>;</div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#ab67da091f0d42d4ba0722dcfe596a261"> 77</a></span>  <span class="keywordtype">unsigned</span> <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#ab67da091f0d42d4ba0722dcfe596a261">rpc_version_</a>;</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  </div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#a97e5f08d509240c3d0f0b5be2c16e95c"> 80</a></span>  <span class="keyword">explicit</span> <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#a97e5f08d509240c3d0f0b5be2c16e95c">JSONRPCClient</a>(<a class="code" href="classripple_1_1Config.html">Config</a> <span class="keyword">const</span>& cfg, <span class="keywordtype">unsigned</span> rpc_version)</div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  : <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#a6c2b26ca348906310516c38e21d5b7bb">ep_</a>(<a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#a238a99997981855b3320c948daa624c2">getEndpoint</a>(cfg)), <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#a6805e33dff774718ebc8f9455de5d390">stream_</a>(<a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#aafc3f150dd9dffe12a5d892d5c38a123">ios_</a>), <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#ab67da091f0d42d4ba0722dcfe596a261">rpc_version_</a>(rpc_version)</div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  {</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#a6805e33dff774718ebc8f9455de5d390">stream_</a>.connect(<a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#a6c2b26ca348906310516c38e21d5b7bb">ep_</a>);</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  }</div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  </div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#a47e4735d3eb4605b91b80e3b661db3b7"> 86</a></span>  <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#a47e4735d3eb4605b91b80e3b661db3b7">~JSONRPCClient</a>()<span class="keyword"> override</span></div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="keyword"> </span>{</div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="comment">// stream_.shutdown(boost::asio::ip::tcp::socket::shutdown_both);</span></div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="comment">// stream_.close();</span></div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  }</div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  </div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="comment">/*</span></div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment"> Return value is an Object type with up to three keys:</span></div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="comment"> status</span></div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="comment"> error</span></div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="comment"> result</span></div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <a class="code" href="classJson_1_1Value.html">Json::Value</a></div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#a9875ee0122004b7a8592fa9c42c2f054"> 99</a></span>  <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#a9875ee0122004b7a8592fa9c42c2f054">invoke</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& cmd, <a class="code" href="classJson_1_1Value.html">Json::Value</a> <span class="keyword">const</span>& params)<span class="keyword"> override</span></div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="keyword"> </span>{</div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keyword">using namespace </span>boost::beast::http;</div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keyword">using namespace </span><a class="code" href="namespaceboost_1_1asio.html">boost::asio</a>;</div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keyword">using namespace </span>std::string_literals;</div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  </div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  request<string_body> req;</div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  req.method(boost::beast::http::verb::post);</div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  req.target(<span class="stringliteral">"/"</span>);</div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  req.version(11);</div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  req.insert(<span class="stringliteral">"Content-Type"</span>, <span class="stringliteral">"application/json; charset=UTF-8"</span>);</div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  {</div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_ostringstream.html">std::ostringstream</a> ostr;</div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  ostr << <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#a6c2b26ca348906310516c38e21d5b7bb">ep_</a>;</div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  req.insert(<span class="stringliteral">"Host"</span>, ostr.<a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_ostringstream/str.html">str</a>());</div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  }</div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  {</div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="classJson_1_1Value.html">Json::Value</a> jr;</div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  jr[jss::method] = cmd;</div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordflow">if</span> (<a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#ab67da091f0d42d4ba0722dcfe596a261">rpc_version_</a> == 2)</div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  {</div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  jr[jss::jsonrpc] = <span class="stringliteral">"2.0"</span>;</div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  jr[jss::ripplerpc] = <span class="stringliteral">"2.0"</span>;</div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  jr[jss::id] = 5;</div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  }</div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">if</span> (params)</div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  {</div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="classJson_1_1Value.html">Json::Value</a>& ja = jr[jss::params] = <a class="code" href="namespaceJson.html#a7d654b75c16a57007925868e38212b4eadc8f264f36b55b063c78126b335415f4">Json::arrayValue</a>;</div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  ja.<a class="code" href="classJson_1_1Value.html#a7e49ac977e4bcf59745a09d426669f75">append</a>(params);</div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  }</div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  req.body() = <a class="code" href="namespaceripple.html#a96888695e8d79474e080c334f149e30a">to_string</a>(jr);</div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  }</div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  req.prepare_payload();</div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  write(<a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#a6805e33dff774718ebc8f9455de5d390">stream_</a>, req);</div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  </div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  response<dynamic_body> res;</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  read(<a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#a6805e33dff774718ebc8f9455de5d390">stream_</a>, <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#ad4310d689b11ac6183901576cbb9f5c0">bin_</a>, res);</div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  </div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <a class="code" href="classJson_1_1Reader.html">Json::Reader</a> jr;</div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <a class="code" href="classJson_1_1Value.html">Json::Value</a> jv;</div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  jr.<a class="code" href="classJson_1_1Reader.html#a8ee4d40504e4f8b069745d762ab4d78c">parse</a>(<a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#aaa94ed912c4e5cd98a7092180c261134">buffer_string</a>(res.body().data()), jv);</div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordflow">if</span> (jv[<span class="stringliteral">"result"</span>].isMember(<span class="stringliteral">"error"</span>))</div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  jv[<span class="stringliteral">"error"</span>] = jv[<span class="stringliteral">"result"</span>][<span class="stringliteral">"error"</span>];</div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordflow">if</span> (jv[<span class="stringliteral">"result"</span>].isMember(<span class="stringliteral">"status"</span>))</div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  jv[<span class="stringliteral">"status"</span>] = jv[<span class="stringliteral">"result"</span>][<span class="stringliteral">"status"</span>];</div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordflow">return</span> jv;</div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  }</div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  </div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordtype">unsigned</span></div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1JSONRPCClient.html#a3e9907c3c05d837110db13178304824f"> 148</a></span>  <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#a3e9907c3c05d837110db13178304824f">version</a>()<span class="keyword"> const override</span></div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="keyword"> </span>{</div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1test_1_1JSONRPCClient.html#ab67da091f0d42d4ba0722dcfe596a261">rpc_version_</a>;</div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  }</div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> };</div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  </div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<AbstractClient></a></div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="namespaceripple_1_1test.html#add7f8e2b06ca954ef33e5a0cb1fde85c"> 155</a></span> <a class="code" href="namespaceripple_1_1test.html#add7f8e2b06ca954ef33e5a0cb1fde85c">makeJSONRPCClient</a>(<a class="code" href="classripple_1_1Config.html">Config</a> <span class="keyword">const</span>& cfg, <span class="keywordtype">unsigned</span> rpc_version)</div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> {</div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordflow">return</span> std::make_unique<JSONRPCClient>(cfg, rpc_version);</div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> }</div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  </div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> } <span class="comment">// namespace test</span></div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> } <span class="comment">// namespace ripple</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<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="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div><div class="ttdoc">STL class.</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 &cfg, unsigned rpc_version)</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_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:33</a></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#l00042">json_value.h:42</a></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="astructripple_1_1ParsedPort_html_a38a494f5d264d1a467609222ff034a1d"><div class="ttname"><a href="structripple_1_1ParsedPort.html#a38a494f5d264d1a467609222ff034a1d">ripple::ParsedPort::ip</a></div><div class="ttdeci">boost::optional< boost::asio::ip::address > ip</div><div class="ttdef"><b>Definition:</b> <a href="Port_8h_source.html#l00108">Port.h:108</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< AbstractClient > makeJSONRPCClient(Config const &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#l00155">JSONRPCClient.cpp:155</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="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#l00072">JSONRPCClient.cpp:72</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 &cfg)</div><div class="ttdef"><b>Definition:</b> <a href="JSONRPCClient_8cpp_source.html#l00038">JSONRPCClient.cpp:38</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a96888695e8d79474e080c334f149e30a"><div class="ttname"><a href="namespaceripple.html#a96888695e8d79474e080c334f149e30a">ripple::to_string</a></div><div class="ttdeci">std::string to_string(ListDisposition disposition)</div><div class="ttdef"><b>Definition:</b> <a href="ValidatorList_8cpp_source.html#l00042">ValidatorList.cpp:42</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 &port, Section const &section, std::ostream &log)</div><div class="ttdef"><b>Definition:</b> <a href="Port_8cpp_source.html#l00139">Port.cpp:139</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#l00036">json_reader.h:36</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#l00076">JSONRPCClient.cpp:76</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#l00090">Port.h:90</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 &cmd, Json::Value const &params) override</div><div class="ttdoc">Submit a command synchronously.</div><div class="ttdef"><b>Definition:</b> <a href="JSONRPCClient_8cpp_source.html#l00099">JSONRPCClient.cpp:99</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Section_html_a320f911d1e931b45b71a50c25561ecf7"><div class="ttname"><a href="classripple_1_1Section.html#a320f911d1e931b45b71a50c25561ecf7">ripple::Section::values</a></div><div class="ttdeci">std::vector< std::string > const & 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#l00076">BasicConfig.h:76</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#l00148">JSONRPCClient.cpp:148</a></div></div>
|
|
<div class="ttc" id="aclassJson_1_1Value_html_a7e49ac977e4bcf59745a09d426669f75"><div class="ttname"><a href="classJson_1_1Value.html#a7e49ac977e4bcf59745a09d426669f75">Json::Value::append</a></div><div class="ttdeci">Value & append(const Value &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#l00882">json_value.cpp:882</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#l00075">JSONRPCClient.cpp:75</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#l00067">Config.h:67</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="Overlay_8h_source.html#l00042">Overlay.h:42</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#l00073">JSONRPCClient.cpp:73</a></div></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 class="ttdoc">STL class.</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="astructripple_1_1ParsedPort_html_acfd587066b17b1b09a2be8f7e5087bb8"><div class="ttname"><a href="structripple_1_1ParsedPort.html#acfd587066b17b1b09a2be8f7e5087bb8">ripple::ParsedPort::port</a></div><div class="ttdeci">boost::optional< std::uint16_t > port</div><div class="ttdef"><b>Definition:</b> <a href="Port_8h_source.html#l00109">Port.h:109</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#l00077">JSONRPCClient.cpp:77</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#l00086">JSONRPCClient.cpp:86</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 &document, Value &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#l00073">json_reader.cpp:73</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#l00035">JSONRPCClient.cpp:35</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="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#l00074">JSONRPCClient.cpp:74</a></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="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 &b)</div><div class="ttdef"><b>Definition:</b> <a href="JSONRPCClient_8cpp_source.html#l00063">JSONRPCClient.cpp:63</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< std::string, boost::beast::iless > protocol</div><div class="ttdef"><b>Definition:</b> <a href="Port_8h_source.html#l00095">Port.h:95</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 class="ttdoc">STL class.</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#l00178">BasicConfig.h:178</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 &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#l00132">BasicConfig.cpp:132</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#l00145">json_value.h:145</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 & section(std::string const &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#l00138">BasicConfig.cpp:138</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>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|