mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-22 20:15:51 +00:00
315 lines
47 KiB
HTML
315 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: HTTPStream.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_df9c78dcf3f59a33b12284f95992a64b.html">ripple</a></li><li class="navelem"><a class="el" href="dir_087b3a20fd5b4508d264eb4b8265a765.html">net</a></li><li class="navelem"><a class="el" href="dir_cbcb7358f1d59bb762cad4574f36cb82.html">impl</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">HTTPStream.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) 2020 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>  </div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <ripple/net/HTTPStream.h></span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  </div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classripple_1_1SSLStream.html#ab5c93cbd6d07083e3645be0bcacc38f8"> 24</a></span> <a class="code" href="classripple_1_1SSLStream.html#ab5c93cbd6d07083e3645be0bcacc38f8">SSLStream::SSLStream</a>(</div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <a class="code" href="classripple_1_1Config.html">Config</a> <span class="keyword">const</span>& config,</div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  boost::asio::io_service::strand& strand,</div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> j)</div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  : ssl_ctx_(config, j, <a class="code" href="namespaceboost.html">boost</a>::asio::ssl::context::tlsv12_client)</div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  , strand_(strand)</div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</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>  </div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> boost::asio::ip::tcp::socket&</div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classripple_1_1SSLStream.html#a7937719d2404f5a9b1edbb39e1f9de53"> 34</a></span> <a class="code" href="classripple_1_1SSLStream.html#a7937719d2404f5a9b1edbb39e1f9de53">SSLStream::getStream</a>()</div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> {</div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  assert(<a class="code" href="classripple_1_1SSLStream.html#a6c2de227aadacf11425c13ea755b1687">stream_</a>);</div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1SSLStream.html#a6c2de227aadacf11425c13ea755b1687">stream_</a>->next_layer();</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> }</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="keywordtype">bool</span></div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classripple_1_1SSLStream.html#a0b9a2e54b9323f0c1e0f906d3aca4cd4"> 41</a></span> <a class="code" href="classripple_1_1SSLStream.html#a0b9a2e54b9323f0c1e0f906d3aca4cd4">SSLStream::connect</a>(</div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>& errorOut,</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& host,</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& port,</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  boost::asio::yield_context& yield)</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> {</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">using namespace </span><a class="code" href="namespaceboost_1_1asio.html">boost::asio</a>;</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keyword">using namespace </span>boost::beast;</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  boost::system::error_code ec;</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keyword">auto</span> fail = [&errorOut, &ec](</div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& errorIn,</div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& message = <span class="stringliteral">""</span>) {</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  errorOut = errorIn + <span class="stringliteral">": "</span> + (message.empty() ? ec.message() : message);</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  };</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  </div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  ip::tcp::resolver resolver{<a class="code" href="classripple_1_1SSLStream.html#ab0e1d660271bc2fcaa97cdbd1dd14963">strand_</a>.context()};</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keyword">auto</span> <span class="keyword">const</span> endpoints = resolver.async_resolve(host, port, yield[ec]);</div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">if</span> (ec)</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">return</span> fail(<span class="stringliteral">"async_resolve"</span>);</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  </div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">try</span></div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  {</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="classripple_1_1SSLStream.html#a6c2de227aadacf11425c13ea755b1687">stream_</a>.<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional/emplace.html">emplace</a>(<a class="code" href="classripple_1_1SSLStream.html#ab0e1d660271bc2fcaa97cdbd1dd14963">strand_</a>.context(), <a class="code" href="classripple_1_1SSLStream.html#ab6046a8cc6199064c1d581c42f9e2eea">ssl_ctx_</a>.<a class="code" href="classripple_1_1HTTPClientSSLContext.html#ad0cc62c55efffa75d1f9d22aaca0ef83">context</a>());</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  }</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordflow">catch</span> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/exception.html">std::exception</a> <span class="keyword">const</span>& e)</div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  {</div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">return</span> fail(<span class="stringliteral">"exception"</span>, e.<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/exception/what.html">what</a>());</div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  }</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  ec = <a class="code" href="classripple_1_1SSLStream.html#ab6046a8cc6199064c1d581c42f9e2eea">ssl_ctx_</a>.<a class="code" href="classripple_1_1HTTPClientSSLContext.html#a33af7033012cc39d9645120dc8d5eca4">preConnectVerify</a>(*<a class="code" href="classripple_1_1SSLStream.html#a6c2de227aadacf11425c13ea755b1687">stream_</a>, host);</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">if</span> (ec)</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">return</span> fail(<span class="stringliteral">"preConnectVerify"</span>);</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  boost::asio::async_connect(</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="classripple_1_1SSLStream.html#a6c2de227aadacf11425c13ea755b1687">stream_</a>->next_layer(), endpoints.begin(), endpoints.end(), yield[ec]);</div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordflow">if</span> (ec)</div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordflow">return</span> fail(<span class="stringliteral">"async_connect"</span>);</div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  ec = <a class="code" href="classripple_1_1SSLStream.html#ab6046a8cc6199064c1d581c42f9e2eea">ssl_ctx_</a>.<a class="code" href="classripple_1_1HTTPClientSSLContext.html#a9ccc8776cfeb39267308d8b412379a47">postConnectVerify</a>(*<a class="code" href="classripple_1_1SSLStream.html#a6c2de227aadacf11425c13ea755b1687">stream_</a>, host);</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordflow">if</span> (ec)</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">return</span> fail(<span class="stringliteral">"postConnectVerify"</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"> 86</span>  <a class="code" href="classripple_1_1SSLStream.html#a6c2de227aadacf11425c13ea755b1687">stream_</a>->async_handshake(ssl::stream_base::client, yield[ec]);</div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordflow">if</span> (ec)</div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">return</span> fail(<span class="stringliteral">"async_handshake"</span>);</div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">return</span> <span class="keyword">true</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>  </div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classripple_1_1SSLStream.html#afb72bab804e165234e643bb5724a398a"> 94</a></span> <a class="code" href="classripple_1_1SSLStream.html#afb72bab804e165234e643bb5724a398a">SSLStream::asyncWrite</a>(</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <a class="code" href="classripple_1_1HTTPStream.html#adaedf72be1e41c7baad6422bd4c4b965">request</a>& req,</div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  boost::asio::yield_context& yield,</div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  boost::system::error_code& ec)</div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> {</div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  boost::beast::http::async_write(*<a class="code" href="classripple_1_1SSLStream.html#a6c2de227aadacf11425c13ea755b1687">stream_</a>, req, yield[ec]);</div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> }</div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  </div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classripple_1_1SSLStream.html#afd5dc8f168c0b52004d64ba24acfcdda"> 103</a></span> <a class="code" href="classripple_1_1SSLStream.html#afd5dc8f168c0b52004d64ba24acfcdda">SSLStream::asyncRead</a>(</div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  boost::beast::flat_buffer& buf,</div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <a class="code" href="classripple_1_1HTTPStream.html#ae1af9210c0f8c4b51ab17fa23db5dcaa">parser</a>& p,</div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  boost::asio::yield_context& yield,</div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  boost::system::error_code& ec)</div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> {</div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  boost::beast::http::async_read(*<a class="code" href="classripple_1_1SSLStream.html#a6c2de227aadacf11425c13ea755b1687">stream_</a>, buf, p, yield[ec]);</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>  </div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classripple_1_1SSLStream.html#a0d852cd4a3f4c36990086fd5b2197337"> 113</a></span> <a class="code" href="classripple_1_1SSLStream.html#a0d852cd4a3f4c36990086fd5b2197337">SSLStream::asyncReadSome</a>(</div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  boost::beast::flat_buffer& buf,</div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <a class="code" href="classripple_1_1HTTPStream.html#ae1af9210c0f8c4b51ab17fa23db5dcaa">parser</a>& p,</div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  boost::asio::yield_context& yield,</div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  boost::system::error_code& ec)</div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> {</div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  boost::beast::http::async_read_some(*<a class="code" href="classripple_1_1SSLStream.html#a6c2de227aadacf11425c13ea755b1687">stream_</a>, buf, p, yield[ec]);</div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> }</div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  </div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classripple_1_1RawStream.html#ad7632b67c87b0a5b72e20a5b1ef47bf7"> 122</a></span> <a class="code" href="classripple_1_1RawStream.html#ad7632b67c87b0a5b72e20a5b1ef47bf7">RawStream::RawStream</a>(boost::asio::io_service::strand& strand) : <a class="code" href="classripple_1_1SSLStream.html#ab0e1d660271bc2fcaa97cdbd1dd14963">strand_</a>(strand)</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> }</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> boost::asio::ip::tcp::socket&</div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classripple_1_1RawStream.html#a5faa92440a13689961c047c15f793607"> 127</a></span> <a class="code" href="classripple_1_1RawStream.html#a5faa92440a13689961c047c15f793607">RawStream::getStream</a>()</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>  assert(<a class="code" href="classripple_1_1RawStream.html#af45a7539ab950bddf346f9224a0ae905">stream_</a>);</div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordflow">return</span> *<a class="code" href="classripple_1_1RawStream.html#af45a7539ab950bddf346f9224a0ae905">stream_</a>;</div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> }</div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  </div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="classripple_1_1RawStream.html#ab5fe3709f147f522aa491ea694299da0"> 134</a></span> <a class="code" href="classripple_1_1RawStream.html#ab5fe3709f147f522aa491ea694299da0">RawStream::connect</a>(</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>& errorOut,</div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& host,</div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& port,</div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  boost::asio::yield_context& yield)</div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> {</div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keyword">using namespace </span><a class="code" href="namespaceboost_1_1asio.html">boost::asio</a>;</div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keyword">using namespace </span>boost::beast;</div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  </div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  boost::system::error_code ec;</div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  </div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keyword">auto</span> fail = [&errorOut, &ec](</div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& errorIn,</div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& message = <span class="stringliteral">""</span>) {</div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  errorOut = errorIn + <span class="stringliteral">": "</span> + (message.empty() ? ec.message() : message);</div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  };</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>  ip::tcp::resolver resolver{<a class="code" href="classripple_1_1RawStream.html#a66b9fd140cea649ed6da2bf183a6ac36">strand_</a>.context()};</div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keyword">auto</span> <span class="keyword">const</span> endpoints = resolver.async_resolve(host, port, yield[ec]);</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordflow">if</span> (ec)</div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keywordflow">return</span> fail(<span class="stringliteral">"async_resolve"</span>);</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">try</span></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>  <a class="code" href="classripple_1_1RawStream.html#af45a7539ab950bddf346f9224a0ae905">stream_</a>.<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional/emplace.html">emplace</a>(<a class="code" href="classripple_1_1RawStream.html#a66b9fd140cea649ed6da2bf183a6ac36">strand_</a>.context());</div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  }</div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordflow">catch</span> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/exception.html">std::exception</a> <span class="keyword">const</span>& e)</div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  {</div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">return</span> fail(<span class="stringliteral">"exception"</span>, e.<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/exception/what.html">what</a>());</div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  }</div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  </div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  boost::asio::async_connect(</div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  *<a class="code" href="classripple_1_1RawStream.html#af45a7539ab950bddf346f9224a0ae905">stream_</a>, endpoints.begin(), endpoints.end(), yield[ec]);</div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordflow">if</span> (ec)</div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordflow">return</span> fail(<span class="stringliteral">"async_connect"</span>);</div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  </div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> }</div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  </div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="classripple_1_1RawStream.html#a4afda9f235e8bcec83ba18cc0346aed7"> 175</a></span> <a class="code" href="classripple_1_1RawStream.html#a4afda9f235e8bcec83ba18cc0346aed7">RawStream::asyncWrite</a>(</div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <a class="code" href="classripple_1_1HTTPStream.html#adaedf72be1e41c7baad6422bd4c4b965">request</a>& req,</div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  boost::asio::yield_context& yield,</div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  boost::system::error_code& ec)</div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> {</div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  boost::beast::http::async_write(*<a class="code" href="classripple_1_1RawStream.html#af45a7539ab950bddf346f9224a0ae905">stream_</a>, req, yield[ec]);</div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> }</div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  </div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="classripple_1_1RawStream.html#a4befbb4488a79896bce339e98e51d35b"> 184</a></span> <a class="code" href="classripple_1_1RawStream.html#a4befbb4488a79896bce339e98e51d35b">RawStream::asyncRead</a>(</div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  boost::beast::flat_buffer& buf,</div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <a class="code" href="classripple_1_1HTTPStream.html#ae1af9210c0f8c4b51ab17fa23db5dcaa">parser</a>& p,</div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  boost::asio::yield_context& yield,</div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  boost::system::error_code& ec)</div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> {</div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  boost::beast::http::async_read(*<a class="code" href="classripple_1_1RawStream.html#af45a7539ab950bddf346f9224a0ae905">stream_</a>, buf, p, yield[ec]);</div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> }</div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  </div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classripple_1_1RawStream.html#ad150796218c98b411ff0fd11000c1ab1"> 194</a></span> <a class="code" href="classripple_1_1RawStream.html#ad150796218c98b411ff0fd11000c1ab1">RawStream::asyncReadSome</a>(</div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  boost::beast::flat_buffer& buf,</div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <a class="code" href="classripple_1_1HTTPStream.html#ae1af9210c0f8c4b51ab17fa23db5dcaa">parser</a>& p,</div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  boost::asio::yield_context& yield,</div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  boost::system::error_code& ec)</div>
|
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> {</div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  boost::beast::http::async_read_some(*<a class="code" href="classripple_1_1RawStream.html#af45a7539ab950bddf346f9224a0ae905">stream_</a>, buf, p, yield[ec]);</div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> }</div>
|
|
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  </div>
|
|
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> } <span class="comment">// namespace ripple</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<div class="ttc" id="aclassripple_1_1RawStream_html_a4befbb4488a79896bce339e98e51d35b"><div class="ttname"><a href="classripple_1_1RawStream.html#a4befbb4488a79896bce339e98e51d35b">ripple::RawStream::asyncRead</a></div><div class="ttdeci">void asyncRead(boost::beast::flat_buffer &buf, parser &p, boost::asio::yield_context &yield, boost::system::error_code &ec) override</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8cpp_source.html#l00184">HTTPStream.cpp:184</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1RawStream_html_af45a7539ab950bddf346f9224a0ae905"><div class="ttname"><a href="classripple_1_1RawStream.html#af45a7539ab950bddf346f9224a0ae905">ripple::RawStream::stream_</a></div><div class="ttdeci">std::optional< boost::asio::ip::tcp::socket > stream_</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8h_source.html#l00159">HTTPStream.h:159</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SSLStream_html_a0d852cd4a3f4c36990086fd5b2197337"><div class="ttname"><a href="classripple_1_1SSLStream.html#a0d852cd4a3f4c36990086fd5b2197337">ripple::SSLStream::asyncReadSome</a></div><div class="ttdeci">void asyncReadSome(boost::beast::flat_buffer &buf, parser &p, boost::asio::yield_context &yield, boost::system::error_code &ec) override</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8cpp_source.html#l00113">HTTPStream.cpp:113</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 class="ttdoc">STL class.</div></div>
|
|
<div class="ttc" id="aexception_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/exception.html">std::exception</a></div><div class="ttdoc">STL class.</div></div>
|
|
<div class="ttc" id="aclassripple_1_1RawStream_html_a4afda9f235e8bcec83ba18cc0346aed7"><div class="ttname"><a href="classripple_1_1RawStream.html#a4afda9f235e8bcec83ba18cc0346aed7">ripple::RawStream::asyncWrite</a></div><div class="ttdeci">void asyncWrite(request &req, boost::asio::yield_context &yield, boost::system::error_code &ec) override</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8cpp_source.html#l00175">HTTPStream.cpp:175</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1RawStream_html_ad7632b67c87b0a5b72e20a5b1ef47bf7"><div class="ttname"><a href="classripple_1_1RawStream.html#ad7632b67c87b0a5b72e20a5b1ef47bf7">ripple::RawStream::RawStream</a></div><div class="ttdeci">RawStream(boost::asio::io_service::strand &strand)</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8cpp_source.html#l00122">HTTPStream.cpp:122</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SSLStream_html_a7937719d2404f5a9b1edbb39e1f9de53"><div class="ttname"><a href="classripple_1_1SSLStream.html#a7937719d2404f5a9b1edbb39e1f9de53">ripple::SSLStream::getStream</a></div><div class="ttdeci">boost::asio::ip::tcp::socket & getStream() override</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8cpp_source.html#l00034">HTTPStream.cpp:34</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1HTTPClientSSLContext_html_ad0cc62c55efffa75d1f9d22aaca0ef83"><div class="ttname"><a href="classripple_1_1HTTPClientSSLContext.html#ad0cc62c55efffa75d1f9d22aaca0ef83">ripple::HTTPClientSSLContext::context</a></div><div class="ttdeci">boost::asio::ssl::context & context()</div><div class="ttdef"><b>Definition:</b> <a href="HTTPClientSSLContext_8h_source.html#l00072">HTTPClientSSLContext.h:72</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1HTTPStream_html_ae1af9210c0f8c4b51ab17fa23db5dcaa"><div class="ttname"><a href="classripple_1_1HTTPStream.html#ae1af9210c0f8c4b51ab17fa23db5dcaa">ripple::HTTPStream::parser</a></div><div class="ttdeci">boost::beast::http::basic_parser< false > parser</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8h_source.html#l00039">HTTPStream.h:39</a></div></div>
|
|
<div class="ttc" id="aemplace_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/optional/emplace.html">std::optional::emplace</a></div><div class="ttdeci">T emplace(T... args)</div></div>
|
|
<div class="ttc" id="aclassripple_1_1HTTPClientSSLContext_html_a33af7033012cc39d9645120dc8d5eca4"><div class="ttname"><a href="classripple_1_1HTTPClientSSLContext.html#a33af7033012cc39d9645120dc8d5eca4">ripple::HTTPClientSSLContext::preConnectVerify</a></div><div class="ttdeci">boost::system::error_code preConnectVerify(T &strm, std::string const &host)</div><div class="ttdoc">invoked before connect/async_connect on an ssl stream to setup name verification.</div><div class="ttdef"><b>Definition:</b> <a href="HTTPClientSSLContext_8h_source.html#l00107">HTTPClientSSLContext.h:107</a></div></div>
|
|
<div class="ttc" id="anamespaceboost_html"><div class="ttname"><a href="namespaceboost.html">boost</a></div><div class="ttdef"><b>Definition:</b> <a href="IPAddress_8h_source.html#l00103">IPAddress.h:103</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1RawStream_html_a5faa92440a13689961c047c15f793607"><div class="ttname"><a href="classripple_1_1RawStream.html#a5faa92440a13689961c047c15f793607">ripple::RawStream::getStream</a></div><div class="ttdeci">boost::asio::ip::tcp::socket & getStream() override</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8cpp_source.html#l00127">HTTPStream.cpp:127</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SSLStream_html_afb72bab804e165234e643bb5724a398a"><div class="ttname"><a href="classripple_1_1SSLStream.html#afb72bab804e165234e643bb5724a398a">ripple::SSLStream::asyncWrite</a></div><div class="ttdeci">void asyncWrite(request &req, boost::asio::yield_context &yield, boost::system::error_code &ec) override</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8cpp_source.html#l00094">HTTPStream.cpp:94</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#l00069">Config.h:69</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#l00041">Overlay.h:41</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1HTTPClientSSLContext_html_a9ccc8776cfeb39267308d8b412379a47"><div class="ttname"><a href="classripple_1_1HTTPClientSSLContext.html#a9ccc8776cfeb39267308d8b412379a47">ripple::HTTPClientSSLContext::postConnectVerify</a></div><div class="ttdeci">boost::system::error_code postConnectVerify(T &strm, std::string const &host)</div><div class="ttdoc">invoked after connect/async_connect but before sending data on an ssl stream - to setup name verifica...</div><div class="ttdef"><b>Definition:</b> <a href="HTTPClientSSLContext_8h_source.html#l00142">HTTPClientSSLContext.h:142</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1RawStream_html_a66b9fd140cea649ed6da2bf183a6ac36"><div class="ttname"><a href="classripple_1_1RawStream.html#a66b9fd140cea649ed6da2bf183a6ac36">ripple::RawStream::strand_</a></div><div class="ttdeci">boost::asio::io_service::strand & strand_</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8h_source.html#l00160">HTTPStream.h:160</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00058">Journal.h:58</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SSLStream_html_ab0e1d660271bc2fcaa97cdbd1dd14963"><div class="ttname"><a href="classripple_1_1SSLStream.html#ab0e1d660271bc2fcaa97cdbd1dd14963">ripple::SSLStream::strand_</a></div><div class="ttdeci">boost::asio::io_service::strand & strand_</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8h_source.html#l00118">HTTPStream.h:118</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SSLStream_html_ab5c93cbd6d07083e3645be0bcacc38f8"><div class="ttname"><a href="classripple_1_1SSLStream.html#ab5c93cbd6d07083e3645be0bcacc38f8">ripple::SSLStream::SSLStream</a></div><div class="ttdeci">SSLStream(Config const &config, boost::asio::io_service::strand &strand, beast::Journal j)</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8cpp_source.html#l00024">HTTPStream.cpp:24</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SSLStream_html_afd5dc8f168c0b52004d64ba24acfcdda"><div class="ttname"><a href="classripple_1_1SSLStream.html#afd5dc8f168c0b52004d64ba24acfcdda">ripple::SSLStream::asyncRead</a></div><div class="ttdeci">void asyncRead(boost::beast::flat_buffer &buf, parser &p, boost::asio::yield_context &yield, boost::system::error_code &ec) override</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8cpp_source.html#l00103">HTTPStream.cpp:103</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1RawStream_html_ad150796218c98b411ff0fd11000c1ab1"><div class="ttname"><a href="classripple_1_1RawStream.html#ad150796218c98b411ff0fd11000c1ab1">ripple::RawStream::asyncReadSome</a></div><div class="ttdeci">void asyncReadSome(boost::beast::flat_buffer &buf, parser &p, boost::asio::yield_context &yield, boost::system::error_code &ec) override</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8cpp_source.html#l00194">HTTPStream.cpp:194</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1RawStream_html_ab5fe3709f147f522aa491ea694299da0"><div class="ttname"><a href="classripple_1_1RawStream.html#ab5fe3709f147f522aa491ea694299da0">ripple::RawStream::connect</a></div><div class="ttdeci">bool connect(std::string &errorOut, std::string const &host, std::string const &port, boost::asio::yield_context &yield) override</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8cpp_source.html#l00134">HTTPStream.cpp:134</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SSLStream_html_ab6046a8cc6199064c1d581c42f9e2eea"><div class="ttname"><a href="classripple_1_1SSLStream.html#ab6046a8cc6199064c1d581c42f9e2eea">ripple::SSLStream::ssl_ctx_</a></div><div class="ttdeci">HTTPClientSSLContext ssl_ctx_</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8h_source.html#l00115">HTTPStream.h:115</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SSLStream_html_a0b9a2e54b9323f0c1e0f906d3aca4cd4"><div class="ttname"><a href="classripple_1_1SSLStream.html#a0b9a2e54b9323f0c1e0f906d3aca4cd4">ripple::SSLStream::connect</a></div><div class="ttdeci">bool connect(std::string &errorOut, std::string const &host, std::string const &port, boost::asio::yield_context &yield) override</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8cpp_source.html#l00041">HTTPStream.cpp:41</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SSLStream_html_a6c2de227aadacf11425c13ea755b1687"><div class="ttname"><a href="classripple_1_1SSLStream.html#a6c2de227aadacf11425c13ea755b1687">ripple::SSLStream::stream_</a></div><div class="ttdeci">std::optional< boost::asio::ssl::stream< boost::asio::ip::tcp::socket > > stream_</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8h_source.html#l00117">HTTPStream.h:117</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1HTTPStream_html_adaedf72be1e41c7baad6422bd4c4b965"><div class="ttname"><a href="classripple_1_1HTTPStream.html#adaedf72be1e41c7baad6422bd4c4b965">ripple::HTTPStream::request</a></div><div class="ttdeci">boost::beast::http::request< boost::beast::http::empty_body > request</div><div class="ttdef"><b>Definition:</b> <a href="HTTPStream_8h_source.html#l00038">HTTPStream.h:38</a></div></div>
|
|
<div class="ttc" id="awhat_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/exception/what.html">std::exception::what</a></div><div class="ttdeci">T what(T... args)</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>
|