tcp_stream.hpp 846 B

12345678910111213141516171819202122232425262728293031323334
  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. #ifndef BOOST_BEAST_CORE_TCP_STREAM_HPP
  10. #define BOOST_BEAST_CORE_TCP_STREAM_HPP
  11. #include <boost/beast/core/detail/config.hpp>
  12. #include <boost/beast/core/basic_stream.hpp>
  13. #include <boost/beast/core/rate_policy.hpp>
  14. #include <boost/asio/executor.hpp>
  15. #include <boost/asio/ip/tcp.hpp>
  16. namespace boost {
  17. namespace beast {
  18. /** A TCP/IP stream socket with timeouts and a polymorphic executor.
  19. @see basic_stream
  20. */
  21. using tcp_stream = basic_stream<
  22. net::ip::tcp,
  23. net::executor,
  24. unlimited_rate_policy>;
  25. } // beast
  26. } // boost
  27. #endif