11 #ifndef ASIO_WINDOWS_BASIC_STREAM_HANDLE_HPP 12 #define ASIO_WINDOWS_BASIC_STREAM_HANDLE_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 20 #if defined(ASIO_HAS_WINDOWS_STREAM_HANDLE) \ 21 || defined(GENERATING_DOCUMENTATION) 47 template <
typename StreamHandleService = stream_handle_service>
48 class basic_stream_handle
49 :
public basic_handle<StreamHandleService>
54 typedef typename StreamHandleService::native_handle_type native_type;
57 typedef typename StreamHandleService::native_handle_type native_handle_type;
69 : basic_handle<StreamHandleService>(io_service)
86 const native_handle_type& handle)
87 : basic_handle<StreamHandleService>(io_service, handle)
91 #if defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION) 102 basic_stream_handle(basic_stream_handle&& other)
103 : basic_handle<StreamHandleService>(
119 basic_stream_handle& operator=(basic_stream_handle&& other)
121 basic_handle<StreamHandleService>::operator=(
125 #endif // defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION) 154 template <
typename ConstBufferSequence>
155 std::size_t write_some(
const ConstBufferSequence&
buffers)
158 std::size_t
s = this->get_service().write_some(
159 this->get_implementation(), buffers, ec);
180 template <
typename ConstBufferSequence>
181 std::size_t write_some(
const ConstBufferSequence& buffers,
184 return this->get_service().write_some(
185 this->get_implementation(), buffers, ec);
223 template <
typename ConstBufferSequence,
typename WriteHandler>
226 async_write_some(const ConstBufferSequence& buffers,
233 return this->get_service().async_write_some(this->get_implementation(),
265 template <typename MutableBufferSequence>
266 std::
size_t read_some(const MutableBufferSequence& buffers)
269 std::size_t s = this->get_service().read_some(
270 this->get_implementation(), buffers, ec);
292 template <
typename MutableBufferSequence>
293 std::size_t read_some(
const MutableBufferSequence& buffers,
296 return this->get_service().read_some(
297 this->get_implementation(), buffers, ec);
336 template <
typename MutableBufferSequence,
typename ReadHandler>
339 async_read_some(const MutableBufferSequence& buffers,
346 return this->get_service().async_read_some(this->get_implementation(),
354 #include "asio/detail/pop_options.hpp" 356 #endif // defined(ASIO_HAS_WINDOWS_STREAM_HANDLE) 359 #endif // ASIO_WINDOWS_BASIC_STREAM_HANDLE_HPP void throw_error(const asio::error_code &err)
Provides core I/O functionality.
ASIO_INITFN_RESULT_TYPE(ComposedConnectHandler, void(asio::error_code, Iterator)) async_connect(basic_socket< Protocol
const MutableBufferSequence & buffers
#define ASIO_READ_HANDLER_CHECK(handler_type, handler)
asio::basic_streambuf< Allocator > CompletionCondition ASIO_MOVE_ARG(ReadHandler) handler)
Class to represent an error code value.
#define ASIO_MOVE_CAST(type)
#define ASIO_WRITE_HANDLER_CHECK(handler_type, handler)