forked from boostorg/beast
Fixes to support Asio changes (API Change):
This adjusts Beast's interfaces and implementation to match the changes in Boost.Asio.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
// Test that header file is self-contained.
|
||||
#include <boost/beast/websocket/stream.hpp>
|
||||
|
||||
#include <boost/beast/core/make_strand.hpp>
|
||||
#include <boost/beast/core/tcp_stream.hpp>
|
||||
#include <boost/asio/strand.hpp>
|
||||
|
||||
@@ -157,11 +158,10 @@ public:
|
||||
{
|
||||
net::io_context ioc;
|
||||
{
|
||||
websocket::stream<tcp_stream<
|
||||
net::io_context::strand>> ws{net::io_context::strand(ioc)};
|
||||
websocket::stream<tcp_stream> ws{make_strand(ioc)};
|
||||
}
|
||||
{
|
||||
websocket::stream<tcp_stream<net::io_context::executor_type>> ws(ioc);
|
||||
websocket::stream<tcp_stream> ws(ioc);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user