11 #ifndef ASIO_POSIX_BASIC_STREAM_DESCRIPTOR_HPP 12 #define ASIO_POSIX_BASIC_STREAM_DESCRIPTOR_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 20 #if defined(ASIO_HAS_POSIX_STREAM_DESCRIPTOR) \ 21 || defined(GENERATING_DOCUMENTATION) 47 template <
typename StreamDescriptorService = stream_descriptor_service>
48 class basic_stream_descriptor
49 :
public basic_descriptor<StreamDescriptorService>
54 typedef typename StreamDescriptorService::native_handle_type native_type;
57 typedef typename StreamDescriptorService::native_handle_type
71 : basic_descriptor<StreamDescriptorService>(io_service)
89 const native_handle_type& native_descriptor)
90 : basic_descriptor<StreamDescriptorService>(io_service, native_descriptor)
94 #if defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION) 105 basic_stream_descriptor(basic_stream_descriptor&& other)
106 : basic_descriptor<StreamDescriptorService>(
122 basic_stream_descriptor& operator=(basic_stream_descriptor&& other)
124 basic_descriptor<StreamDescriptorService>::operator=(
128 #endif // defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION) 157 template <
typename ConstBufferSequence>
158 std::size_t write_some(
const ConstBufferSequence&
buffers)
161 std::size_t
s = this->get_service().write_some(
162 this->get_implementation(), buffers, ec);
183 template <
typename ConstBufferSequence>
184 std::size_t write_some(
const ConstBufferSequence& buffers,
187 return this->get_service().write_some(
188 this->get_implementation(), buffers, ec);
226 template <
typename ConstBufferSequence,
typename WriteHandler>
229 async_write_some(const ConstBufferSequence& buffers,
236 return this->get_service().async_write_some(this->get_implementation(),
268 template <typename MutableBufferSequence>
269 std::
size_t read_some(const MutableBufferSequence& buffers)
272 std::size_t s = this->get_service().read_some(
273 this->get_implementation(), buffers, ec);
295 template <
typename MutableBufferSequence>
296 std::size_t read_some(
const MutableBufferSequence& buffers,
299 return this->get_service().read_some(
300 this->get_implementation(), buffers, ec);
339 template <
typename MutableBufferSequence,
typename ReadHandler>
342 async_read_some(const MutableBufferSequence& buffers,
349 return this->get_service().async_read_some(this->get_implementation(),
357 #include "asio/detail/pop_options.hpp" 359 #endif // defined(ASIO_HAS_POSIX_STREAM_DESCRIPTOR) 362 #endif // ASIO_POSIX_BASIC_STREAM_DESCRIPTOR_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)