Attempt to read a certain amount of data from a stream before returning.
template< typename SyncReadStream, typename MutableBufferSequence> std::size_t read( SyncReadStream & s, const MutableBufferSequence & buffers, typename enable_if< is_mutable_buffer_sequence< MutableBufferSequence >::value >::type * = 0); » more... template< typename SyncReadStream, typename MutableBufferSequence> std::size_t read( SyncReadStream & s, const MutableBufferSequence & buffers, asio::error_code & ec, typename enable_if< is_mutable_buffer_sequence< MutableBufferSequence >::value >::type * = 0); » more... template< typename SyncReadStream, typename MutableBufferSequence, typename CompletionCondition> std::size_t read( SyncReadStream & s, const MutableBufferSequence & buffers, CompletionCondition completion_condition, typename enable_if< is_mutable_buffer_sequence< MutableBufferSequence >::value >::type * = 0); » more... template< typename SyncReadStream, typename MutableBufferSequence, typename CompletionCondition> std::size_t read( SyncReadStream & s, const MutableBufferSequence & buffers, CompletionCondition completion_condition, asio::error_code & ec, typename enable_if< is_mutable_buffer_sequence< MutableBufferSequence >::value >::type * = 0); » more... template< typename SyncReadStream, typename DynamicBufferSequence> std::size_t read( SyncReadStream & s, DynamicBufferSequence && buffers, typename enable_if< is_dynamic_buffer_sequence< DynamicBufferSequence >::value >::type * = 0); » more... template< typename SyncReadStream, typename DynamicBufferSequence> std::size_t read( SyncReadStream & s, DynamicBufferSequence && buffers, asio::error_code & ec, typename enable_if< is_dynamic_buffer_sequence< DynamicBufferSequence >::value >::type * = 0); » more... template< typename SyncReadStream, typename DynamicBufferSequence, typename CompletionCondition> std::size_t read( SyncReadStream & s, DynamicBufferSequence && buffers, CompletionCondition completion_condition, typename enable_if< is_dynamic_buffer_sequence< DynamicBufferSequence >::value >::type * = 0); » more... template< typename SyncReadStream, typename DynamicBufferSequence, typename CompletionCondition> std::size_t read( SyncReadStream & s, DynamicBufferSequence && buffers, CompletionCondition completion_condition, asio::error_code & ec, typename enable_if< is_dynamic_buffer_sequence< DynamicBufferSequence >::value >::type * = 0); » more... template< typename SyncReadStream, typename Allocator> std::size_t read( SyncReadStream & s, basic_streambuf< Allocator > & b); » more... template< typename SyncReadStream, typename Allocator> std::size_t read( SyncReadStream & s, basic_streambuf< Allocator > & b, asio::error_code & ec); » more... template< typename SyncReadStream, typename Allocator, typename CompletionCondition> std::size_t read( SyncReadStream & s, basic_streambuf< Allocator > & b, CompletionCondition completion_condition); » more... template< typename SyncReadStream, typename Allocator, typename CompletionCondition> std::size_t read( SyncReadStream & s, basic_streambuf< Allocator > & b, CompletionCondition completion_condition, asio::error_code & ec); » more...
Header: asio/read.hpp
Convenience header: asio.hpp