Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
ssl::stream::stream (1 of 3 overloads)

Construct a stream.

template<
    typename Arg>
stream(
    Arg && arg,
    context & ctx,
    std::size_t input_buffer_size = 0,
    std::size_t output_buffer_size = 0);

This constructor creates a stream and initialises the underlying stream object.

Parameters

arg

The argument to be passed to initialise the underlying stream.

ctx

The SSL context to be used for the stream.

input_buffer_size

The size, in bytes, of the internal buffer used to hold encrypted data received from the underlying stream. A larger buffer allows more data to be decrypted per read from the underlying stream. A value of zero selects a default size.

output_buffer_size

The size, in bytes, of the internal buffer used to hold encrypted data being written to the underlying stream. A larger buffer allows a single write to send more data to the underlying stream at once. A value of zero selects a default size.


PrevUpHomeNext