Boost C++ Libraries

...one 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 a snapshot of the develop branch, built from commit 86319a8e16.
PrevUpHomeNext
connection::uses_ssl

Returns whether the connection negotiated the use of SSL or not.

Synopsis
bool
uses_ssl() const;
Description

This function can be used to determine whether you are using a SSL connection or not when using SSL negotiation.

This function always returns false if the underlying stream does not support SSL. This function always returns false for connections that haven't been established yet (handshake not run yet). If the handshake fails, the return value is undefined.

Exception safety

No-throw guarantee.

Return Value

Whether the connection is using SSL.


PrevUpHomeNext