async_write
async_write 함수는 완료 전에 스트림에 특정 양의 데이터를 쓰는 합성된 비동기 작업이다.
스트림에 제공된 모든 데이터를 쓰는 비동기 작업을 시작한다.
[1 / 8 오버로드]
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);
[AsyncWriteStream, ConstBufferSequence, WriteHandler, DEFAULT, DEDUCED, async_write]
스트림에 특정 양의 데이터를 쓰는 비동기 작업을 시작한다.
[2 / 8 오버로드]
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);
[AsyncWriteStream, ConstBufferSequence, CompletionCondition, WriteHandler, DEDUCED, async_write]
스트림에 제공된 모든 데이터를 쓰는 비동기 작업을 시작한다.
[3 / 8 오버로드]
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);
[AsyncWriteStream, DynamicBuffer_v1, WriteHandler, DEFAULT, DEDUCED, async_write]
스트림에 특정 양의 데이터를 쓰는 비동기 작업을 시작한다.
[4 / 8 오버로드]
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);
[AsyncWriteStream, DynamicBuffer_v1, CompletionCondition, WriteHandler, DEDUCED, async_write]
스트림에 제공된 모든 데이터를 쓰는 비동기 작업을 시작한다.
[5 / 8 오버로드]
template<
typename AsyncWriteStream,
typename Allocator,
typename WriteHandler = DEFAULT>
DEDUCED async_write(
AsyncWriteStream & s,
basic_streambuf< Allocator > & b,
WriteHandler && handler = DEFAULT);
[AsyncWriteStream, WriteHandler, DEFAULT, DEDUCED, async_write]
스트림에 특정 양의 데이터를 쓰는 비동기 작업을 시작한다.
[6 / 8 오버로드]
template<
typename AsyncWriteStream,
typename Allocator,
typename CompletionCondition,
typename WriteHandler>
DEDUCED async_write(
AsyncWriteStream & s,
basic_streambuf< Allocator > & b,
CompletionCondition completion_condition,
WriteHandler && handler);
[AsyncWriteStream, CompletionCondition, WriteHandler, DEDUCED, async_write]
스트림에 제공된 모든 데이터를 쓰는 비동기 작업을 시작한다.
[7 / 8 오버로드]
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);
[AsyncWriteStream, DynamicBuffer_v2, WriteHandler, DEFAULT, DEDUCED, async_write]
스트림에 특정 양의 데이터를 쓰는 비동기 작업을 시작한다.
[8 / 8 오버로드]
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);
[AsyncWriteStream, DynamicBuffer_v2, CompletionCondition, WriteHandler, DEDUCED, async_write]
요구사항
일반 헤더: boost/asio/write.hpp
편의 헤더: boost/asio.hpp
Boost.Asio 홈
'Boost C++ Libraries > Boost.Asio' 카테고리의 다른 글
Boost.Asio 색인 - basic_serial_port::async_write_some (0) | 2021.01.08 |
---|---|
Boost.Asio 색인 - async_write_at (0) | 2021.01.08 |
Boost.Asio 색인 - windows::basic_object_handle::async_wait (0) | 2021.01.08 |
Boost.Asio 색인 - posix::basic_stream_descriptor::async_wait (0) | 2021.01.08 |
Boost.Asio 색인 - posix::basic_descriptor::async_wait (0) | 2021.01.08 |