tcp.hpp 572 B

123456789101112131415161718192021222324
  1. //
  2. // Copyright (c) 2019-2024 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. /// A connection to MySQL over a TCP socket.
  14. using tcp_connection = connection<boost::asio::ip::tcp::socket>;
  15. } // namespace mysql
  16. } // namespace boost
  17. #endif