forked from boostorg/beast
net::ssl::stream is canonical in examples
We no longer need to use beast::ssl_stream to improve write performance, as Asio now linearizes scatter/gather I/O in ssl::stream: https://github.com/chriskohlhoff/asio/commit/17637a48ccbfa2f63941d8393a7c8316a8df4a79
This commit is contained in:
committed by
Mohammad Nejati
parent
bd804b6520
commit
03b792faac
@@ -17,9 +17,9 @@
|
||||
|
||||
#include <boost/beast/core.hpp>
|
||||
#include <boost/beast/http.hpp>
|
||||
#include <boost/beast/ssl.hpp>
|
||||
#include <boost/beast/version.hpp>
|
||||
#include <boost/asio/ip/tcp.hpp>
|
||||
#include <boost/asio/ssl.hpp>
|
||||
#include <boost/asio/ssl/stream.hpp>
|
||||
#include <boost/config.hpp>
|
||||
#include <cstdlib>
|
||||
@@ -220,7 +220,7 @@ do_session(
|
||||
beast::error_code ec;
|
||||
|
||||
// Construct the stream around the socket
|
||||
beast::ssl_stream<tcp::socket&> stream{socket, ctx};
|
||||
ssl::stream<tcp::socket&> stream{socket, ctx};
|
||||
|
||||
// Perform the SSL handshake
|
||||
stream.handshake(ssl::stream_base::server, ec);
|
||||
|
||||
Reference in New Issue
Block a user