boost::corosio::wolfssl_stream::handshake

Perform the TLS handshake asynchronously.

Synopsis

virtual
capy::io_task<>
handshake(handshake_type type) override;

Description

Suspends the calling coroutine until the handshake completes, an error occurs, or the operation is cancelled via stop token.

Preconditions

The underlying stream must be connected. No other TLS operation may be in progress on this stream.

Return Value

An awaitable yielding (error_code).

Parameters

Name

Description

type

The handshake role (client or server).

Created with MrDocs