|
||||
File indexing completed on 2025-01-18 09:29:02
0001 // 0002 // ssl/stream_base.hpp 0003 // ~~~~~~~~~~~~~~~~~~~ 0004 // 0005 // Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com) 0006 // 0007 // Distributed under the Boost Software License, Version 1.0. (See accompanying 0008 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 0009 // 0010 0011 #ifndef BOOST_ASIO_SSL_STREAM_BASE_HPP 0012 #define BOOST_ASIO_SSL_STREAM_BASE_HPP 0013 0014 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 0015 # pragma once 0016 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 0017 0018 #include <boost/asio/detail/config.hpp> 0019 0020 #include <boost/asio/detail/push_options.hpp> 0021 0022 namespace boost { 0023 namespace asio { 0024 namespace ssl { 0025 0026 /// The stream_base class is used as a base for the boost::asio::ssl::stream 0027 /// class template so that we have a common place to define various enums. 0028 class stream_base 0029 { 0030 public: 0031 /// Different handshake types. 0032 enum handshake_type 0033 { 0034 /// Perform handshaking as a client. 0035 client, 0036 0037 /// Perform handshaking as a server. 0038 server 0039 }; 0040 0041 protected: 0042 /// Protected destructor to prevent deletion through this type. 0043 ~stream_base() 0044 { 0045 } 0046 }; 0047 0048 } // namespace ssl 0049 } // namespace asio 0050 } // namespace boost 0051 0052 #include <boost/asio/detail/pop_options.hpp> 0053 0054 #endif // BOOST_ASIO_SSL_STREAM_BASE_HPP
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |