asio
asio copied to clipboard
Asio C++ Library
I'm working on implementing a Client and Server proxy system where the proxy is responsible for receiving commands from the client and forwarding them to the server, and vice versa....
I've been trying to integrate asio into my experimental coroutine actor library (which is supposed to make it easy to write thread-safe code with coroutines without using locks, even internally),...
The code below never calls its continuation and exits without error. ```cpp #include #include #include using asio::experimental::make_parallel_group; using asio::experimental::wait_for_all; int main() { try { asio::io_context ioc; std::vector ops; make_parallel_group(ops).async_wait(wait_for_all(), [](auto...)...
This is a copy of this issue: https://stackoverflow.com/questions/77255378/boost-asio-co-spawn-and-spawn-as-async-initiating-functions-cause-segfault. Here is a brief description: Using `co_spawn` and `spawn` as async initiating functions within a stackful coroutine (using the `yield` completion token)...
https://github.com/chriskohlhoff/asio/blob/89b0a4138a92883ae2514be68018a6c837a5b65f/asio/include/asio/strand.hpp#L317 > Instead, it will be scheduled by the underlying executor's defer function. Should be corrected as: > Instead, it will be scheduled by the underlying executor's post function.
Also the delay_timer_ member should be freed before calling the user-supplied completion handler (as in the composed_7 and composed_8 examples).
Compilation fails at https://github.com/chriskohlhoff/asio/blob/4bcd6d5f6a6cf09d987832b9ef3a31136c6b7443/asio/include/asio/impl/read_until.hpp#L685 as `details::regex_match_flags` is defined at https://github.com/chriskohlhoff/asio/blob/4bcd6d5f6a6cf09d987832b9ef3a31136c6b7443/asio/include/asio/impl/read_until.hpp#L236 This is however part of the larger https://github.com/chriskohlhoff/asio/blob/4bcd6d5f6a6cf09d987832b9ef3a31136c6b7443/asio/include/asio/impl/read_until.hpp#L73 scope. So, the compile flag ASIO_NO_DYNAMIC_BUFFER_V1 prevents the definition of `regex_match_flags` which...
Hello, I'm using boost::process::v2 on Windows and linux (alma and debian) in a multithread process. When the child process calls notify_fork and tries to lock registered_descriptors_mutex_ (epoll_reactor.ipp:130), registered_descriptors_mutex_ is already...
Version: Boost develop System: Ubuntu 22.04, clang-18, Debug, C++20 The following fails: ``` #include #include #include #include namespace asio = boost::asio; int main() { asio::io_context ctx; asio::ip::tcp::resolver resolv(ctx); asio::generic::stream_protocol::socket sock(ctx);...
The `asio::experimental::generator` has a `asio::cancellation_state` that can be accessed by `co_await asio::this_coro::cacellation_state`, just like `asio::awaitable`. But the `get_cancellation_slot()` return the `slot` that `state` resides in, not the `slot of state`,which...