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 the documentation for a snapshot of the develop branch, built from commit 7b149d1613.
PrevUpHomeNext
websocket::stream::write_some (1 of 2 overloads)

Write some message data.

Synopsis
template<
    class ConstBufferSequence>
std::size_t
write_some(
    bool fin,
    ConstBufferSequence const& buffers);
Description

This function is used to send part of a message. The call blocks until one of the following is true:

The algorithm, known as a composed operation, is implemented in terms of calls to the next layer's write_some function. If this is the beginning of a new message, the message opcode will be set to text or binary based on the current setting of the binary (or text) option. The actual payload sent may be transformed as per the WebSocket protocol settings.

Parameters

Name

Description

fin

true if this is the last part of the message.

buffers

The buffers containing the message part to send.

Return Value

The number of bytes sent from the buffers.

Exceptions

Type

Thrown On

system_error

Thrown on failure.


PrevUpHomeNext