Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-17 08:23:40

0001 //
0002 // ts/netfwd.hpp
0003 // ~~~~~~~~~~~~~
0004 //
0005 // Copyright (c) 2003-2025 Christopher M. Kohlhoff (chris at kohlhoff dot com)
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0008 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0009 //
0010 
0011 #ifndef BOOST_ASIO_TS_NETFWD_HPP
0012 #define BOOST_ASIO_TS_NETFWD_HPP
0013 
0014 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
0015 # pragma once
0016 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
0017 
0018 #include <boost/asio/detail/config.hpp>
0019 #include <boost/asio/detail/chrono.hpp>
0020 
0021 #if !defined(BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
0022 #include <boost/asio/execution/blocking.hpp>
0023 #include <boost/asio/execution/outstanding_work.hpp>
0024 #include <boost/asio/execution/relationship.hpp>
0025 #endif // !defined(BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
0026 
0027 #if !defined(GENERATING_DOCUMENTATION)
0028 
0029 #include <boost/asio/detail/push_options.hpp>
0030 
0031 namespace boost {
0032 namespace asio {
0033 
0034 class execution_context;
0035 
0036 template <typename T, typename Executor>
0037 class executor_binder;
0038 
0039 #if !defined(BOOST_ASIO_EXECUTOR_WORK_GUARD_DECL)
0040 #define BOOST_ASIO_EXECUTOR_WORK_GUARD_DECL
0041 
0042 template <typename Executor, typename = void, typename = void>
0043 class executor_work_guard;
0044 
0045 #endif // !defined(BOOST_ASIO_EXECUTOR_WORK_GUARD_DECL)
0046 
0047 template <typename Blocking, typename Relationship, typename Allocator>
0048 class basic_system_executor;
0049 
0050 #if defined(BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
0051 
0052 class executor;
0053 
0054 typedef executor any_io_executor;
0055 
0056 #else // defined(BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
0057 
0058 namespace execution {
0059 
0060 #if !defined(BOOST_ASIO_EXECUTION_ANY_EXECUTOR_FWD_DECL)
0061 #define BOOST_ASIO_EXECUTION_ANY_EXECUTOR_FWD_DECL
0062 
0063 template <typename... SupportableProperties>
0064 class any_executor;
0065 
0066 #endif // !defined(BOOST_ASIO_EXECUTION_ANY_EXECUTOR_FWD_DECL)
0067 
0068 template <typename U>
0069 struct context_as_t;
0070 
0071 template <typename Property>
0072 struct prefer_only;
0073 
0074 } // namespace execution
0075 
0076 class any_io_executor;
0077 
0078 #endif // defined(BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
0079 
0080 template <typename Executor>
0081 class strand;
0082 
0083 class io_context;
0084 
0085 template <typename Clock>
0086 struct wait_traits;
0087 
0088 #if !defined(BOOST_ASIO_BASIC_WAITABLE_TIMER_FWD_DECL)
0089 #define BOOST_ASIO_BASIC_WAITABLE_TIMER_FWD_DECL
0090 
0091 template <typename Clock,
0092     typename WaitTraits = wait_traits<Clock>,
0093     typename Executor = any_io_executor>
0094 class basic_waitable_timer;
0095 
0096 #endif // !defined(BOOST_ASIO_BASIC_WAITABLE_TIMER_FWD_DECL)
0097 
0098 typedef basic_waitable_timer<chrono::system_clock> system_timer;
0099 
0100 typedef basic_waitable_timer<chrono::steady_clock> steady_timer;
0101 
0102 typedef basic_waitable_timer<chrono::high_resolution_clock>
0103   high_resolution_timer;
0104 
0105 #if !defined(BOOST_ASIO_BASIC_SOCKET_FWD_DECL)
0106 #define BOOST_ASIO_BASIC_SOCKET_FWD_DECL
0107 
0108 template <typename Protocol, typename Executor = any_io_executor>
0109 class basic_socket;
0110 
0111 #endif // !defined(BOOST_ASIO_BASIC_SOCKET_FWD_DECL)
0112 
0113 #if !defined(BOOST_ASIO_BASIC_DATAGRAM_SOCKET_FWD_DECL)
0114 #define BOOST_ASIO_BASIC_DATAGRAM_SOCKET_FWD_DECL
0115 
0116 template <typename Protocol, typename Executor = any_io_executor>
0117 class basic_datagram_socket;
0118 
0119 #endif // !defined(BOOST_ASIO_BASIC_DATAGRAM_SOCKET_FWD_DECL)
0120 
0121 #if !defined(BOOST_ASIO_BASIC_STREAM_SOCKET_FWD_DECL)
0122 #define BOOST_ASIO_BASIC_STREAM_SOCKET_FWD_DECL
0123 
0124 // Forward declaration with defaulted arguments.
0125 template <typename Protocol, typename Executor = any_io_executor>
0126 class basic_stream_socket;
0127 
0128 #endif // !defined(BOOST_ASIO_BASIC_STREAM_SOCKET_FWD_DECL)
0129 
0130 #if !defined(BOOST_ASIO_BASIC_SOCKET_ACCEPTOR_FWD_DECL)
0131 #define BOOST_ASIO_BASIC_SOCKET_ACCEPTOR_FWD_DECL
0132 
0133 template <typename Protocol, typename Executor = any_io_executor>
0134 class basic_socket_acceptor;
0135 
0136 #endif // !defined(BOOST_ASIO_BASIC_SOCKET_ACCEPTOR_FWD_DECL)
0137 
0138 #if !defined(BOOST_ASIO_BASIC_SOCKET_STREAMBUF_FWD_DECL)
0139 #define BOOST_ASIO_BASIC_SOCKET_STREAMBUF_FWD_DECL
0140 
0141 // Forward declaration with defaulted arguments.
0142 template <typename Protocol,
0143     typename Clock = chrono::steady_clock,
0144     typename WaitTraits = wait_traits<Clock>>
0145 class basic_socket_streambuf;
0146 
0147 #endif // !defined(BOOST_ASIO_BASIC_SOCKET_STREAMBUF_FWD_DECL)
0148 
0149 #if !defined(BOOST_ASIO_BASIC_SOCKET_IOSTREAM_FWD_DECL)
0150 #define BOOST_ASIO_BASIC_SOCKET_IOSTREAM_FWD_DECL
0151 
0152 // Forward declaration with defaulted arguments.
0153 template <typename Protocol,
0154     typename Clock = chrono::steady_clock,
0155     typename WaitTraits = wait_traits<Clock>>
0156 class basic_socket_iostream;
0157 
0158 #endif // !defined(BOOST_ASIO_BASIC_SOCKET_IOSTREAM_FWD_DECL)
0159 
0160 namespace ip {
0161 
0162 class address;
0163 
0164 class address_v4;
0165 
0166 class address_v6;
0167 
0168 template <typename Address>
0169 class basic_address_iterator;
0170 
0171 typedef basic_address_iterator<address_v4> address_v4_iterator;
0172 
0173 typedef basic_address_iterator<address_v6> address_v6_iterator;
0174 
0175 template <typename Address>
0176 class basic_address_range;
0177 
0178 typedef basic_address_range<address_v4> address_v4_range;
0179 
0180 typedef basic_address_range<address_v6> address_v6_range;
0181 
0182 class network_v4;
0183 
0184 class network_v6;
0185 
0186 template <typename InternetProtocol>
0187 class basic_endpoint;
0188 
0189 template <typename InternetProtocol>
0190 class basic_resolver_entry;
0191 
0192 template <typename InternetProtocol>
0193 class basic_resolver_results;
0194 
0195 #if !defined(BOOST_ASIO_IP_BASIC_RESOLVER_FWD_DECL)
0196 #define BOOST_ASIO_IP_BASIC_RESOLVER_FWD_DECL
0197 
0198 template <typename InternetProtocol, typename Executor = any_io_executor>
0199 class basic_resolver;
0200 
0201 #endif // !defined(BOOST_ASIO_IP_BASIC_RESOLVER_FWD_DECL)
0202 
0203 class tcp;
0204 
0205 class udp;
0206 
0207 } // namespace ip
0208 } // namespace asio
0209 } // namespace boost
0210 
0211 #include <boost/asio/detail/pop_options.hpp>
0212 
0213 #endif // !defined(GENERATING_DOCUMENTATION)
0214 
0215 #endif // BOOST_ASIO_TS_NETFWD_HPP