3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
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="limit/overload2.html" title="http::serializer::limit (2 of 2 overloads)">
10 <link rel="next" href="operator_eq_.html" title="http::serializer::operator=">
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>
22 <div class="spirit-nav">
23 <a accesskey="p" href="limit/overload2.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="operator_eq_.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
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>
30 <a class="indexterm" name="idm45873490649056"></a>
31 Returns the next set of buffers in the serialization.
34 <a name="beast.ref.boost__beast__http__serializer.next.h0"></a>
35 <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>
37 <pre class="programlisting"><span class="keyword">template</span><span class="special"><</span>
38 <span class="keyword">class</span> <span class="identifier">Visit</span><span class="special">></span>
39 <span class="keyword">void</span>
40 <span class="identifier">next</span><span class="special">(</span>
41 <span class="identifier">error_code</span><span class="special">&</span> <span class="identifier">ec</span><span class="special">,</span>
42 <span class="identifier">Visit</span><span class="special">&&</span> <span class="identifier">visit</span><span class="special">);</span>
45 <a name="beast.ref.boost__beast__http__serializer.next.h1"></a>
46 <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 This function will attempt to call the <code class="computeroutput"><span class="identifier">visit</span></code>
50 function object with a <span class="emphasis"><em>ConstBufferSequence</em></span> of unspecified
51 type representing the next set of buffers in the serialization of the message
52 represented by this object. If there are no more buffers in the serialization,
53 the visit function will not be called. In this case, no error will be indicated,
54 and the function <a class="link" href="is_done.html" title="http::serializer::is_done"><code class="computeroutput"><span class="identifier">http</span><span class="special">::</span><span class="identifier">serializer</span><span class="special">::</span><span class="identifier">is_done</span></code></a> will return <code class="computeroutput"><span class="keyword">true</span></code>.
57 <a name="beast.ref.boost__beast__http__serializer.next.h2"></a>
58 <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>
60 <div class="informaltable"><table class="table">
81 <code class="computeroutput"><span class="identifier">ec</span></code>
86 Set to the error, if any occurred.
93 <code class="computeroutput"><span class="identifier">visit</span></code>
98 The function to call. The equivalent function signature of this
101 <pre xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="keyword">template</span><span class="special"><</span><span class="keyword">class</span> <span class="identifier">ConstBufferSequence</span><span class="special">></span>
102 <span class="keyword">void</span> <span class="identifier">visit</span><span class="special">(</span><span class="identifier">error_code</span><span class="special">&,</span> <span class="identifier">ConstBufferSequence</span> <span class="keyword">const</span><span class="special">&);</span>
105 The function is not copied, if no error occurs it will be invoked
106 before the call to <a class="link" href="next.html" title="http::serializer::next"><code class="computeroutput"><span class="identifier">http</span><span class="special">::</span><span class="identifier">serializer</span><span class="special">::</span><span class="identifier">next</span></code></a> returns.
113 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
114 <td align="left"></td>
115 <td align="right"><div class="copyright-footer">Copyright © 2016-2019 Vinnie
117 Distributed under the Boost Software License, Version 1.0. (See accompanying
118 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>)
123 <div class="spirit-nav">
124 <a accesskey="p" href="limit/overload2.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="operator_eq_.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>