...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A socket wrapper which automatically times out on asynchronous reads.
Defined in header <boost/beast/experimental/core/timeout_socket.hpp>
template< class Protocol, class Executor = boost::asio::executor> class basic_timeout_socket
Name |
Description |
---|---|
The type of the executor associated with the object. |
|
The type of the lowest layer. |
|
The type of the next layer. |
|
The protocol used by the stream. |
Name |
Description |
---|---|
Start an asynchronous read. |
|
Start an asynchronous write. |
|
Constructor. |
|
Get the executor associated with the object. |
|
Get a reference to the lowest layer. |
|
Get a reference to the next layer. |
This wraps a normal stream socket and implements a simple and efficient timeout for asynchronous read operations.
Meets the requirements of AsyncReadStream and AsyncWriteStream