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_read

The async_read function is a composed asynchronous operation that reads a certain amount of data from a stream before completion.

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

template<
    typename AsyncReadStream,
    typename MutableBufferSequence,
    typename ReadToken = DEFAULT>
DEDUCED async_read(
    AsyncReadStream & s,
    const MutableBufferSequence & buffers,
    ReadToken && token = DEFAULT,
    typename constraint< is_mutable_buffer_sequence< MutableBufferSequence >::value >::type  = 0);
  » more...

template<
    typename AsyncReadStream,
    typename MutableBufferSequence,
    typename CompletionCondition,
    typename ReadToken = DEFAULT>
DEDUCED async_read(
    AsyncReadStream & s,
    const MutableBufferSequence & buffers,
    CompletionCondition completion_condition,
    ReadToken && token = DEFAULT,
    typename constraint< is_mutable_buffer_sequence< MutableBufferSequence >::value >::type  = 0);
  » more...

template<
    typename AsyncReadStream,
    typename DynamicBuffer_v1,
    typename ReadToken = DEFAULT>
DEDUCED async_read(
    AsyncReadStream & s,
    DynamicBuffer_v1 && buffers,
    ReadToken && token = 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...

template<
    typename AsyncReadStream,
    typename DynamicBuffer_v1,
    typename CompletionCondition,
    typename ReadToken = DEFAULT>
DEDUCED async_read(
    AsyncReadStream & s,
    DynamicBuffer_v1 && buffers,
    CompletionCondition completion_condition,
    ReadToken && token = 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...

template<
    typename AsyncReadStream,
    typename Allocator,
    typename ReadToken = DEFAULT>
DEDUCED async_read(
    AsyncReadStream & s,
    basic_streambuf< Allocator > & b,
    ReadToken && token = DEFAULT);
  » more...

template<
    typename AsyncReadStream,
    typename Allocator,
    typename CompletionCondition,
    typename ReadToken = DEFAULT>
DEDUCED async_read(
    AsyncReadStream & s,
    basic_streambuf< Allocator > & b,
    CompletionCondition completion_condition,
    ReadToken && token = DEFAULT);
  » more...

template<
    typename AsyncReadStream,
    typename DynamicBuffer_v2,
    typename ReadToken = DEFAULT>
DEDUCED async_read(
    AsyncReadStream & s,
    DynamicBuffer_v2 buffers,
    ReadToken && token = DEFAULT,
    typename constraint< is_dynamic_buffer_v2< DynamicBuffer_v2 >::value >::type  = 0);
  » more...

template<
    typename AsyncReadStream,
    typename DynamicBuffer_v2,
    typename CompletionCondition,
    typename ReadToken = DEFAULT>
DEDUCED async_read(
    AsyncReadStream & s,
    DynamicBuffer_v2 buffers,
    CompletionCondition completion_condition,
    ReadToken && token = DEFAULT,
    typename constraint< is_dynamic_buffer_v2< DynamicBuffer_v2 >::value >::type  = 0);
  » more...
Requirements

Header: boost/asio/read.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext