Examples use flat_buffer

fix #1488
This commit is contained in:
Vinnie Falco committed 2019-03-01 12:02:28 -08:00
1 parent 7806672f42
commit 272b6f23e4
17 files changed
+19 -18

No files matched your search

@@ -47,7 +47,7 @@ class session : public std::enable_shared_from_this<session>
tcp::resolver resolver_;
websocket::stream<
beast::ssl_stream<beast::tcp_stream>> ws_;
beast::multi_buffer buffer_;
beast::flat_buffer buffer_;
std::string host_;
std::string text_;
@@ -41,7 +41,7 @@ class session : public std::enable_shared_from_this<session>
{
tcp::resolver resolver_;
websocket::stream<beast::tcp_stream> ws_;
beast::multi_buffer buffer_;
beast::flat_buffer buffer_;
std::string host_;
std::string text_;
@@ -108,7 +108,7 @@ do_session(
return fail(ec, "write");
// This buffer will hold the incoming message
beast::multi_buffer buffer;
beast::flat_buffer buffer;
// Read a message into our buffer
ws.async_read(buffer, yield[ec]);
@@ -93,7 +93,7 @@ do_session(
return fail(ec, "write");
// This buffer will hold the incoming message
beast::multi_buffer buffer;
beast::flat_buffer buffer;
// Read a message into our buffer
ws.async_read(buffer, yield[ec]);
@@ -89,7 +89,7 @@ int main(int argc, char** argv)
ws.write(net::buffer(std::string(text)));
// This buffer will hold the incoming message
beast::multi_buffer buffer;
beast::flat_buffer buffer;
// Read a message into our buffer
ws.read(buffer);
@@ -76,7 +76,7 @@ int main(int argc, char** argv)
ws.write(net::buffer(std::string(text)));
// This buffer will hold the incoming message
beast::multi_buffer buffer;
beast::flat_buffer buffer;
// Read a message into our buffer
ws.read(buffer);