Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

async_write

The async_write function is a composed asynchronous operation that writes a certain amount of data to a stream before completion.

Start an asynchronous operation to write all of the supplied data to a stream.

template<
    typename AsyncWriteStream,
    typename ConstBufferSequence,
    typename WriteToken = default_completion_token_t<typename AsyncWriteStream::executor_type>>
auto async_write(
    AsyncWriteStream & s,
    const ConstBufferSequence & buffers,
    WriteToken && token = default_completion_token_t< typename AsyncWriteStream::executor_type >(),
    constraint_t< is_const_buffer_sequence< ConstBufferSequence >::value >  = 0);
  » more...

Start an asynchronous operation to write a certain amount of data to a stream.

template<
    typename AsyncWriteStream,
    typename ConstBufferSequence,
    typename CompletionCondition,
    typename WriteToken>
auto async_write(
    AsyncWriteStream & s,
    const ConstBufferSequence & buffers,
    CompletionCondition completion_condition,
    WriteToken && token,
    constraint_t< is_const_buffer_sequence< ConstBufferSequence >::value >  = 0);
  » more...

Start an asynchronous operation to write all of the supplied data to a stream.

template<
    typename AsyncWriteStream,
    typename DynamicBuffer_v1,
    typename WriteToken = default_completion_token_t<typename AsyncWriteStream::executor_type>>
auto async_write(
    AsyncWriteStream & s,
    DynamicBuffer_v1 && buffers,
    WriteToken && token = default_completion_token_t< typename AsyncWriteStream::executor_type >(),
    constraint_t< is_dynamic_buffer_v1< decay_t< DynamicBuffer_v1 > >::value >  = 0,
    constraint_t< !is_dynamic_buffer_v2< decay_t< DynamicBuffer_v1 > >::value >  = 0);
  » more...

Start an asynchronous operation to write a certain amount of data to a stream.

template<
    typename AsyncWriteStream,
    typename DynamicBuffer_v1,
    typename CompletionCondition,
    typename WriteToken>
auto async_write(
    AsyncWriteStream & s,
    DynamicBuffer_v1 && buffers,
    CompletionCondition completion_condition,
    WriteToken && token,
    constraint_t< is_dynamic_buffer_v1< decay_t< DynamicBuffer_v1 > >::value >  = 0,
    constraint_t< !is_dynamic_buffer_v2< decay_t< DynamicBuffer_v1 > >::value >  = 0);
  » more...

Start an asynchronous operation to write all of the supplied data to a stream.

template<
    typename AsyncWriteStream,
    typename Allocator,
    typename WriteToken = default_completion_token_t<typename AsyncWriteStream::executor_type>>
auto async_write(
    AsyncWriteStream & s,
    basic_streambuf< Allocator > & b,
    WriteToken && token = default_completion_token_t< typename AsyncWriteStream::executor_type >());
  » more...

Start an asynchronous operation to write a certain amount of data to a stream.

template<
    typename AsyncWriteStream,
    typename Allocator,
    typename CompletionCondition,
    typename WriteToken>
auto async_write(
    AsyncWriteStream & s,
    basic_streambuf< Allocator > & b,
    CompletionCondition completion_condition,
    WriteToken && token);
  » more...

Start an asynchronous operation to write all of the supplied data to a stream.

template<
    typename AsyncWriteStream,
    typename DynamicBuffer_v2,
    typename WriteToken = default_completion_token_t<typename AsyncWriteStream::executor_type>>
auto async_write(
    AsyncWriteStream & s,
    DynamicBuffer_v2 buffers,
    WriteToken && token = default_completion_token_t< typename AsyncWriteStream::executor_type >(),
    constraint_t< is_dynamic_buffer_v2< DynamicBuffer_v2 >::value >  = 0);
  » more...

Start an asynchronous operation to write a certain amount of data to a stream.

template<
    typename AsyncWriteStream,
    typename DynamicBuffer_v2,
    typename CompletionCondition,
    typename WriteToken>
auto async_write(
    AsyncWriteStream & s,
    DynamicBuffer_v2 buffers,
    CompletionCondition completion_condition,
    WriteToken && token,
    constraint_t< is_dynamic_buffer_v2< DynamicBuffer_v2 >::value >  = 0);
  » more...
Requirements

Header: boost/asio/impl/write.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext