boost::asio::buffered_stream
Adds buffering to the read‐ and write‐related operations of a stream.
Synopsis
Declared in <boost/asio/buffered_stream.hpp>
template<typename Stream>
class buffered_stream;
Types
Name |
Description |
The type of the executor associated with the object. |
|
The type of the lowest layer. |
|
The type of the next layer. |
Member Functions
Name |
Description |
|
Construct, passing the specified argument to initialise the next layer. |
Start an asynchronous fill. |
|
Start an asynchronous flush. |
|
Start an asynchronous read. The buffer into which the data will be read must be valid for the lifetime of the asynchronous operation. |
|
Start an asynchronous write. The data being written must be valid for the lifetime of the asynchronous operation. |
|
Close the stream. |
|
|
|
|
|
Get the executor associated with the object. |
|
Determine the amount of data that may be read without blocking. |
|
|
|
Get a reference to the next layer. |
|
|
|
|
|
|
Description
The buffered_stream class template can be used to add buffering to the synchronous and asynchronous read and write operations of a stream.
Concepts:
AsyncReadStream, AsyncWriteStream, Stream, SyncReadStream, SyncWriteStream.
Created with MrDocs