You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

133 lines
3.7KB

  1. // <experimental/netfwd> -*- C++ -*-
  2. // Copyright (C) 2015-2020 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. * @ingroup networking-ts
  23. */
  24. #ifndef _GLIBCXX_EXPERIMENTAL_NETFWD
  25. #define _GLIBCXX_EXPERIMENTAL_NETFWD 1
  26. #pragma GCC system_header
  27. #if __cplusplus >= 201402L
  28. // #define __cpp_lib_experimental_net 201803
  29. // #define __cpp_lib_experimental_net_extensible 201803
  30. #include <chrono>
  31. namespace std _GLIBCXX_VISIBILITY(default)
  32. {
  33. _GLIBCXX_BEGIN_NAMESPACE_VERSION
  34. namespace experimental
  35. {
  36. namespace net
  37. {
  38. inline namespace v1
  39. {
  40. /** @defgroup networking-ts Networking TS
  41. * @ingroup experimental
  42. *
  43. * ISO/IEC TS 19216:2018 C++ Extensions for Networking
  44. * @{
  45. */
  46. class execution_context;
  47. template<typename _Tp, typename _Executor>
  48. class executor_binder;
  49. template<typename _Executor>
  50. class executor_work_guard;
  51. class system_executor;
  52. class executor;
  53. template<typename _Executor>
  54. class strand;
  55. class io_service;
  56. template<typename _Clock> struct wait_traits;
  57. template<typename _Clock, typename _WaitTraits = wait_traits<_Clock>>
  58. class basic_waitable_timer;
  59. typedef basic_waitable_timer<chrono::system_clock> system_timer;
  60. typedef basic_waitable_timer<chrono::steady_clock> steady_timer;
  61. typedef basic_waitable_timer<chrono::high_resolution_clock>
  62. high_resolution_timer;
  63. template<typename _Protocol>
  64. class basic_socket;
  65. template<typename _Protocol>
  66. class basic_datagram_socket;
  67. template<typename _Protocol>
  68. class basic_stream_socket;
  69. template<typename _Protocol>
  70. class basic_socket_acceptor;
  71. template<typename _Protocol, typename _Clock = chrono::steady_clock,
  72. typename _WaitTraits = wait_traits<_Clock>>
  73. class basic_socket_streambuf;
  74. template<typename _Protocol, typename _Clock = chrono::steady_clock,
  75. typename _WaitTraits = wait_traits<_Clock>>
  76. class basic_socket_iostream;
  77. /// @}
  78. namespace ip
  79. {
  80. /**
  81. * @addtogroup networking-ts
  82. * @{
  83. */
  84. class address;
  85. class address_v4;
  86. class address_v6;
  87. class address_iterator_v4;
  88. class address_iterator_v6;
  89. class address_range_v4;
  90. class address_range_v6;
  91. class network_v4;
  92. class network_v6;
  93. template<typename _InternetProtocol>
  94. class basic_endpoint;
  95. template<typename _InternetProtocol>
  96. class basic_resolver_entry;
  97. template<typename _InternetProtocol>
  98. class basic_resolver_results;
  99. template<typename _InternetProtocol>
  100. class basic_resolver;
  101. class tcp;
  102. class udp;
  103. /// @}
  104. } // namespace ip
  105. } // namespace v1
  106. } // namespace net
  107. } // namespace experimental
  108. _GLIBCXX_END_NAMESPACE_VERSION
  109. } // namespace std
  110. #endif // C++14
  111. #endif // _GLIBCXX_EXPERIMENTAL_NETFWD