async_read
async_read 함수는 완료 전에 스트림에서 특정 양의 데이터를 읽는 합성된 비동기 작업이다.
스트림에서 특정 양의 데이터를 읽으려면 비동기 작업을 시작한다.
[1 / 8 오버로드]
template<
typename AsyncReadStream,
typename MutableBufferSequence,
typename ReadHandler = DEFAULT>
DEDUCED async_read(
AsyncReadStream & s,
const MutableBufferSequence & buffers,
ReadHandler && handler = DEFAULT,
typename enable_if< is_mutable_buffer_sequence< MutableBufferSequence >::value >::type * = 0);
[AsyncReadStream, MutableBufferSequence, ReadHandler, DEFAULT, DEDUCED, async_read]
[2 / 8 오버로드]
template<
typename AsyncReadStream,
typename MutableBufferSequence,
typename CompletionCondition,
typename ReadHandler = DEFAULT>
DEDUCED async_read(
AsyncReadStream & s,
const MutableBufferSequence & buffers,
CompletionCondition completion_condition,
ReadHandler && handler = DEFAULT,
typename enable_if< is_mutable_buffer_sequence< MutableBufferSequence >::value >::type * = 0);
[AsyncReadStream, MutableBufferSequence, CompletionCondition, ReadHandler, DEFAULT, DEDUCED, async_read]
[3 / 8 오버로드]
template<
typename AsyncReadStream,
typename DynamicBuffer_v1,
typename ReadHandler = DEFAULT>
DEDUCED async_read(
AsyncReadStream & s,
DynamicBuffer_v1 && buffers,
ReadHandler && 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);
[AsyncReadStream, DynamicBuffer_v1, ReadHandler, DEFAULT, DEDUCED, async_read]
[4 / 8 오버로드]
template<
typename AsyncReadStream,
typename DynamicBuffer_v1,
typename CompletionCondition,
typename ReadHandler = DEFAULT>
DEDUCED async_read(
AsyncReadStream & s,
DynamicBuffer_v1 && buffers,
CompletionCondition completion_condition,
ReadHandler && 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);
[AsyncReadStream, DynamicBuffer_v1, CompletionCondition, ReadHandler, DEFAULT, DEDUCED, async_read]
[5 / 8 오버로드]
template<
typename AsyncReadStream,
typename Allocator,
typename ReadHandler = DEFAULT>
DEDUCED async_read(
AsyncReadStream & s,
basic_streambuf< Allocator > & b,
ReadHandler && handler = DEFAULT);
[AsyncReadStream, ReadHandler, DEFAULT, DEDUCED, async_read]
[6 / 8 오버로드]
template<
typename AsyncReadStream,
typename Allocator,
typename CompletionCondition,
typename ReadHandler = DEFAULT>
DEDUCED async_read(
AsyncReadStream & s,
basic_streambuf< Allocator > & b,
CompletionCondition completion_condition,
ReadHandler && handler = DEFAULT);
[AsyncReadStream, CompletionCondition, ReadHandler, DEFAULT, DEDUCED, async_read]
[7 / 8 오버로드]
template<
typename AsyncReadStream,
typename DynamicBuffer_v2,
typename ReadHandler = DEFAULT>
DEDUCED async_read(
AsyncReadStream & s,
DynamicBuffer_v2 buffers,
ReadHandler && handler = DEFAULT,
typename enable_if< is_dynamic_buffer_v2< DynamicBuffer_v2 >::value >::type * = 0);
[AsyncReadStream, DynamicBuffer_v2, ReadHandler, DEFAULT, DEDUCED, async_read]
[8 / 8 오버로드]
template<
typename AsyncReadStream,
typename DynamicBuffer_v2,
typename CompletionCondition,
typename ReadHandler = DEFAULT>
DEDUCED async_read(
AsyncReadStream & s,
DynamicBuffer_v2 buffers,
CompletionCondition completion_condition,
ReadHandler && handler = DEFAULT,
typename enable_if< is_dynamic_buffer_v2< DynamicBuffer_v2 >::value >::type * = 0);
[AsyncReadStream, DynamicBuffer_v2, CompletionCondition, ReadHandler, DEFAULT, DEDUCED, async_read]
요구사항
일반 헤더: boost/asio/read.hpp
편의 헤더: boost/asio.hpp
Boost.Asio 홈
'Boost C++ Libraries > Boost.Asio' 카테고리의 다른 글
Boost.Asio 색인 - basic_serial_port::async_read_some (0) | 2021.01.07 |
---|---|
Boost.Asio 색인 - async_read_at (0) | 2021.01.07 |
Boost.Asio 색인 - async_initiate (0) | 2021.01.06 |
Boost.Asio 색인 - ssl::stream::async_handshake (0) | 2021.01.06 |
Boost.Asio 색인 - buffered_stream::async_flush (0) | 2021.01.06 |