...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A TCP/IP socket wrapper which has a built-in asynchronous timeout.
Defined in header <boost/beast/experimental/core/timeout_socket.hpp>
using timeout_socket = basic_timeout_socket< boost::asio::ip::tcp, boost::asio::io_context::executor_type >;
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