123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- //
- // ts/netfwd.hpp
- // ~~~~~~~~~~~~~
- //
- // Copyright (c) 2003-2021 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 BOOST_ASIO_TS_NETFWD_HPP
- #define BOOST_ASIO_TS_NETFWD_HPP
- #if defined(_MSC_VER) && (_MSC_VER >= 1200)
- # pragma once
- #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
- #include <boost/asio/detail/config.hpp>
- #if defined(BOOST_ASIO_HAS_CHRONO)
- # include <boost/asio/detail/chrono.hpp>
- #endif // defined(BOOST_ASIO_HAS_CHRONO)
- #if defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
- # include <boost/asio/detail/date_time_fwd.hpp>
- #endif // defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
- #if !defined(BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
- #include <boost/asio/execution/blocking.hpp>
- #include <boost/asio/execution/outstanding_work.hpp>
- #include <boost/asio/execution/relationship.hpp>
- #endif // !defined(BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
- #if !defined(GENERATING_DOCUMENTATION)
- #include <boost/asio/detail/push_options.hpp>
- namespace boost {
- namespace asio {
- class execution_context;
- template <typename T, typename Executor>
- class executor_binder;
- #if !defined(BOOST_ASIO_EXECUTOR_WORK_GUARD_DECL)
- #define BOOST_ASIO_EXECUTOR_WORK_GUARD_DECL
- template <typename Executor, typename = void, typename = void>
- class executor_work_guard;
- #endif // !defined(BOOST_ASIO_EXECUTOR_WORK_GUARD_DECL)
- template <typename Blocking, typename Relationship, typename Allocator>
- class basic_system_executor;
- #if defined(BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
- class executor;
- typedef executor any_io_executor;
- #else // defined(BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
- namespace execution {
- #if !defined(BOOST_ASIO_EXECUTION_ANY_EXECUTOR_FWD_DECL)
- #define BOOST_ASIO_EXECUTION_ANY_EXECUTOR_FWD_DECL
- #if defined(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
- template <typename... SupportableProperties>
- class any_executor;
- #else // defined(BOOST_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(BOOST_ASIO_HAS_VARIADIC_TEMPLATES)
- #endif // !defined(BOOST_ASIO_EXECUTION_ANY_EXECUTOR_FWD_DECL)
- template <typename U>
- struct context_as_t;
- template <typename Property>
- struct prefer_only;
- } // namespace execution
- class any_io_executor;
- #endif // defined(BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
- template <typename Executor>
- class strand;
- class io_context;
- template <typename Clock>
- struct wait_traits;
- #if defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
- template <typename Time>
- struct time_traits;
- #endif // defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
- #if !defined(BOOST_ASIO_BASIC_WAITABLE_TIMER_FWD_DECL)
- #define BOOST_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(BOOST_ASIO_BASIC_WAITABLE_TIMER_FWD_DECL)
- #if defined(BOOST_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(BOOST_ASIO_HAS_CHRONO)
- #if !defined(BOOST_ASIO_BASIC_SOCKET_FWD_DECL)
- #define BOOST_ASIO_BASIC_SOCKET_FWD_DECL
- template <typename Protocol, typename Executor = any_io_executor>
- class basic_socket;
- #endif // !defined(BOOST_ASIO_BASIC_SOCKET_FWD_DECL)
- #if !defined(BOOST_ASIO_BASIC_DATAGRAM_SOCKET_FWD_DECL)
- #define BOOST_ASIO_BASIC_DATAGRAM_SOCKET_FWD_DECL
- template <typename Protocol, typename Executor = any_io_executor>
- class basic_datagram_socket;
- #endif // !defined(BOOST_ASIO_BASIC_DATAGRAM_SOCKET_FWD_DECL)
- #if !defined(BOOST_ASIO_BASIC_STREAM_SOCKET_FWD_DECL)
- #define BOOST_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(BOOST_ASIO_BASIC_STREAM_SOCKET_FWD_DECL)
- #if !defined(BOOST_ASIO_BASIC_SOCKET_ACCEPTOR_FWD_DECL)
- #define BOOST_ASIO_BASIC_SOCKET_ACCEPTOR_FWD_DECL
- template <typename Protocol, typename Executor = any_io_executor>
- class basic_socket_acceptor;
- #endif // !defined(BOOST_ASIO_BASIC_SOCKET_ACCEPTOR_FWD_DECL)
- #if !defined(BOOST_ASIO_BASIC_SOCKET_STREAMBUF_FWD_DECL)
- #define BOOST_ASIO_BASIC_SOCKET_STREAMBUF_FWD_DECL
- // Forward declaration with defaulted arguments.
- template <typename Protocol,
- #if defined(BOOST_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(BOOST_ASIO_BASIC_SOCKET_STREAMBUF_FWD_DECL)
- #if !defined(BOOST_ASIO_BASIC_SOCKET_IOSTREAM_FWD_DECL)
- #define BOOST_ASIO_BASIC_SOCKET_IOSTREAM_FWD_DECL
- // Forward declaration with defaulted arguments.
- template <typename Protocol,
- #if defined(BOOST_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(BOOST_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(BOOST_ASIO_IP_BASIC_RESOLVER_FWD_DECL)
- #define BOOST_ASIO_IP_BASIC_RESOLVER_FWD_DECL
- template <typename InternetProtocol, typename Executor = any_io_executor>
- class basic_resolver;
- #endif // !defined(BOOST_ASIO_IP_BASIC_RESOLVER_FWD_DECL)
- class tcp;
- class udp;
- } // namespace ip
- } // namespace asio
- } // namespace boost
- #include <boost/asio/detail/pop_options.hpp>
- #endif // !defined(GENERATING_DOCUMENTATION)
- #endif // BOOST_ASIO_TS_NETFWD_HPP
|