MySQL 9.1.0
Source Code Documentation
TraceStream< NameType, LowerLevelStream > Class Template Reference

#include <trace_stream.h>

Inheritance diagram for TraceStream< NameType, LowerLevelStream >:
[legend]

Classes

class  WrappedTraceStream
 

Public Types

using native_handle_type = std::nullptr_t
 
using protocol_type = std::nullptr_t
 
using endpoint_type = typename LowerLevelStream::endpoint_type
 
using VectorOfBuffers = std::vector< net::mutable_buffer >
 
using VectorOfConstBuffers = std::vector< net::const_buffer >
 

Public Member Functions

 TraceStream (TraceStream &&other)
 
template<typename... Args>
 TraceStream (Args &&...args)
 
auto get_executor ()
 
LowerLevelStream & lower_layer ()
 
const LowerLevelStream & lower_layer () const
 
template<class MutableBufferSequence >
stdx::expected< size_t, std::error_code > read_some (const MutableBufferSequence &buffers)
 
template<class ConstBufferSequence >
stdx::expected< size_t, std::error_code > write_some (const ConstBufferSequence &buffers)
 
template<typename Buffer , typename Handler >
void async_send (const Buffer &buffer, Handler &&handler)
 
template<class HandshakeType , class CompletionToken >
auto async_handshake (HandshakeType type, CompletionToken &&token)
 
template<typename Buffer , typename Handler >
void async_receive (const Buffer &buffer, Handler &&handler)
 
void set_parent (const char *parent)
 
auto cancel ()
 
auto close ()
 
void handle_read (std::error_code ec, size_t size)
 
void handle_write (std::error_code ec, size_t size)
 
void handle_handshake (std::error_code ec, size_t size)
 
template<typename SettableSocketOption >
stdx::expected< void, std::error_code > set_option (const SettableSocketOption &option)
 
template<typename... Args>
void print (const Args &...args)
 

Protected Member Functions

template<typename Vector >
void dump (Vector &data, size_t s)
 
template<typename Vector , typename SrcBuffers >
void copy (Vector &dst, const SrcBuffers &src)
 
void print_single ()
 
template<typename Arg , typename... Args>
void print_single (const Arg &arg, const Args... args)
 
template<typename WriteToken , typename StandardToken >
net::tls::LowerLayerWriteCompletionToken< WriteToken, StandardToken > get_write_handler (WriteToken &write_token, StandardToken &std_token)
 
template<typename ReadToken , typename StandardToken >
net::tls::LowerLayerReadCompletionToken< ReadToken, StandardToken > get_read_handler (ReadToken &read_token, StandardToken &std_token)
 
template<typename HandshakeToken , typename StandardToken >
net::tls::LowerLayerHandshakeCompletionToken< HandshakeToken, StandardToken > get_handshake_handler (HandshakeToken &handshake_token, StandardToken &std_token)
 

Protected Attributes

VectorOfBuffers recv_buffer_
 
VectorOfConstBuffers send_buffer_
 
LowerLevelStream lower_layer_
 
std::ostream * out_
 
std::string parent_
 

Additional Inherited Members

- Static Private Attributes inherited from Mutex_static_holder< Trace_stream_static_holder >
static std::mutex mutex_
 

Member Typedef Documentation

◆ endpoint_type

template<typename NameType , typename LowerLevelStream >
using TraceStream< NameType, LowerLevelStream >::endpoint_type = typename LowerLevelStream::endpoint_type

◆ native_handle_type

template<typename NameType , typename LowerLevelStream >
using TraceStream< NameType, LowerLevelStream >::native_handle_type = std::nullptr_t

◆ protocol_type

template<typename NameType , typename LowerLevelStream >
using TraceStream< NameType, LowerLevelStream >::protocol_type = std::nullptr_t

◆ VectorOfBuffers

template<typename NameType , typename LowerLevelStream >
using TraceStream< NameType, LowerLevelStream >::VectorOfBuffers = std::vector<net::mutable_buffer>

◆ VectorOfConstBuffers

template<typename NameType , typename LowerLevelStream >
using TraceStream< NameType, LowerLevelStream >::VectorOfConstBuffers = std::vector<net::const_buffer>

Constructor & Destructor Documentation

◆ TraceStream() [1/2]

template<typename NameType , typename LowerLevelStream >
TraceStream< NameType, LowerLevelStream >::TraceStream ( TraceStream< NameType, LowerLevelStream > &&  other)
inline

◆ TraceStream() [2/2]

template<typename NameType , typename LowerLevelStream >
template<typename... Args>
TraceStream< NameType, LowerLevelStream >::TraceStream ( Args &&...  args)
inline

Member Function Documentation

◆ async_handshake()

template<typename NameType , typename LowerLevelStream >
template<class HandshakeType , class CompletionToken >
auto TraceStream< NameType, LowerLevelStream >::async_handshake ( HandshakeType  type,
CompletionToken &&  token 
)
inline

◆ async_receive()

template<typename NameType , typename LowerLevelStream >
template<typename Buffer , typename Handler >
void TraceStream< NameType, LowerLevelStream >::async_receive ( const Buffer &  buffer,
Handler &&  handler 
)
inline

◆ async_send()

template<typename NameType , typename LowerLevelStream >
template<typename Buffer , typename Handler >
void TraceStream< NameType, LowerLevelStream >::async_send ( const Buffer &  buffer,
Handler &&  handler 
)
inline

◆ cancel()

template<typename NameType , typename LowerLevelStream >
auto TraceStream< NameType, LowerLevelStream >::cancel ( )
inline

◆ close()

template<typename NameType , typename LowerLevelStream >
auto TraceStream< NameType, LowerLevelStream >::close ( )
inline

◆ copy()

template<typename NameType , typename LowerLevelStream >
template<typename Vector , typename SrcBuffers >
void TraceStream< NameType, LowerLevelStream >::copy ( Vector &  dst,
const SrcBuffers &  src 
)
inlineprotected

◆ dump()

template<typename NameType , typename LowerLevelStream >
template<typename Vector >
void TraceStream< NameType, LowerLevelStream >::dump ( Vector &  data,
size_t  s 
)
inlineprotected

◆ get_executor()

template<typename NameType , typename LowerLevelStream >
auto TraceStream< NameType, LowerLevelStream >::get_executor ( )
inline

◆ get_handshake_handler()

template<typename NameType , typename LowerLevelStream >
template<typename HandshakeToken , typename StandardToken >
net::tls::LowerLayerHandshakeCompletionToken< HandshakeToken, StandardToken > TraceStream< NameType, LowerLevelStream >::get_handshake_handler ( HandshakeToken &  handshake_token,
StandardToken &  std_token 
)
inlineprotected

◆ get_read_handler()

template<typename NameType , typename LowerLevelStream >
template<typename ReadToken , typename StandardToken >
net::tls::LowerLayerReadCompletionToken< ReadToken, StandardToken > TraceStream< NameType, LowerLevelStream >::get_read_handler ( ReadToken &  read_token,
StandardToken &  std_token 
)
inlineprotected

◆ get_write_handler()

template<typename NameType , typename LowerLevelStream >
template<typename WriteToken , typename StandardToken >
net::tls::LowerLayerWriteCompletionToken< WriteToken, StandardToken > TraceStream< NameType, LowerLevelStream >::get_write_handler ( WriteToken &  write_token,
StandardToken &  std_token 
)
inlineprotected

◆ handle_handshake()

template<typename NameType , typename LowerLevelStream >
void TraceStream< NameType, LowerLevelStream >::handle_handshake ( std::error_code  ec,
size_t  size 
)
inline

◆ handle_read()

template<typename NameType , typename LowerLevelStream >
void TraceStream< NameType, LowerLevelStream >::handle_read ( std::error_code  ec,
size_t  size 
)
inline

◆ handle_write()

template<typename NameType , typename LowerLevelStream >
void TraceStream< NameType, LowerLevelStream >::handle_write ( std::error_code  ec,
size_t  size 
)
inline

◆ lower_layer() [1/2]

template<typename NameType , typename LowerLevelStream >
LowerLevelStream & TraceStream< NameType, LowerLevelStream >::lower_layer ( )
inline

◆ lower_layer() [2/2]

template<typename NameType , typename LowerLevelStream >
const LowerLevelStream & TraceStream< NameType, LowerLevelStream >::lower_layer ( ) const
inline

◆ print()

template<typename NameType , typename LowerLevelStream >
template<typename... Args>
void TraceStream< NameType, LowerLevelStream >::print ( const Args &...  args)
inline

◆ print_single() [1/2]

template<typename NameType , typename LowerLevelStream >
void TraceStream< NameType, LowerLevelStream >::print_single ( )
inlineprotected

◆ print_single() [2/2]

template<typename NameType , typename LowerLevelStream >
template<typename Arg , typename... Args>
void TraceStream< NameType, LowerLevelStream >::print_single ( const Arg &  arg,
const Args...  args 
)
inlineprotected

◆ read_some()

template<typename NameType , typename LowerLevelStream >
template<class MutableBufferSequence >
stdx::expected< size_t, std::error_code > TraceStream< NameType, LowerLevelStream >::read_some ( const MutableBufferSequence &  buffers)
inline

◆ set_option()

template<typename NameType , typename LowerLevelStream >
template<typename SettableSocketOption >
stdx::expected< void, std::error_code > TraceStream< NameType, LowerLevelStream >::set_option ( const SettableSocketOption &  option)
inline

◆ set_parent()

template<typename NameType , typename LowerLevelStream >
void TraceStream< NameType, LowerLevelStream >::set_parent ( const char *  parent)
inline

◆ write_some()

template<typename NameType , typename LowerLevelStream >
template<class ConstBufferSequence >
stdx::expected< size_t, std::error_code > TraceStream< NameType, LowerLevelStream >::write_some ( const ConstBufferSequence &  buffers)
inline

Member Data Documentation

◆ lower_layer_

template<typename NameType , typename LowerLevelStream >
LowerLevelStream TraceStream< NameType, LowerLevelStream >::lower_layer_
protected

◆ out_

template<typename NameType , typename LowerLevelStream >
std::ostream* TraceStream< NameType, LowerLevelStream >::out_
protected

◆ parent_

template<typename NameType , typename LowerLevelStream >
std::string TraceStream< NameType, LowerLevelStream >::parent_
protected

◆ recv_buffer_

template<typename NameType , typename LowerLevelStream >
VectorOfBuffers TraceStream< NameType, LowerLevelStream >::recv_buffer_
protected

◆ send_buffer_

template<typename NameType , typename LowerLevelStream >
VectorOfConstBuffers TraceStream< NameType, LowerLevelStream >::send_buffer_
protected

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