1 // 2 // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com) 3 // 4 // Distributed under the Boost Software License, Version 1.0. (See accompanying 5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 6 // 7 // Official repository: https://github.com/boostorg/beast 8 // 9 10 #ifndef BOOST_BEAST_CORE_TCP_STREAM_HPP 11 #define BOOST_BEAST_CORE_TCP_STREAM_HPP 12 13 #include <boost/beast/core/detail/config.hpp> 14 #include <boost/beast/core/basic_stream.hpp> 15 #include <boost/beast/core/rate_policy.hpp> 16 #include <boost/asio/executor.hpp> 17 #include <boost/asio/ip/tcp.hpp> 18 19 namespace boost { 20 namespace beast { 21 22 /** A TCP/IP stream socket with timeouts and a polymorphic executor. 23 24 @see basic_stream 25 */ 26 using tcp_stream = basic_stream< 27 net::ip::tcp, 28 net::any_io_executor, 29 unlimited_rate_policy>; 30 31 } // beast 32 } // boost 33 34 #endif 35