defaults.hpp 870 B

123456789101112131415161718192021222324252627282930
  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_DEFAULTS_HPP
  8. #define BOOST_MYSQL_DEFAULTS_HPP
  9. #include <boost/config.hpp>
  10. #include <cstddef>
  11. namespace boost {
  12. namespace mysql {
  13. /// The default TCP port for the MySQL protocol.
  14. BOOST_INLINE_CONSTEXPR unsigned short default_port = 3306;
  15. /// The default TCP port for the MySQL protocol, as a string. Useful for hostname resolution.
  16. BOOST_INLINE_CONSTEXPR const char* default_port_string = "3306";
  17. /// The default initial size of the connection's internal buffer, in bytes.
  18. BOOST_INLINE_CONSTEXPR std::size_t default_initial_read_buffer_size = 1024;
  19. } // namespace mysql
  20. } // namespace boost
  21. #endif