Skip to content

Commit 910a761

Browse files
committed
any_bufref is in capy
1 parent 66beb19 commit 910a761

File tree

10 files changed

+24
-153
lines changed

10 files changed

+24
-153
lines changed

include/boost/corosio/any_bufref.hpp

Lines changed: 0 additions & 129 deletions
This file was deleted.

include/boost/corosio/io_stream.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <boost/corosio/detail/config.hpp>
1414
#include <boost/corosio/io_object.hpp>
1515
#include <boost/corosio/io_result.hpp>
16-
#include <boost/corosio/any_bufref.hpp>
16+
#include <boost/capy/any_bufref.hpp>
1717
#include <boost/capy/ex/any_executor_ref.hpp>
1818
#include <boost/system/error_code.hpp>
1919

@@ -127,7 +127,7 @@ class BOOST_COROSIO_DECL io_stream : public io_object
127127
std::coroutine_handle<> h,
128128
Ex const& ex) -> std::coroutine_handle<>
129129
{
130-
any_bufref param(buffers_);
130+
capy::any_bufref param(buffers_);
131131
ios_.get().read_some(h, ex, param, token_, &ec_, &bytes_transferred_);
132132
return std::noop_coroutine();
133133
}
@@ -139,7 +139,7 @@ class BOOST_COROSIO_DECL io_stream : public io_object
139139
std::stop_token token) -> std::coroutine_handle<>
140140
{
141141
token_ = std::move(token);
142-
any_bufref param(buffers_);
142+
capy::any_bufref param(buffers_);
143143
ios_.get().read_some(h, ex, param, token_, &ec_, &bytes_transferred_);
144144
return std::noop_coroutine();
145145
}
@@ -179,7 +179,7 @@ class BOOST_COROSIO_DECL io_stream : public io_object
179179
std::coroutine_handle<> h,
180180
Ex const& ex) -> std::coroutine_handle<>
181181
{
182-
any_bufref param(buffers_);
182+
capy::any_bufref param(buffers_);
183183
ios_.get().write_some(h, ex, param, token_, &ec_, &bytes_transferred_);
184184
return std::noop_coroutine();
185185
}
@@ -191,7 +191,7 @@ class BOOST_COROSIO_DECL io_stream : public io_object
191191
std::stop_token token) -> std::coroutine_handle<>
192192
{
193193
token_ = std::move(token);
194-
any_bufref param(buffers_);
194+
capy::any_bufref param(buffers_);
195195
ios_.get().write_some(h, ex, param, token_, &ec_, &bytes_transferred_);
196196
return std::noop_coroutine();
197197
}
@@ -203,15 +203,15 @@ class BOOST_COROSIO_DECL io_stream : public io_object
203203
virtual void read_some(
204204
std::coroutine_handle<>,
205205
capy::any_executor_ref,
206-
any_bufref&,
206+
capy::any_bufref&,
207207
std::stop_token,
208208
system::error_code*,
209209
std::size_t*) = 0;
210210

211211
virtual void write_some(
212212
std::coroutine_handle<>,
213213
capy::any_executor_ref,
214-
any_bufref&,
214+
capy::any_bufref&,
215215
std::stop_token,
216216
system::error_code*,
217217
std::size_t*) = 0;

include/boost/corosio/read.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <boost/corosio/detail/config.hpp>
1414
#include <boost/corosio/io_stream.hpp>
1515
#include <boost/corosio/io_result.hpp>
16-
#include <boost/corosio/any_bufref.hpp>
16+
#include <boost/capy/any_bufref.hpp>
1717
#include <boost/corosio/consuming_buffers.hpp>
1818
#include <boost/capy/buffers.hpp>
1919
#include <boost/capy/error.hpp>

include/boost/corosio/socket.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <boost/corosio/detail/except.hpp>
1515
#include <boost/corosio/io_stream.hpp>
1616
#include <boost/corosio/io_result.hpp>
17-
#include <boost/corosio/any_bufref.hpp>
17+
#include <boost/capy/any_bufref.hpp>
1818
#include <boost/corosio/endpoint.hpp>
1919
#include <boost/capy/ex/any_executor_ref.hpp>
2020
#include <boost/capy/concept/io_awaitable.hpp>

include/boost/corosio/write.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <boost/corosio/detail/config.hpp>
1414
#include <boost/corosio/io_stream.hpp>
1515
#include <boost/corosio/io_result.hpp>
16-
#include <boost/corosio/any_bufref.hpp>
16+
#include <boost/capy/any_bufref.hpp>
1717
#include <boost/corosio/consuming_buffers.hpp>
1818
#include <boost/capy/buffers.hpp>
1919
#include <boost/capy/task.hpp>

src/corosio/src/detail/posix_sockets.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ class posix_socket_impl
6868
void read_some(
6969
std::coroutine_handle<>,
7070
capy::any_executor_ref,
71-
any_bufref&,
71+
capy::any_bufref&,
7272
std::stop_token,
7373
system::error_code*,
7474
std::size_t*) override;
7575

7676
void write_some(
7777
std::coroutine_handle<>,
7878
capy::any_executor_ref,
79-
any_bufref&,
79+
capy::any_bufref&,
8080
std::stop_token,
8181
system::error_code*,
8282
std::size_t*) override;
@@ -276,7 +276,7 @@ posix_socket_impl::
276276
read_some(
277277
std::coroutine_handle<> h,
278278
capy::any_executor_ref d,
279-
any_bufref& param,
279+
capy::any_bufref& param,
280280
std::stop_token token,
281281
system::error_code* ec,
282282
std::size_t* bytes_out)
@@ -336,7 +336,7 @@ posix_socket_impl::
336336
write_some(
337337
std::coroutine_handle<> h,
338338
capy::any_executor_ref d,
339-
any_bufref& param,
339+
capy::any_bufref& param,
340340
std::stop_token token,
341341
system::error_code* ec,
342342
std::size_t* bytes_out)

src/corosio/src/detail/win/sockets.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ win_socket_impl::
247247
read_some(
248248
capy::any_coro h,
249249
capy::any_executor_ref d,
250-
any_bufref& param,
250+
capy::any_bufref& param,
251251
std::stop_token token,
252252
system::error_code* ec,
253253
std::size_t* bytes_out)
@@ -308,7 +308,7 @@ win_socket_impl::
308308
write_some(
309309
capy::any_coro h,
310310
capy::any_executor_ref d,
311-
any_bufref& param,
311+
capy::any_bufref& param,
312312
std::stop_token token,
313313
system::error_code* ec,
314314
std::size_t* bytes_out)

src/corosio/src/detail/win/sockets.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ class win_socket_impl
130130
void read_some(
131131
std::coroutine_handle<>,
132132
capy::any_executor_ref,
133-
any_bufref&,
133+
capy::any_bufref&,
134134
std::stop_token,
135135
system::error_code*,
136136
std::size_t*) override;
137137

138138
void write_some(
139139
std::coroutine_handle<>,
140140
capy::any_executor_ref,
141-
any_bufref&,
141+
capy::any_bufref&,
142142
std::stop_token,
143143
system::error_code*,
144144
std::size_t*) override;

src/corosio/src/test/mocket.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ class mocket_impl
9090
void read_some(
9191
std::coroutine_handle<> h,
9292
capy::any_executor_ref d,
93-
any_bufref& buffers,
93+
capy::any_bufref& buffers,
9494
std::stop_token token,
9595
system::error_code* ec,
9696
std::size_t* bytes_transferred) override;
9797

9898
void write_some(
9999
std::coroutine_handle<> h,
100100
capy::any_executor_ref d,
101-
any_bufref& buffers,
101+
capy::any_bufref& buffers,
102102
std::stop_token token,
103103
system::error_code* ec,
104104
std::size_t* bytes_transferred) override;
@@ -257,7 +257,7 @@ mocket_impl::
257257
read_some(
258258
std::coroutine_handle<> h,
259259
capy::any_executor_ref d,
260-
any_bufref& buffers,
260+
capy::any_bufref& buffers,
261261
std::stop_token token,
262262
system::error_code* ec,
263263
std::size_t* bytes_transferred)
@@ -310,7 +310,7 @@ mocket_impl::
310310
write_some(
311311
std::coroutine_handle<> h,
312312
capy::any_executor_ref d,
313-
any_bufref& buffers,
313+
capy::any_bufref& buffers,
314314
std::stop_token token,
315315
system::error_code* ec,
316316
std::size_t* bytes_transferred)

src/wolfssl/src/wolfssl_stream.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ struct wolfssl_stream_impl_
582582
void read_some(
583583
std::coroutine_handle<> h,
584584
capy::any_executor_ref d,
585-
any_bufref& param,
585+
capy::any_bufref& param,
586586
std::stop_token token,
587587
system::error_code* ec,
588588
std::size_t* bytes) override
@@ -600,7 +600,7 @@ struct wolfssl_stream_impl_
600600
void write_some(
601601
std::coroutine_handle<> h,
602602
capy::any_executor_ref d,
603-
any_bufref& param,
603+
capy::any_bufref& param,
604604
std::stop_token token,
605605
system::error_code* ec,
606606
std::size_t* bytes) override

0 commit comments

Comments
 (0)