]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/asio/include/boost/asio/ssl/stream_base.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / asio / include / boost / asio / ssl / stream_base.hpp
1 //
2 // ssl/stream_base.hpp
3 // ~~~~~~~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2016 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 BOOST_ASIO_SSL_STREAM_BASE_HPP
12 #define BOOST_ASIO_SSL_STREAM_BASE_HPP
13
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17
18 #include <boost/asio/detail/config.hpp>
19
20 #include <boost/asio/detail/push_options.hpp>
21
22 namespace boost {
23 namespace asio {
24 namespace ssl {
25
26 /// The stream_base class is used as a base for the boost::asio::ssl::stream
27 /// class template so that we have a common place to define various enums.
28 class stream_base
29 {
30 public:
31 /// Different handshake types.
32 enum handshake_type
33 {
34 /// Perform handshaking as a client.
35 client,
36
37 /// Perform handshaking as a server.
38 server
39 };
40
41 protected:
42 /// Protected destructor to prevent deletion through this type.
43 ~stream_base()
44 {
45 }
46 };
47
48 } // namespace ssl
49 } // namespace asio
50 } // namespace boost
51
52 #include <boost/asio/detail/pop_options.hpp>
53
54 #endif // BOOST_ASIO_SSL_STREAM_BASE_HPP