| Home | Libraries | People | FAQ | More

###### ssl_stream::handshake (1 of 4 overloads)

Perform SSL handshaking.

<h7> Synopsis </h7>

    void
    handshake(
        handshake_type type);

<h7> Description </h7>

This function is used to perform SSL handshaking on the stream. The function call will block until handshaking is complete or an error occurs.

<h7> Parameters </h7>

Name | Description
--- | ---
`type` | The type of handshaking to be performed, i.e. as a client or as a server.

<h7> Exceptions </h7>

Type | Thrown On
--- | ---
`boost::system::system_error` | Thrown on failure.