netfwd 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. // <experimental/netfwd> -*- C++ -*-
  2. // Copyright (C) 2015-2019 Free Software Foundation, Inc.
  3. //
  4. // This file is part of the GNU ISO C++ Library. This library is free
  5. // software; you can redistribute it and/or modify it under the
  6. // terms of the GNU General Public License as published by the
  7. // Free Software Foundation; either version 3, or (at your option)
  8. // any later version.
  9. // This library is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU General Public License for more details.
  13. // Under Section 7 of GPL version 3, you are granted additional
  14. // permissions described in the GCC Runtime Library Exception, version
  15. // 3.1, as published by the Free Software Foundation.
  16. // You should have received a copy of the GNU General Public License and
  17. // a copy of the GCC Runtime Library Exception along with this program;
  18. // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  19. // <http://www.gnu.org/licenses/>.
  20. /** @file experimental/netfwd
  21. * This is a TS C++ Library header.
  22. */
  23. #ifndef _GLIBCXX_EXPERIMENTAL_NETFWD
  24. #define _GLIBCXX_EXPERIMENTAL_NETFWD 1
  25. #pragma GCC system_header
  26. #if __cplusplus >= 201402L
  27. // #define __cpp_lib_experimental_net 201803
  28. // #define __cpp_lib_experimental_net_extensible 201803
  29. #include <chrono>
  30. namespace std _GLIBCXX_VISIBILITY(default)
  31. {
  32. _GLIBCXX_BEGIN_NAMESPACE_VERSION
  33. namespace experimental
  34. {
  35. namespace net
  36. {
  37. inline namespace v1
  38. {
  39. /**
  40. * @ingroup networking
  41. * @{
  42. */
  43. class execution_context;
  44. template<typename _Tp, typename _Executor>
  45. class executor_binder;
  46. template<typename _Executor>
  47. class executor_work_guard;
  48. class system_executor;
  49. class executor;
  50. template<typename _Executor>
  51. class strand;
  52. class io_service;
  53. template<typename _Clock> struct wait_traits;
  54. template<typename _Clock, typename _WaitTraits = wait_traits<_Clock>>
  55. class basic_waitable_timer;
  56. typedef basic_waitable_timer<chrono::system_clock> system_timer;
  57. typedef basic_waitable_timer<chrono::steady_clock> steady_timer;
  58. typedef basic_waitable_timer<chrono::high_resolution_clock>
  59. high_resolution_timer;
  60. template<typename _Protocol>
  61. class basic_socket;
  62. template<typename _Protocol>
  63. class basic_datagram_socket;
  64. template<typename _Protocol>
  65. class basic_stream_socket;
  66. template<typename _Protocol>
  67. class basic_socket_acceptor;
  68. template<typename _Protocol, typename _Clock = chrono::steady_clock,
  69. typename _WaitTraits = wait_traits<_Clock>>
  70. class basic_socket_streambuf;
  71. template<typename _Protocol, typename _Clock = chrono::steady_clock,
  72. typename _WaitTraits = wait_traits<_Clock>>
  73. class basic_socket_iostream;
  74. /// @}
  75. namespace ip
  76. {
  77. /**
  78. * @ingroup networking
  79. * @{
  80. */
  81. class address;
  82. class address_v4;
  83. class address_v6;
  84. class address_iterator_v4;
  85. class address_iterator_v6;
  86. class address_range_v4;
  87. class address_range_v6;
  88. class network_v4;
  89. class network_v6;
  90. template<typename _InternetProtocol>
  91. class basic_endpoint;
  92. template<typename _InternetProtocol>
  93. class basic_resolver_entry;
  94. template<typename _InternetProtocol>
  95. class basic_resolver_results;
  96. template<typename _InternetProtocol>
  97. class basic_resolver;
  98. class tcp;
  99. class udp;
  100. /// @}
  101. } // namespace ip
  102. } // namespace v1
  103. } // namespace net
  104. } // namespace experimental
  105. _GLIBCXX_END_NAMESPACE_VERSION
  106. } // namespace std
  107. #endif // C++14
  108. #endif // _GLIBCXX_EXPERIMENTAL_NETFWD