Boost C++ Libraries 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 to view this page for the latest version.
connection::async_handshake (2 of 2 overloads)

Performs the MySQL-level handshake.

    class CompletionToken>
    const handshake_params& params,
    diagnostics& diag,
    CompletionToken&& token);

Does not connect the underlying stream. If the Stream template parameter fulfills the SocketConnection requirements, use connection::connect instead of this function.

If using a SSL-capable stream, the SSL handshake will be performed by this function.

Object lifetimes

The strings pointed to by params should be kept alive by the caller until the operation completes, as no copy is made by the library.

Handler signature

The handler signature for this operation is void(boost::mysql::error_code).