Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2018. The current version is 1.90.0.
Write partial message data on the stream.
template< class ConstBufferSequence> std::size_t write_some( bool fin, ConstBufferSequence const& buffers, error_code& ec);
This function is used to write some or all of a message's payload to the stream. The call will block until one of the following conditions is true:
This operation is implemented in terms of one or more calls to the stream's
write_some function.
If this is the beginning of a new message, the message opcode will be
set to text or binary as per the current setting of the websocket::stream::binary option. The actual payload
sent may be transformed as per the WebSocket protocol settings.
|
Name |
Description |
|---|---|
|
|
|
|
|
The input buffer sequence holding the data to write. |
|
|
Set to indicate what error occurred, if any. |
The number of bytes written from the buffers. If an error occurred, this will be less than the sum of the buffer sizes.
The number of bytes consumed in the input buffers.