reactor_fwd.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // detail/reactor_fwd.hpp
  3. // ~~~~~~~~~~~~~~~~~~~~~~
  4. //
  5. // Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com)
  6. //
  7. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  8. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  9. //
  10. #ifndef BOOST_ASIO_DETAIL_REACTOR_FWD_HPP
  11. #define BOOST_ASIO_DETAIL_REACTOR_FWD_HPP
  12. #if defined(_MSC_VER) && (_MSC_VER >= 1200)
  13. # pragma once
  14. #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
  15. #include <boost/asio/detail/config.hpp>
  16. namespace boost {
  17. namespace asio {
  18. namespace detail {
  19. #if defined(BOOST_ASIO_HAS_IOCP) || defined(BOOST_ASIO_WINDOWS_RUNTIME)
  20. typedef class null_reactor reactor;
  21. #elif defined(BOOST_ASIO_HAS_IOCP)
  22. typedef class select_reactor reactor;
  23. #elif defined(BOOST_ASIO_HAS_EPOLL)
  24. typedef class epoll_reactor reactor;
  25. #elif defined(BOOST_ASIO_HAS_KQUEUE)
  26. typedef class kqueue_reactor reactor;
  27. #elif defined(BOOST_ASIO_HAS_DEV_POLL)
  28. typedef class dev_poll_reactor reactor;
  29. #else
  30. typedef class select_reactor reactor;
  31. #endif
  32. } // namespace detail
  33. } // namespace asio
  34. } // namespace boost
  35. #endif // BOOST_ASIO_DETAIL_REACTOR_FWD_HPP