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 WriteHandler>
DEDUCED async_write(
    AsyncWriteStream & s,
    const ConstBufferSequence & buffers,
    WriteHandler && handler,
    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,
    typename WriteHandler>
DEDUCED async_write(
    AsyncWriteStream & s,
    DynamicBuffer && buffers,
    WriteHandler && handler,
    typename enable_if< is_dynamic_buffer< typename decay< DynamicBuffer >::type >::value >::type *  = 0);
  » more...

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

template<
    typename AsyncWriteStream,
    typename DynamicBuffer,
    typename CompletionCondition,
    typename WriteHandler>
DEDUCED async_write(
    AsyncWriteStream & s,
    DynamicBuffer && buffers,
    CompletionCondition completion_condition,
    WriteHandler && handler,
    typename enable_if< is_dynamic_buffer< typename decay< DynamicBuffer >::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>
DEDUCED async_write(
    AsyncWriteStream & s,
    basic_streambuf< Allocator > & b,
    WriteHandler && handler);
  » 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...
Requirements

Header: boost/asio/write.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext