boost::corosio::tls_stream
Abstract base class for TLS streams.
Synopsis
Declared in <boost/corosio/tls_stream.hpp>
class tls_stream;
Description
This class provides a runtime‐polymorphic interface for TLS implementations. Derived classes (openssl_stream, wolfssl_stream) implement the virtual functions to provide backend‐specific TLS functionality.
Unlike io_stream which represents OS‐level I/O completed by the kernel, TLS streams are coroutine‐based: their operations are implemented as coroutines that orchestrate sub‐operations on the underlying stream.
The non‐virtual template wrappers (read_some, write_some) satisfy the capy::Stream concept, enabling TLS streams to be used anywhere a Stream is expected.
Member Functions
Name |
Description |
|
Copy constructor |
|
Destructor. |
|
Copy assignment operator |
|
Perform the TLS handshake asynchronously. |
|
Returns the name of the TLS backend. |
|
|
Initiate an asynchronous read operation. |
|
|
Perform a graceful TLS shutdown asynchronously. |
Initiate an asynchronous write operation. |
Protected Member Functions
Name |
Description |
|
Default constructor |
|
Virtual read implementation. |
|
Virtual write implementation. |
Derived Classes
| Name | Description |
|---|---|
A TLS stream using OpenSSL. |
|
A TLS stream using WolfSSL. |
See Also
openssl_stream, wolfssl_stream
Created with MrDocs