tcp.hpp 781 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // Copyright (c) 2019-2025 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. #ifndef BOOST_MYSQL_TCP_HPP
  8. #define BOOST_MYSQL_TCP_HPP
  9. #include <boost/mysql/connection.hpp>
  10. #include <boost/asio/ip/tcp.hpp>
  11. namespace boost {
  12. namespace mysql {
  13. /**
  14. * \brief (Legacy) A connection to MySQL over a TCP socket.
  15. *
  16. * \par Legacy
  17. * New code should use \ref any_connection instead of
  18. * \ref connection and its helper typedefs, as it's simpler to use
  19. * and provides the same level of performance.
  20. */
  21. using tcp_connection = connection<boost::asio::ip::tcp::socket>;
  22. } // namespace mysql
  23. } // namespace boost
  24. #endif