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