asio C++ library

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 constraint< 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 constraint< 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 constraint< is_dynamic_buffer_v1< typename decay< DynamicBuffer_v1 >::type >::value >::type  = 0,
    typename constraint< !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 constraint< is_dynamic_buffer_v1< typename decay< DynamicBuffer_v1 >::type >::value >::type  = 0,
    typename constraint< !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 constraint< 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 constraint< is_dynamic_buffer_v2< DynamicBuffer_v2 >::value >::type  = 0);
  » more...
Requirements

Header: asio/write.hpp

Convenience header: asio.hpp


PrevUpHomeNext