connection_state.hpp 961 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // Copyright (c) 2025 Marcelo Zimbres Silva (mzimbres@gmail.com),
  3. // Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
  4. //
  5. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. //
  8. #ifndef BOOST_REDIS_CONNECTION_STATE_HPP
  9. #define BOOST_REDIS_CONNECTION_STATE_HPP
  10. #include <boost/redis/config.hpp>
  11. #include <boost/redis/detail/multiplexer.hpp>
  12. #include <boost/redis/logger.hpp>
  13. #include <boost/redis/request.hpp>
  14. #include <boost/redis/response.hpp>
  15. #include <string>
  16. namespace boost::redis::detail {
  17. // Contains all the members in connection that don't depend on the Executor.
  18. // Makes implementing sans-io algorithms easier
  19. struct connection_state {
  20. buffered_logger logger;
  21. config cfg{};
  22. multiplexer mpx{};
  23. std::string setup_diagnostic{};
  24. request ping_req{};
  25. };
  26. } // namespace boost::redis::detail
  27. #endif // BOOST_REDIS_CONNECTOR_HPP