Examples use flat_buffer

fix #1488
This commit is contained in:
Vinnie Falco
2019-03-01 12:02:28 -08:00
parent 7806672f42
commit 272b6f23e4
17 changed files with 19 additions and 18 deletions
@@ -99,7 +99,7 @@ do_sync_session(websocket::stream<beast::tcp_stream>& ws)
for(;;)
{
beast::multi_buffer buffer;
beast::flat_buffer buffer;
ws.read(buffer, ec);
if(ec == websocket::error::closed)
@@ -141,7 +141,7 @@ do_sync_listen(
class async_session : public std::enable_shared_from_this<async_session>
{
websocket::stream<beast::tcp_stream> ws_;
beast::multi_buffer buffer_;
beast::flat_buffer buffer_;
public:
// Take ownership of the socket
@@ -355,7 +355,7 @@ do_coro_session(
for(;;)
{
beast::multi_buffer buffer;
beast::flat_buffer buffer;
ws.async_read(buffer, yield[ec]);
if(ec == websocket::error::closed)