Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.1KB

  1. //
  2. // ssl/stream_base.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. #ifndef ASIO_SSL_STREAM_BASE_HPP
  11. #define ASIO_SSL_STREAM_BASE_HPP
  12. #if defined(_MSC_VER) && (_MSC_VER >= 1200)
  13. # pragma once
  14. #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
  15. #include "asio/detail/config.hpp"
  16. #include "asio/detail/push_options.hpp"
  17. namespace asio {
  18. namespace ssl {
  19. /// The stream_base class is used as a base for the asio::ssl::stream
  20. /// class template so that we have a common place to define various enums.
  21. class stream_base
  22. {
  23. public:
  24. /// Different handshake types.
  25. enum handshake_type
  26. {
  27. /// Perform handshaking as a client.
  28. client,
  29. /// Perform handshaking as a server.
  30. server
  31. };
  32. protected:
  33. /// Protected destructor to prevent deletion through this type.
  34. ~stream_base()
  35. {
  36. }
  37. };
  38. } // namespace ssl
  39. } // namespace asio
  40. #include "asio/detail/pop_options.hpp"
  41. #endif // ASIO_SSL_STREAM_BASE_HPP