Home | Libraries | People | FAQ | More |
Provides stream-oriented functionality using SSL.
template< typename Stream> class stream : public ssl::stream_base, noncopyable
Name |
Description |
---|---|
Structure for use with deprecated impl_type. |
|
Different handshake types. |
|
(Deprecated: Use native_handle_type.) The underlying implementation type. |
|
The type of the lowest layer. |
|
The native handle type of the SSL stream. |
|
The type of the next layer. |
Name |
Description |
---|---|
Start an asynchronous SSL handshake. |
|
Start an asynchronous read. |
|
Asynchronously shut down SSL on the stream. |
|
Start an asynchronous write. |
|
Get the io_service associated with the object. |
|
Perform SSL handshaking. |
|
(Deprecated: Use native_handle().) Get the underlying implementation in the native type. |
|
Get a reference to the lowest layer. |
|
Get the underlying implementation in the native type. |
|
Get a reference to the next layer. |
|
Read some data from the stream. |
|
Set the callback used to verify peer certificates. |
|
Set the peer verification depth. |
|
Set the peer verification mode. |
|
Shut down SSL on the stream. |
|
Construct a stream. |
|
Write some data to the stream. |
|
Destructor. |
The stream class template provides asynchronous and blocking stream-oriented functionality using SSL.
Distinct objects: Safe.
Shared objects: Unsafe. The application must also ensure that all asynchronous operations are performed within the same implicit or explicit strand.
To use the SSL stream template with an ip::tcp::socket
, you would write:
boost::asio::io_service io_service; boost::asio::ssl::context ctx(boost::asio::ssl::context::sslv23); boost::asio::ssl::stream<asio:ip::tcp::socket> sock(io_service, ctx);
Header: boost/asio/ssl/stream.hpp
Convenience header: boost/asio/ssl.hpp