MySQL 8.4.2
Source Code Documentation
net::tls::TlsStream< LowerLayer > Class Template Reference

#include <tls_stream.h>

Inheritance diagram for net::tls::TlsStream< LowerLayer >:
[legend]

Public Types

using Parent = TlsBase< LowerLayer >
 
using LowerLayerType = typename Parent::LowerLayerType
 
using endpoint_type = typename LowerLayer::endpoint_type
 
using Io_result_type = stdx::expected< size_t, std::error_code >
 

Public Member Functions

void set_parent (const char *)
 
auto get_executor ()
 
auto cancel ()
 
Parent::LowerLayerTypelower_layer ()
 
const Parent::LowerLayerTypelower_layer () const
 
bool is_open () const
 
auto connect (const endpoint_type &endpoint)
 
template<class CompletionToken >
auto async_connect (const endpoint_type &endpoint, CompletionToken &&token)
 
template<class MutableBufferSequence , class CompletionToken >
auto async_receive (const MutableBufferSequence &buffers, CompletionToken &&token)
 
template<class ConstBufferSequence , class CompletionToken >
auto async_send (const ConstBufferSequence &buffers, CompletionToken &&user_token)
 
template<typename ConstBufferSequence >
Io_result_type write_some (const ConstBufferSequence &buffers)
 
template<typename MutableBufferSequence >
Io_result_type read_some (const MutableBufferSequence &buffers)
 
template<typename SettableSocketOption >
stdx::expected< void, std::error_code > set_option (const SettableSocketOption &option)
 
auto close ()
 
auto release ()
 
auto native_handle ()
 
template<typename... Args>
 TlsBase (TlsServerContext *tls_context, Args &&... args)
 
template<typename... Args>
 TlsBase (TlsClientContext *tls_context, Args &&... args)
 
 TlsBase (TlsBase &&other)
 

Additional Inherited Members

- Private Types inherited from net::tls::TlsBase< LowerLayer >
using LowerLayerType = LowerLayer
 
- Private Member Functions inherited from net::tls::TlsBase< LowerLayer >
template<typename... Args>
 TlsBase (TlsServerContext *tls_context, Args &&... args)
 
template<typename... Args>
 TlsBase (TlsClientContext *tls_context, Args &&... args)
 
 TlsBase (TlsBase &&other)
 
- Private Attributes inherited from net::tls::TlsBase< LowerLayer >
LowerLayer lower_layer_
 
TlsContexttls_context_
 
SslPtr ssl_
 
BioPtr network_bio_
 
uint8_t output_buffer_ [k_tls_buffer_size]
 
uint8_t input_buffer_ [k_tls_buffer_size]
 
FlexibleOutputBuffer output_ {net::buffer(output_buffer_)}
 
FlexibleInputBuffer input_ {net::buffer(input_buffer_)}
 
- Static Private Attributes inherited from net::tls::TlsBase< LowerLayer >
constexpr static uint32_t k_tls_buffer_size = 32000
 

Member Typedef Documentation

◆ endpoint_type

template<typename LowerLayer >
using net::tls::TlsStream< LowerLayer >::endpoint_type = typename LowerLayer::endpoint_type

◆ Io_result_type

template<typename LowerLayer >
using net::tls::TlsStream< LowerLayer >::Io_result_type = stdx::expected<size_t, std::error_code>

◆ LowerLayerType

template<typename LowerLayer >
using net::tls::TlsStream< LowerLayer >::LowerLayerType = typename Parent::LowerLayerType

◆ Parent

template<typename LowerLayer >
using net::tls::TlsStream< LowerLayer >::Parent = TlsBase<LowerLayer>

Member Function Documentation

◆ async_connect()

template<typename LowerLayer >
template<class CompletionToken >
auto net::tls::TlsStream< LowerLayer >::async_connect ( const endpoint_type endpoint,
CompletionToken &&  token 
)
inline

◆ async_receive()

template<typename LowerLayer >
template<class MutableBufferSequence , class CompletionToken >
auto net::tls::TlsStream< LowerLayer >::async_receive ( const MutableBufferSequence &  buffers,
CompletionToken &&  token 
)
inline

◆ async_send()

template<typename LowerLayer >
template<class ConstBufferSequence , class CompletionToken >
auto net::tls::TlsStream< LowerLayer >::async_send ( const ConstBufferSequence &  buffers,
CompletionToken &&  user_token 
)
inline

◆ cancel()

template<typename LowerLayer >
auto net::tls::TlsStream< LowerLayer >::cancel ( )
inline

◆ close()

template<typename LowerLayer >
auto net::tls::TlsStream< LowerLayer >::close ( )
inline

◆ connect()

template<typename LowerLayer >
auto net::tls::TlsStream< LowerLayer >::connect ( const endpoint_type endpoint)
inline

◆ get_executor()

template<typename LowerLayer >
auto net::tls::TlsStream< LowerLayer >::get_executor ( )
inline

◆ is_open()

template<typename LowerLayer >
bool net::tls::TlsStream< LowerLayer >::is_open ( ) const
inline

◆ lower_layer() [1/2]

template<typename LowerLayer >
Parent::LowerLayerType & net::tls::TlsStream< LowerLayer >::lower_layer ( )
inline

◆ lower_layer() [2/2]

template<typename LowerLayer >
const Parent::LowerLayerType & net::tls::TlsStream< LowerLayer >::lower_layer ( ) const
inline

◆ native_handle()

template<typename LowerLayer >
auto net::tls::TlsStream< LowerLayer >::native_handle ( )
inline

◆ read_some()

template<typename LowerLayer >
template<typename MutableBufferSequence >
Io_result_type net::tls::TlsStream< LowerLayer >::read_some ( const MutableBufferSequence &  buffers)
inline

◆ release()

template<typename LowerLayer >
auto net::tls::TlsStream< LowerLayer >::release ( )
inline

◆ set_option()

template<typename LowerLayer >
template<typename SettableSocketOption >
stdx::expected< void, std::error_code > net::tls::TlsStream< LowerLayer >::set_option ( const SettableSocketOption &  option)
inline

◆ set_parent()

template<typename LowerLayer >
void net::tls::TlsStream< LowerLayer >::set_parent ( const char *  )
inline

◆ TlsBase() [1/3]

template<typename LowerLayer >
net::tls::TlsBase< LowerLayer >::TlsBase ( TlsBase &&  other)
inline

◆ TlsBase() [2/3]

template<typename LowerLayer >
template<typename... Args>
net::tls::TlsBase< LowerLayer >::TlsBase ( TlsClientContext tls_context,
Args &&...  args 
)
inline

◆ TlsBase() [3/3]

template<typename LowerLayer >
template<typename... Args>
net::tls::TlsBase< LowerLayer >::TlsBase ( TlsServerContext tls_context,
Args &&...  args 
)
inline

◆ write_some()

template<typename LowerLayer >
template<typename ConstBufferSequence >
Io_result_type net::tls::TlsStream< LowerLayer >::write_some ( const ConstBufferSequence &  buffers)
inline

The documentation for this class was generated from the following file: