$search
00001 // 00002 // stream_base.hpp 00003 // ~~~~~~~~~~~~~~~ 00004 // 00005 // Copyright (c) 2005-2008 Christopher M. Kohlhoff (chris at kohlhoff dot com) 00006 // 00007 // Distributed under the Boost Software License, Version 1.0. (See accompanying 00008 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 00009 // 00010 00011 #ifndef ASIO_SSL_STREAM_BASE_HPP 00012 #define ASIO_SSL_STREAM_BASE_HPP 00013 00014 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 00015 # pragma once 00016 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 00017 00018 #include "asio/detail/push_options.hpp" 00019 00020 #include "asio/detail/push_options.hpp" 00021 #include <boost/detail/workaround.hpp> 00022 #include "asio/detail/pop_options.hpp" 00023 00024 namespace asio { 00025 namespace ssl { 00026 00029 class stream_base 00030 { 00031 public: 00033 enum handshake_type 00034 { 00036 client, 00037 00039 server 00040 }; 00041 00042 protected: 00044 ~stream_base() 00045 { 00046 } 00047 00048 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) 00049 private: 00050 // Workaround to enable the empty base optimisation with Borland C++. 00051 char dummy_; 00052 #endif 00053 }; 00054 00055 } // namespace ssl 00056 } // namespace asio 00057 00058 #include "asio/detail/pop_options.hpp" 00059 00060 #endif // ASIO_SSL_STREAM_BASE_HPP