Skip to content

Commit 373f279

Browse files
committed
[FOLD] WIP
1 parent f825afa commit 373f279

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ set(BOOST_BEAST_DEPENDENCIES
5858
Boost::asio
5959
Boost::assert
6060
Boost::bind
61+
Boost::buffers
6162
Boost::config
6263
Boost::container
6364
Boost::container_hash

include/boost/beast/websocket/frame_reader.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <boost/beast/core/role.hpp>
1919
#include <boost/assert.hpp>
2020
#include <boost/beast/core/error.hpp>
21+
#include <boost/buffers/circular_buffer.hpp>
2122
#include <memory>
2223

2324
#include <boost/core/span.hpp>

include/boost/beast/websocket/impl/read.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,16 +199,16 @@ class stream<NextLayer, deflateSupported>::read_some_op
199199
if(bytes_transferred > 0)
200200
{
201201
system::error_code uec;
202-
auto const dest = impl.fs_.prepare();
202+
auto const dest = impl.fr_.prepare();
203203
buffers_suffix<decltype(
204204
impl.rd_buf.data())> in(impl.rd_buf.data());
205205
in.consume(impl.rd_buf.size() - bytes_transferred);
206-
impl.fs_.commit(asio::buffer_copy(
206+
impl.fr_.commit(asio::buffer_copy(
207207
asio::mutable_buffer(
208208
dest.data(),
209209
dest.size()),
210210
in));
211-
impl.fs_.read(uec);
211+
impl.fr_.read(uec);
212212
}
213213
}
214214
if(impl.check_stop_now(ec))

include/boost/beast/websocket/impl/stream_impl.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ struct stream<NextLayer, deflateSupported>::impl_type
124124
detail::decorator decorator_opt; // Decorator for HTTP messages
125125
timeout timeout_opt; // Timeout/idle settings
126126

127-
frame_reader fs_;
127+
frame_reader fr_;
128128

129129
template<class... Args>
130130
impl_type(Args&&... args)
@@ -135,7 +135,7 @@ struct stream<NextLayer, deflateSupported>::impl_type
135135
this->get_context(
136136
this->boost::empty_value<NextLayer>::get().get_executor()))
137137
, timer(this->boost::empty_value<NextLayer>::get().get_executor())
138-
, fs_(65536)
138+
, fr_(65536)
139139
{
140140
timeout_opt.handshake_timeout = none();
141141
timeout_opt.idle_timeout = none();
@@ -182,7 +182,7 @@ struct stream<NextLayer, deflateSupported>::impl_type
182182

183183
this->open_pmd(role);
184184

185-
fs_.reset(role);
185+
fr_.reset(role);
186186
}
187187

188188
void

0 commit comments

Comments
 (0)