2 / Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
4 / Distributed under the Boost Software License, Version 1.0. (See accompanying
5 / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 [section:HandshakeHandler SSL handshake handler requirements]
10 A handshake handler must meet the requirements for a [link
11 boost_asio.reference.Handler handler]. A value `h` of a handshake handler
12 class should work correctly in the expression `h(ec)`, where `ec` is an lvalue
13 of type `const error_code`.
17 A free function as a handshake handler:
19 void handshake_handler(
20 const boost::system::error_code& ec)
25 A handshake handler function object:
27 struct handshake_handler
31 const boost::system::error_code& ec)
38 A non-static class member function adapted to a handshake handler using `bind()`:
40 void my_class::handshake_handler(
41 const boost::system::error_code& ec)
46 ssl_stream.async_handshake(...,
47 boost::bind(&my_class::handshake_handler,
48 this, boost::asio::placeholders::error));