Files
boost_beast/test/doc/websocket_common.ipp
T

22 lines
553 B
C++
Raw Normal View History

2019-02-25 17:14:04 -08:00
//
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail 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)
//
// Official repository: https://github.com/boostorg/beast
//
//[code_websocket_1b
namespace net = boost::asio;
2019-02-26 11:02:18 -08:00
namespace beast = boost::beast;
2019-02-25 17:14:04 -08:00
using namespace boost::beast;
using namespace boost::beast::websocket;
net::io_context ioc;
tcp_stream sock(ioc);
2019-03-14 17:40:41 +01:00
net::ssl::context ctx(net::ssl::context::tlsv12);
2019-02-25 17:14:04 -08:00
//]