Realistic 3D camera system
3D camera system components
shutdown_op.hpp
Go to the documentation of this file.
1 //
2 // ssl/detail/shutdown_op.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 //
10 
11 #ifndef ASIO_SSL_DETAIL_SHUTDOWN_OP_HPP
12 #define ASIO_SSL_DETAIL_SHUTDOWN_OP_HPP
13 
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
18 #include "asio/detail/config.hpp"
19 
20 #if !defined(ASIO_ENABLE_OLD_SSL)
22 #endif // !defined(ASIO_ENABLE_OLD_SSL)
23 
25 
26 namespace asio {
27 namespace ssl {
28 namespace detail {
29 
30 #if !defined(ASIO_ENABLE_OLD_SSL)
31 
33 {
34 public:
36  asio::error_code& ec,
37  std::size_t& bytes_transferred) const
38  {
39  bytes_transferred = 0;
40  return eng.shutdown(ec);
41  }
42 
43  template <typename Handler>
44  void call_handler(Handler& handler,
45  const asio::error_code& ec,
46  const std::size_t&) const
47  {
48  handler(ec);
49  }
50 };
51 
52 #endif // !defined(ASIO_ENABLE_OLD_SSL)
53 
54 } // namespace detail
55 } // namespace ssl
56 } // namespace asio
57 
59 
60 #endif // ASIO_SSL_DETAIL_SHUTDOWN_OP_HPP
void call_handler(Handler &handler, const asio::error_code &ec, const std::size_t &) const
Definition: shutdown_op.hpp:44
Class to represent an error code value.
Definition: error_code.hpp:80
engine::want operator()(engine &eng, asio::error_code &ec, std::size_t &bytes_transferred) const
Definition: shutdown_op.hpp:35
ASIO_DECL want shutdown(asio::error_code &ec)
Definition: engine.ipp:140