boostorg / boostorg/beast

No gather interface for async_write

Open
#2,033 33 comments 0 reactions 1 assignee Claimed by @madmongo1 View on GitHub
Feature
Dominant language
C++
Stars
4.8k
Forks
694
Avg merge
12h 48m
Merged PRs (30d)
1

Description

This is a request for confirmation, but if confirmed, it would be a nice feature request.

At the Boost.Asio TCP level we have a "gather" interface which makes it possible to `async_write` data from multiple buffers at once - see Scatter/Gather here:
https://www.boost.org/doc/libs/1_66_0/doc/html/boost_asio/reference/buffer.html

However, at the WS level, there doesn't seem to be a way to do this. The WS `async_write` takes a `ConstBufferSequence` which may contain one message payload scattered across multiple buffers, is there a way to pass multiple message payloads in one function call? Apols if I am missing it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.