• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>http::serializer::next</title>
5<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../../../index.html" title="Chapter 1. Boost.Beast">
8<link rel="up" href="../boost__beast__http__serializer.html" title="http::serializer">
9<link rel="prev" href="is_done.html" title="http::serializer::is_done">
10<link rel="next" href="consume.html" title="http::serializer::consume">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr>
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
15<td align="center"><a href="../../../../../../../index.html">Home</a></td>
16<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="is_done.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost__beast__http__serializer.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="consume.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h5 class="title">
27<a name="beast.ref.boost__beast__http__serializer.next"></a><a class="link" href="next.html" title="http::serializer::next">http::serializer::next</a>
28</h5></div></div></div>
29<p>
30          <a class="indexterm" name="idm46057528719040"></a>
31        </p>
32<p>
33          Returns the next set of buffers in the serialization.
34        </p>
35<h6>
36<a name="beast.ref.boost__beast__http__serializer.next.h0"></a>
37          <span class="phrase"><a name="beast.ref.boost__beast__http__serializer.next.synopsis"></a></span><a class="link" href="next.html#beast.ref.boost__beast__http__serializer.next.synopsis">Synopsis</a>
38        </h6>
39<pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span>
40    <span class="keyword">class</span> <span class="identifier">Visit</span><span class="special">&gt;</span>
41<span class="keyword">void</span>
42<span class="identifier">next</span><span class="special">(</span>
43    <span class="identifier">error_code</span><span class="special">&amp;</span> <span class="identifier">ec</span><span class="special">,</span>
44    <span class="identifier">Visit</span><span class="special">&amp;&amp;</span> <span class="identifier">visit</span><span class="special">);</span>
45</pre>
46<h6>
47<a name="beast.ref.boost__beast__http__serializer.next.h1"></a>
48          <span class="phrase"><a name="beast.ref.boost__beast__http__serializer.next.description"></a></span><a class="link" href="next.html#beast.ref.boost__beast__http__serializer.next.description">Description</a>
49        </h6>
50<p>
51          This function will attempt to call the <code class="computeroutput"><span class="identifier">visit</span></code>
52          function object with a <span class="emphasis"><em>ConstBufferSequence</em></span> of unspecified
53          type representing the next set of buffers in the serialization of the message
54          represented by this object. If there are no more buffers in the serialization,
55          the visit function will not be called. In this case, no error will be indicated,
56          and the function <a class="link" href="is_done.html" title="http::serializer::is_done"><code class="computeroutput"><span class="identifier">is_done</span></code></a> will return <code class="computeroutput"><span class="keyword">true</span></code>.
57        </p>
58<h6>
59<a name="beast.ref.boost__beast__http__serializer.next.h2"></a>
60          <span class="phrase"><a name="beast.ref.boost__beast__http__serializer.next.parameters"></a></span><a class="link" href="next.html#beast.ref.boost__beast__http__serializer.next.parameters">Parameters</a>
61        </h6>
62<div class="informaltable"><table class="table">
63<colgroup>
64<col>
65<col>
66</colgroup>
67<thead><tr>
68<th>
69                  <p>
70                    Name
71                  </p>
72                </th>
73<th>
74                  <p>
75                    Description
76                  </p>
77                </th>
78</tr></thead>
79<tbody>
80<tr>
81<td>
82                  <p>
83                    <code class="computeroutput"><span class="identifier">ec</span></code>
84                  </p>
85                </td>
86<td>
87                  <p>
88                    Set to the error, if any occurred.
89                  </p>
90                </td>
91</tr>
92<tr>
93<td>
94                  <p>
95                    <code class="computeroutput"><span class="identifier">visit</span></code>
96                  </p>
97                </td>
98<td>
99                  <p>
100                    The function to call. The equivalent function signature of this
101                    object must be:
102                  </p>
103<pre xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">ConstBufferSequence</span><span class="special">&gt;</span>
104<span class="keyword">void</span> <span class="identifier">visit</span><span class="special">(</span><span class="identifier">error_code</span><span class="special">&amp;,</span> <span class="identifier">ConstBufferSequence</span> <span class="keyword">const</span><span class="special">&amp;);</span>
105</pre>
106                  <p>
107                    The function is not copied, if no error occurs it will be invoked
108                    before the call to <a class="link" href="next.html" title="http::serializer::next"><code class="computeroutput"><span class="identifier">next</span></code></a> returns.
109                  </p>
110                </td>
111</tr>
112</tbody>
113</table></div>
114</div>
115<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
116<td align="left"></td>
117<td align="right"><div class="copyright-footer">Copyright © 2016-2019 Vinnie
118      Falco<p>
119        Distributed under the Boost Software License, Version 1.0. (See accompanying
120        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
121      </p>
122</div></td>
123</tr></table>
124<hr>
125<div class="spirit-nav">
126<a accesskey="p" href="is_done.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost__beast__http__serializer.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="consume.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
127</div>
128</body>
129</html>
130