Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

basic_timeout_socket

A socket wrapper which automatically times out on asynchronous reads.

Synopsis

Defined in header <boost/beast/experimental/core/timeout_socket.hpp>

template<
    class Protocol,
    class Executor = boost::asio::executor>
class basic_timeout_socket
Types

Name

Description

executor_type

The type of the executor associated with the object.

lowest_layer_type

The type of the lowest layer.

next_layer_type

The type of the next layer.

protocol_type

The protocol used by the stream.

Member Functions

Name

Description

async_read_some

Start an asynchronous read.

async_write_some

Start an asynchronous write.

basic_timeout_socket

Constructor.

get_executor

Get the executor associated with the object.

lowest_layer

Get a reference to the lowest layer.

next_layer

Get a reference to the next layer.

Description

This wraps a normal stream socket and implements a simple and efficient timeout for asynchronous read operations.

Remarks

Meets the requirements of AsyncReadStream and AsyncWriteStream


PrevUpHomeNext