boost::corosio::tls_stream::handshake

Perform the TLS handshake asynchronously.

Synopsis

virtual
capy::io_task
handshake(handshake_type type) = 0;

Description

Initiates the TLS handshake process. For client connections, this sends the ClientHello and processes the server's response. For server connections, this waits for the ClientHello and sends the server's response.

Return Value

An awaitable yielding (error_code).

Parameters

Name Description

type

The type of handshaking to perform (client or server).

Created with MrDocs