websocket_common.ipp 553 B

123456789101112131415161718192021
  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. //[code_websocket_1b
  10. namespace net = boost::asio;
  11. namespace beast = boost::beast;
  12. using namespace boost::beast;
  13. using namespace boost::beast::websocket;
  14. net::io_context ioc;
  15. tcp_stream sock(ioc);
  16. net::ssl::context ctx(net::ssl::context::tlsv12);
  17. //]