annotate DEPENDENCIES/generic/include/boost/asio/ssl/detail/shutdown_op.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 //
Chris@16 2 // ssl/detail/shutdown_op.hpp
Chris@16 3 // ~~~~~~~~~~~~~~~~~~~~~~~~~~
Chris@16 4 //
Chris@101 5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
Chris@16 6 //
Chris@16 7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 9 //
Chris@16 10
Chris@16 11 #ifndef BOOST_ASIO_SSL_DETAIL_SHUTDOWN_OP_HPP
Chris@16 12 #define BOOST_ASIO_SSL_DETAIL_SHUTDOWN_OP_HPP
Chris@16 13
Chris@16 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
Chris@16 15 # pragma once
Chris@16 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
Chris@16 17
Chris@16 18 #include <boost/asio/detail/config.hpp>
Chris@16 19
Chris@16 20 #if !defined(BOOST_ASIO_ENABLE_OLD_SSL)
Chris@16 21 # include <boost/asio/ssl/detail/engine.hpp>
Chris@16 22 #endif // !defined(BOOST_ASIO_ENABLE_OLD_SSL)
Chris@16 23
Chris@16 24 #include <boost/asio/detail/push_options.hpp>
Chris@16 25
Chris@16 26 namespace boost {
Chris@16 27 namespace asio {
Chris@16 28 namespace ssl {
Chris@16 29 namespace detail {
Chris@16 30
Chris@16 31 #if !defined(BOOST_ASIO_ENABLE_OLD_SSL)
Chris@16 32
Chris@16 33 class shutdown_op
Chris@16 34 {
Chris@16 35 public:
Chris@16 36 engine::want operator()(engine& eng,
Chris@16 37 boost::system::error_code& ec,
Chris@16 38 std::size_t& bytes_transferred) const
Chris@16 39 {
Chris@16 40 bytes_transferred = 0;
Chris@16 41 return eng.shutdown(ec);
Chris@16 42 }
Chris@16 43
Chris@16 44 template <typename Handler>
Chris@16 45 void call_handler(Handler& handler,
Chris@16 46 const boost::system::error_code& ec,
Chris@16 47 const std::size_t&) const
Chris@16 48 {
Chris@16 49 handler(ec);
Chris@16 50 }
Chris@16 51 };
Chris@16 52
Chris@16 53 #endif // !defined(BOOST_ASIO_ENABLE_OLD_SSL)
Chris@16 54
Chris@16 55 } // namespace detail
Chris@16 56 } // namespace ssl
Chris@16 57 } // namespace asio
Chris@16 58 } // namespace boost
Chris@16 59
Chris@16 60 #include <boost/asio/detail/pop_options.hpp>
Chris@16 61
Chris@16 62 #endif // BOOST_ASIO_SSL_DETAIL_SHUTDOWN_OP_HPP