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 an old version of Boost. Click here to view this page for the latest version.
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 WriteHandler = DEFAULT>
DEDUCED async_write(
    AsyncWriteStream & s,
    const ConstBufferSequence & buffers,
    WriteHandler && handler = DEFAULT,
    typename enable_if< is_const_buffer_sequence< ConstBufferSequence >::value >::type *  = 0);
  » more...

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

template<
    typename AsyncWriteStream,
    typename ConstBufferSequence,
    typename CompletionCondition,
    typename WriteHandler>
DEDUCED async_write(
    AsyncWriteStream & s,
    const ConstBufferSequence & buffers,
    CompletionCondition completion_condition,
    WriteHandler && handler,
    typename enable_if< is_const_buffer_sequence< ConstBufferSequence >::value >::type *  = 0);
  » more...

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

template<
    typename AsyncWriteStream,
    typename DynamicBuffer_v1,
    typename WriteHandler = DEFAULT>
DEDUCED async_write(
    AsyncWriteStream & s,
    DynamicBuffer_v1 && buffers,
    WriteHandler && handler = DEFAULT,
    typename enable_if< is_dynamic_buffer_v1< typename decay< DynamicBuffer_v1 >::type >::value &&!is_dynamic_buffer_v2< typename decay< DynamicBuffer_v1 >::type >::value >::type *  = 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 WriteHandler>
DEDUCED async_write(
    AsyncWriteStream & s,
    DynamicBuffer_v1 && buffers,
    CompletionCondition completion_condition,
    WriteHandler && handler,
    typename enable_if< is_dynamic_buffer_v1< typename decay< DynamicBuffer_v1 >::type >::value &&!is_dynamic_buffer_v2< typename decay< DynamicBuffer_v1 >::type >::value >::type *  = 0);
  » more...

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

template<
    typename AsyncWriteStream,
    typename Allocator,
    typename WriteHandler = DEFAULT>
DEDUCED async_write(
    AsyncWriteStream & s,
    basic_streambuf< Allocator > & b,
    WriteHandler && handler = DEFAULT);
  » more...

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

template<
    typename AsyncWriteStream,
    typename Allocator,
    typename CompletionCondition,
    typename WriteHandler>
DEDUCED async_write(
    AsyncWriteStream & s,
    basic_streambuf< Allocator > & b,
    CompletionCondition completion_condition,
    WriteHandler && handler);
  » more...

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

template<
    typename AsyncWriteStream,
    typename DynamicBuffer_v2,
    typename WriteHandler = DEFAULT>
DEDUCED async_write(
    AsyncWriteStream & s,
    DynamicBuffer_v2 buffers,
    WriteHandler && handler = DEFAULT,
    typename enable_if< is_dynamic_buffer_v2< DynamicBuffer_v2 >::value >::type *  = 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 WriteHandler>
DEDUCED async_write(
    AsyncWriteStream & s,
    DynamicBuffer_v2 buffers,
    CompletionCondition completion_condition,
    WriteHandler && handler,
    typename enable_if< is_dynamic_buffer_v2< DynamicBuffer_v2 >::value >::type *  = 0);
  » more...
Requirements

Header: boost/asio/write.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext