Examples use ssl_stream

fix #1455
This commit is contained in:
Vinnie Falco
2019-02-16 05:29:13 -08:00
parent 22dcb4a3cb
commit 00e8c381cd
6 changed files with 11 additions and 6 deletions

View File

@@ -18,6 +18,7 @@
#include <boost/beast/core.hpp>
#include <boost/beast/websocket.hpp>
#include <boost/beast/websocket/ssl.hpp>
#include <boost/beast/_experimental/core/ssl_stream.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/ssl/stream.hpp>
#include <cstdlib>
@@ -42,7 +43,7 @@ do_session(tcp::socket& socket, ssl::context& ctx)
try
{
// Construct the websocket stream around the socket
websocket::stream<ssl::stream<tcp::socket&>> ws{socket, ctx};
websocket::stream<beast::ssl_stream<tcp::socket&>> ws{socket, ctx};
// Perform the SSL handshake
ws.next_layer().handshake(ssl::stream_base::server);