overload3.html 4.04 KB
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ssl::stream::handshake (3 of 4 overloads)</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../../index.html" title="Asio">
<link rel="up" href="../handshake.html" title="ssl::stream::handshake">
<link rel="prev" href="overload2.html" title="ssl::stream::handshake (2 of 4 overloads)">
<link rel="next" href="overload4.html" title="ssl::stream::handshake (4 of 4 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload2.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../handshake.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload4.html"><img src="../../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h5 class="title">
<a name="asio.reference.ssl__stream.handshake.overload3"></a><a class="link" href="overload3.html" title="ssl::stream::handshake (3 of 4 overloads)">ssl::stream::handshake
          (3 of 4 overloads)</a>
</h5></div></div></div>
<p>
            Perform SSL handshaking.
          </p>
<pre class="programlisting">template&lt;
    typename <a class="link" href="../../ConstBufferSequence.html" title="Constant buffer sequence requirements">ConstBufferSequence</a>&gt;
void handshake(
    handshake_type type,
    const ConstBufferSequence &amp; buffers);
</pre>
<p>
            This function is used to perform SSL handshaking on the stream. The function
            call will block until handshaking is complete or an error occurs.
          </p>
<h6>
<a name="asio.reference.ssl__stream.handshake.overload3.h0"></a>
            <span><a name="asio.reference.ssl__stream.handshake.overload3.parameters"></a></span><a class="link" href="overload3.html#asio.reference.ssl__stream.handshake.overload3.parameters">Parameters</a>
          </h6>
<div class="variablelist">
<p class="title"><b></b></p>
<dl>
<dt><span class="term">type</span></dt>
<dd><p>
                  The type of handshaking to be performed, i.e. as a client or as
                  a server.
                </p></dd>
<dt><span class="term">buffers</span></dt>
<dd><p>
                  The buffered data to be reused for the handshake.
                </p></dd>
</dl>
</div>
<h6>
<a name="asio.reference.ssl__stream.handshake.overload3.h1"></a>
            <span><a name="asio.reference.ssl__stream.handshake.overload3.exceptions"></a></span><a class="link" href="overload3.html#asio.reference.ssl__stream.handshake.overload3.exceptions">Exceptions</a>
          </h6>
<div class="variablelist">
<p class="title"><b></b></p>
<dl>
<dt><span class="term">asio::system_error</span></dt>
<dd><p>
                  Thrown on failure.
                </p></dd>
</dl>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
      Kohlhoff<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        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>)
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload2.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../handshake.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload4.html"><img src="../../../../next.png" alt="Next"></a>
</div>
</body>
</html>