Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
596 changes: 298 additions & 298 deletions doc/modules/ROOT/pages/guide/buffers.adoc

Large diffs are not rendered by default.

580 changes: 290 additions & 290 deletions doc/modules/ROOT/pages/reference/design-rationale.adoc

Large diffs are not rendered by default.

554 changes: 277 additions & 277 deletions doc/modules/ROOT/pages/reference/glossary.adoc

Large diffs are not rendered by default.

18 changes: 7 additions & 11 deletions include/boost/corosio/io_stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <boost/corosio/detail/config.hpp>
#include <boost/corosio/io_object.hpp>
#include <boost/corosio/io_result.hpp>
#include <boost/capy/any_bufref.hpp>
#include <boost/capy/buffers/buffer_param.hpp>
#include <boost/capy/ex/any_executor_ref.hpp>
#include <boost/system/error_code.hpp>

Expand Down Expand Up @@ -129,8 +129,7 @@ class BOOST_COROSIO_DECL io_stream : public io_object
std::coroutine_handle<> h,
Ex const& ex) -> std::coroutine_handle<>
{
capy::any_bufref param(buffers_);
ios_.get().read_some(h, ex, param, token_, &ec_, &bytes_transferred_);
ios_.get().read_some(h, ex, buffers_, token_, &ec_, &bytes_transferred_);
return std::noop_coroutine();
}

Expand All @@ -141,8 +140,7 @@ class BOOST_COROSIO_DECL io_stream : public io_object
std::stop_token token) -> std::coroutine_handle<>
{
token_ = std::move(token);
capy::any_bufref param(buffers_);
ios_.get().read_some(h, ex, param, token_, &ec_, &bytes_transferred_);
ios_.get().read_some(h, ex, buffers_, token_, &ec_, &bytes_transferred_);
return std::noop_coroutine();
}
};
Expand Down Expand Up @@ -181,8 +179,7 @@ class BOOST_COROSIO_DECL io_stream : public io_object
std::coroutine_handle<> h,
Ex const& ex) -> std::coroutine_handle<>
{
capy::any_bufref param(buffers_);
ios_.get().write_some(h, ex, param, token_, &ec_, &bytes_transferred_);
ios_.get().write_some(h, ex, buffers_, token_, &ec_, &bytes_transferred_);
return std::noop_coroutine();
}

Expand All @@ -193,8 +190,7 @@ class BOOST_COROSIO_DECL io_stream : public io_object
std::stop_token token) -> std::coroutine_handle<>
{
token_ = std::move(token);
capy::any_bufref param(buffers_);
ios_.get().write_some(h, ex, param, token_, &ec_, &bytes_transferred_);
ios_.get().write_some(h, ex, buffers_, token_, &ec_, &bytes_transferred_);
return std::noop_coroutine();
}
};
Expand All @@ -205,15 +201,15 @@ class BOOST_COROSIO_DECL io_stream : public io_object
virtual void read_some(
std::coroutine_handle<>,
capy::any_executor_ref,
capy::any_bufref&,
capy::buffer_param,
std::stop_token,
system::error_code*,
std::size_t*) = 0;

virtual void write_some(
std::coroutine_handle<>,
capy::any_executor_ref,
capy::any_bufref&,
capy::buffer_param,
std::stop_token,
system::error_code*,
std::size_t*) = 0;
Expand Down
2 changes: 1 addition & 1 deletion include/boost/corosio/read.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <boost/corosio/detail/config.hpp>
#include <boost/corosio/io_stream.hpp>
#include <boost/corosio/io_result.hpp>
#include <boost/capy/any_bufref.hpp>
#include <boost/capy/buffers/buffer_param.hpp>
#include <boost/corosio/consuming_buffers.hpp>
#include <boost/capy/buffers.hpp>
#include <boost/capy/error.hpp>
Expand Down
2 changes: 1 addition & 1 deletion include/boost/corosio/socket.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <boost/corosio/detail/except.hpp>
#include <boost/corosio/io_stream.hpp>
#include <boost/corosio/io_result.hpp>
#include <boost/capy/any_bufref.hpp>
#include <boost/capy/buffers/buffer_param.hpp>
#include <boost/corosio/endpoint.hpp>
#include <boost/capy/ex/any_executor_ref.hpp>
#include <boost/capy/concept/io_awaitable.hpp>
Expand Down
2 changes: 1 addition & 1 deletion include/boost/corosio/write.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <boost/corosio/detail/config.hpp>
#include <boost/corosio/io_stream.hpp>
#include <boost/corosio/io_result.hpp>
#include <boost/capy/any_bufref.hpp>
#include <boost/capy/buffers/buffer_param.hpp>
#include <boost/corosio/consuming_buffers.hpp>
#include <boost/capy/buffers.hpp>
#include <boost/capy/task.hpp>
Expand Down
8 changes: 4 additions & 4 deletions src/corosio/src/detail/epoll/sockets.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ class epoll_socket_impl
void read_some(
std::coroutine_handle<>,
capy::any_executor_ref,
capy::any_bufref&,
capy::buffer_param,
std::stop_token,
system::error_code*,
std::size_t*) override;

void write_some(
std::coroutine_handle<>,
capy::any_executor_ref,
capy::any_bufref&,
capy::buffer_param,
std::stop_token,
system::error_code*,
std::size_t*) override;
Expand Down Expand Up @@ -308,7 +308,7 @@ epoll_socket_impl::
read_some(
std::coroutine_handle<> h,
capy::any_executor_ref d,
capy::any_bufref& param,
capy::buffer_param param,
std::stop_token token,
system::error_code* ec,
std::size_t* bytes_out)
Expand Down Expand Up @@ -372,7 +372,7 @@ epoll_socket_impl::
write_some(
std::coroutine_handle<> h,
capy::any_executor_ref d,
capy::any_bufref& param,
capy::buffer_param param,
std::stop_token token,
system::error_code* ec,
std::size_t* bytes_out)
Expand Down
4 changes: 2 additions & 2 deletions src/corosio/src/detail/iocp/sockets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ win_socket_impl_internal::
read_some(
capy::any_coro h,
capy::any_executor_ref d,
capy::any_bufref& param,
capy::buffer_param param,
std::stop_token token,
system::error_code* ec,
std::size_t* bytes_out)
Expand Down Expand Up @@ -492,7 +492,7 @@ win_socket_impl_internal::
write_some(
capy::any_coro h,
capy::any_executor_ref d,
capy::any_bufref& param,
capy::buffer_param param,
std::stop_token token,
system::error_code* ec,
std::size_t* bytes_out)
Expand Down
Loading
Loading