![]() |
Home | Libraries | People | FAQ | More |
Write partial message data on the stream.
template< class ConstBufferSequence> std::size_t write_some( bool fin, ConstBufferSequence const& buffers);
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. |
The number of bytes written from the buffers. If an error occurred, this will be less than the sum of the buffer sizes.
Type |
Thrown On |
---|---|
|
Thrown on failure. |