Examples use ssl_stream

fix #1455
This commit is contained in:
Vinnie Falco committed 2019-02-16 15:09:35 -08:00
1 parent 22dcb4a3cb
commit 00e8c381cd
6 files changed
+11 -6

No files matched your search

@@ -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);