netfwd.hpp 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. //
  2. // ts/netfwd.hpp
  3. // ~~~~~~~~~~~~~
  4. //
  5. // Copyright (c) 2003-2019 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_TS_NETFWD_HPP
  11. #define BOOST_ASIO_TS_NETFWD_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. #if defined(BOOST_ASIO_HAS_CHRONO)
  17. # include <boost/asio/detail/chrono.hpp>
  18. #endif // defined(BOOST_ASIO_HAS_CHRONO)
  19. #if defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
  20. # include <boost/asio/detail/date_time_fwd.hpp>
  21. #endif // defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
  22. #if !defined(GENERATING_DOCUMENTATION)
  23. #include <boost/asio/detail/push_options.hpp>
  24. namespace boost {
  25. namespace asio {
  26. class execution_context;
  27. template <typename T, typename Executor>
  28. class executor_binder;
  29. template <typename Executor>
  30. class executor_work_guard;
  31. class system_executor;
  32. class executor;
  33. template <typename Executor>
  34. class strand;
  35. class io_context;
  36. template <typename Clock>
  37. struct wait_traits;
  38. #if defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
  39. template <typename Time>
  40. struct time_traits;
  41. #endif // defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
  42. #if !defined(BOOST_ASIO_BASIC_WAITABLE_TIMER_FWD_DECL)
  43. #define BOOST_ASIO_BASIC_WAITABLE_TIMER_FWD_DECL
  44. template <typename Clock,
  45. typename WaitTraits = wait_traits<Clock>,
  46. typename Executor = executor>
  47. class basic_waitable_timer;
  48. #endif // !defined(BOOST_ASIO_BASIC_WAITABLE_TIMER_FWD_DECL)
  49. #if defined(BOOST_ASIO_HAS_CHRONO)
  50. typedef basic_waitable_timer<chrono::system_clock> system_timer;
  51. typedef basic_waitable_timer<chrono::steady_clock> steady_timer;
  52. typedef basic_waitable_timer<chrono::high_resolution_clock>
  53. high_resolution_timer;
  54. #endif // defined(BOOST_ASIO_HAS_CHRONO)
  55. #if !defined(BOOST_ASIO_BASIC_SOCKET_FWD_DECL)
  56. #define BOOST_ASIO_BASIC_SOCKET_FWD_DECL
  57. template <typename Protocol, typename Executor = executor>
  58. class basic_socket;
  59. #endif // !defined(BOOST_ASIO_BASIC_SOCKET_FWD_DECL)
  60. #if !defined(BOOST_ASIO_BASIC_DATAGRAM_SOCKET_FWD_DECL)
  61. #define BOOST_ASIO_BASIC_DATAGRAM_SOCKET_FWD_DECL
  62. template <typename Protocol, typename Executor = executor>
  63. class basic_datagram_socket;
  64. #endif // !defined(BOOST_ASIO_BASIC_DATAGRAM_SOCKET_FWD_DECL)
  65. #if !defined(BOOST_ASIO_BASIC_STREAM_SOCKET_FWD_DECL)
  66. #define BOOST_ASIO_BASIC_STREAM_SOCKET_FWD_DECL
  67. // Forward declaration with defaulted arguments.
  68. template <typename Protocol, typename Executor = executor>
  69. class basic_stream_socket;
  70. #endif // !defined(BOOST_ASIO_BASIC_STREAM_SOCKET_FWD_DECL)
  71. #if !defined(BOOST_ASIO_BASIC_SOCKET_ACCEPTOR_FWD_DECL)
  72. #define BOOST_ASIO_BASIC_SOCKET_ACCEPTOR_FWD_DECL
  73. template <typename Protocol, typename Executor = executor>
  74. class basic_socket_acceptor;
  75. #endif // !defined(BOOST_ASIO_BASIC_SOCKET_ACCEPTOR_FWD_DECL)
  76. #if !defined(BOOST_ASIO_BASIC_SOCKET_STREAMBUF_FWD_DECL)
  77. #define BOOST_ASIO_BASIC_SOCKET_STREAMBUF_FWD_DECL
  78. // Forward declaration with defaulted arguments.
  79. template <typename Protocol,
  80. #if defined(BOOST_ASIO_HAS_BOOST_DATE_TIME) \
  81. || defined(GENERATING_DOCUMENTATION)
  82. typename Clock = boost::posix_time::ptime,
  83. typename WaitTraits = time_traits<Clock> >
  84. #else
  85. typename Clock = chrono::steady_clock,
  86. typename WaitTraits = wait_traits<Clock> >
  87. #endif
  88. class basic_socket_streambuf;
  89. #endif // !defined(BOOST_ASIO_BASIC_SOCKET_STREAMBUF_FWD_DECL)
  90. #if !defined(BOOST_ASIO_BASIC_SOCKET_IOSTREAM_FWD_DECL)
  91. #define BOOST_ASIO_BASIC_SOCKET_IOSTREAM_FWD_DECL
  92. // Forward declaration with defaulted arguments.
  93. template <typename Protocol,
  94. #if defined(BOOST_ASIO_HAS_BOOST_DATE_TIME) \
  95. || defined(GENERATING_DOCUMENTATION)
  96. typename Clock = boost::posix_time::ptime,
  97. typename WaitTraits = time_traits<Clock> >
  98. #else
  99. typename Clock = chrono::steady_clock,
  100. typename WaitTraits = wait_traits<Clock> >
  101. #endif
  102. class basic_socket_iostream;
  103. #endif // !defined(BOOST_ASIO_BASIC_SOCKET_IOSTREAM_FWD_DECL)
  104. namespace ip {
  105. class address;
  106. class address_v4;
  107. class address_v6;
  108. template <typename Address>
  109. class basic_address_iterator;
  110. typedef basic_address_iterator<address_v4> address_v4_iterator;
  111. typedef basic_address_iterator<address_v6> address_v6_iterator;
  112. template <typename Address>
  113. class basic_address_range;
  114. typedef basic_address_range<address_v4> address_v4_range;
  115. typedef basic_address_range<address_v6> address_v6_range;
  116. class network_v4;
  117. class network_v6;
  118. template <typename InternetProtocol>
  119. class basic_endpoint;
  120. template <typename InternetProtocol>
  121. class basic_resolver_entry;
  122. template <typename InternetProtocol>
  123. class basic_resolver_results;
  124. #if !defined(BOOST_ASIO_IP_BASIC_RESOLVER_FWD_DECL)
  125. #define BOOST_ASIO_IP_BASIC_RESOLVER_FWD_DECL
  126. template <typename InternetProtocol, typename Executor = executor>
  127. class basic_resolver;
  128. #endif // !defined(BOOST_ASIO_IP_BASIC_RESOLVER_FWD_DECL)
  129. class tcp;
  130. class udp;
  131. } // namespace ip
  132. } // namespace asio
  133. } // namespace boost
  134. #include <boost/asio/detail/pop_options.hpp>
  135. #endif // !defined(GENERATING_DOCUMENTATION)
  136. #endif // BOOST_ASIO_TS_NETFWD_HPP