netfwd.hpp
6.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
//
// ts/netfwd.hpp
// ~~~~~~~~~~~~~
//
// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef ASIO_TS_NETFWD_HPP
#define ASIO_TS_NETFWD_HPP
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
# pragma once
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
#include "asio/detail/config.hpp"
#if defined(ASIO_HAS_CHRONO)
# include "asio/detail/chrono.hpp"
#endif // defined(ASIO_HAS_CHRONO)
#if defined(ASIO_HAS_BOOST_DATE_TIME)
# include "asio/detail/date_time_fwd.hpp"
#endif // defined(ASIO_HAS_BOOST_DATE_TIME)
#if !defined(ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
#include "asio/execution/blocking.hpp"
#include "asio/execution/outstanding_work.hpp"
#include "asio/execution/relationship.hpp"
#endif // !defined(ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
#if !defined(GENERATING_DOCUMENTATION)
#include "asio/detail/push_options.hpp"
namespace asio {
class execution_context;
template <typename T, typename Executor>
class executor_binder;
#if !defined(ASIO_EXECUTOR_WORK_GUARD_DECL)
#define ASIO_EXECUTOR_WORK_GUARD_DECL
template <typename Executor, typename = void>
class executor_work_guard;
#endif // !defined(ASIO_EXECUTOR_WORK_GUARD_DECL)
template <typename Blocking, typename Relationship, typename Allocator>
class basic_system_executor;
#if defined(ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
class executor;
typedef executor any_io_executor;
#else // defined(ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
namespace execution {
#if !defined(ASIO_EXECUTION_ANY_EXECUTOR_FWD_DECL)
#define ASIO_EXECUTION_ANY_EXECUTOR_FWD_DECL
#if defined(ASIO_HAS_VARIADIC_TEMPLATES)
template <typename... SupportableProperties>
class any_executor;
#else // defined(ASIO_HAS_VARIADIC_TEMPLATES)
template <typename = void, typename = void, typename = void,
typename = void, typename = void, typename = void,
typename = void, typename = void, typename = void>
class any_executor;
#endif // defined(ASIO_HAS_VARIADIC_TEMPLATES)
#endif // !defined(ASIO_EXECUTION_ANY_EXECUTOR_FWD_DECL)
template <typename U>
struct context_as_t;
template <typename Property>
struct prefer_only;
} // namespace execution
typedef execution::any_executor<
execution::context_as_t<execution_context&>,
execution::blocking_t::never_t,
execution::prefer_only<execution::blocking_t::possibly_t>,
execution::prefer_only<execution::outstanding_work_t::tracked_t>,
execution::prefer_only<execution::outstanding_work_t::untracked_t>,
execution::prefer_only<execution::relationship_t::fork_t>,
execution::prefer_only<execution::relationship_t::continuation_t>
> any_io_executor;
#endif // defined(ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
template <typename Executor>
class strand;
class io_context;
template <typename Clock>
struct wait_traits;
#if defined(ASIO_HAS_BOOST_DATE_TIME)
template <typename Time>
struct time_traits;
#endif // defined(ASIO_HAS_BOOST_DATE_TIME)
#if !defined(ASIO_BASIC_WAITABLE_TIMER_FWD_DECL)
#define ASIO_BASIC_WAITABLE_TIMER_FWD_DECL
template <typename Clock,
typename WaitTraits = wait_traits<Clock>,
typename Executor = any_io_executor>
class basic_waitable_timer;
#endif // !defined(ASIO_BASIC_WAITABLE_TIMER_FWD_DECL)
#if defined(ASIO_HAS_CHRONO)
typedef basic_waitable_timer<chrono::system_clock> system_timer;
typedef basic_waitable_timer<chrono::steady_clock> steady_timer;
typedef basic_waitable_timer<chrono::high_resolution_clock>
high_resolution_timer;
#endif // defined(ASIO_HAS_CHRONO)
#if !defined(ASIO_BASIC_SOCKET_FWD_DECL)
#define ASIO_BASIC_SOCKET_FWD_DECL
template <typename Protocol, typename Executor = any_io_executor>
class basic_socket;
#endif // !defined(ASIO_BASIC_SOCKET_FWD_DECL)
#if !defined(ASIO_BASIC_DATAGRAM_SOCKET_FWD_DECL)
#define ASIO_BASIC_DATAGRAM_SOCKET_FWD_DECL
template <typename Protocol, typename Executor = any_io_executor>
class basic_datagram_socket;
#endif // !defined(ASIO_BASIC_DATAGRAM_SOCKET_FWD_DECL)
#if !defined(ASIO_BASIC_STREAM_SOCKET_FWD_DECL)
#define ASIO_BASIC_STREAM_SOCKET_FWD_DECL
// Forward declaration with defaulted arguments.
template <typename Protocol, typename Executor = any_io_executor>
class basic_stream_socket;
#endif // !defined(ASIO_BASIC_STREAM_SOCKET_FWD_DECL)
#if !defined(ASIO_BASIC_SOCKET_ACCEPTOR_FWD_DECL)
#define ASIO_BASIC_SOCKET_ACCEPTOR_FWD_DECL
template <typename Protocol, typename Executor = any_io_executor>
class basic_socket_acceptor;
#endif // !defined(ASIO_BASIC_SOCKET_ACCEPTOR_FWD_DECL)
#if !defined(ASIO_BASIC_SOCKET_STREAMBUF_FWD_DECL)
#define ASIO_BASIC_SOCKET_STREAMBUF_FWD_DECL
// Forward declaration with defaulted arguments.
template <typename Protocol,
#if defined(ASIO_HAS_BOOST_DATE_TIME) \
|| defined(GENERATING_DOCUMENTATION)
typename Clock = boost::posix_time::ptime,
typename WaitTraits = time_traits<Clock> >
#else
typename Clock = chrono::steady_clock,
typename WaitTraits = wait_traits<Clock> >
#endif
class basic_socket_streambuf;
#endif // !defined(ASIO_BASIC_SOCKET_STREAMBUF_FWD_DECL)
#if !defined(ASIO_BASIC_SOCKET_IOSTREAM_FWD_DECL)
#define ASIO_BASIC_SOCKET_IOSTREAM_FWD_DECL
// Forward declaration with defaulted arguments.
template <typename Protocol,
#if defined(ASIO_HAS_BOOST_DATE_TIME) \
|| defined(GENERATING_DOCUMENTATION)
typename Clock = boost::posix_time::ptime,
typename WaitTraits = time_traits<Clock> >
#else
typename Clock = chrono::steady_clock,
typename WaitTraits = wait_traits<Clock> >
#endif
class basic_socket_iostream;
#endif // !defined(ASIO_BASIC_SOCKET_IOSTREAM_FWD_DECL)
namespace ip {
class address;
class address_v4;
class address_v6;
template <typename Address>
class basic_address_iterator;
typedef basic_address_iterator<address_v4> address_v4_iterator;
typedef basic_address_iterator<address_v6> address_v6_iterator;
template <typename Address>
class basic_address_range;
typedef basic_address_range<address_v4> address_v4_range;
typedef basic_address_range<address_v6> address_v6_range;
class network_v4;
class network_v6;
template <typename InternetProtocol>
class basic_endpoint;
template <typename InternetProtocol>
class basic_resolver_entry;
template <typename InternetProtocol>
class basic_resolver_results;
#if !defined(ASIO_IP_BASIC_RESOLVER_FWD_DECL)
#define ASIO_IP_BASIC_RESOLVER_FWD_DECL
template <typename InternetProtocol, typename Executor = any_io_executor>
class basic_resolver;
#endif // !defined(ASIO_IP_BASIC_RESOLVER_FWD_DECL)
class tcp;
class udp;
} // namespace ip
} // namespace asio
#include "asio/detail/pop_options.hpp"
#endif // !defined(GENERATING_DOCUMENTATION)
#endif // ASIO_TS_NETFWD_HPP