Realistic 3D camera system
3D camera system components
handshake_op.hpp
Go to the documentation of this file.
1 //
2 // ssl/detail/handshake_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_HANDSHAKE_OP_HPP
12 #define ASIO_SSL_DETAIL_HANDSHAKE_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  : type_(type)
37  {
38  }
39 
41  asio::error_code& ec,
42  std::size_t& bytes_transferred) const
43  {
44  bytes_transferred = 0;
45  return eng.handshake(type_, ec);
46  }
47 
48  template <typename Handler>
49  void call_handler(Handler& handler,
50  const asio::error_code& ec,
51  const std::size_t&) const
52  {
53  handler(ec);
54  }
55 
56 private:
58 };
59 
60 #endif // !defined(ASIO_ENABLE_OLD_SSL)
61 
62 } // namespace detail
63 } // namespace ssl
64 } // namespace asio
65 
67 
68 #endif // ASIO_SSL_DETAIL_HANDSHAKE_OP_HPP
ASIO_DECL want handshake(stream_base::handshake_type type, asio::error_code &ec)
Definition: engine.ipp:133
handshake_op(stream_base::handshake_type type)
handshake_type
Different handshake types.
Definition: stream_base.hpp:31
void call_handler(Handler &handler, const asio::error_code &ec, const std::size_t &) const
engine::want operator()(engine &eng, asio::error_code &ec, std::size_t &bytes_transferred) const
Class to represent an error code value.
Definition: error_code.hpp:80