MySQL 9.1.0
Source Code Documentation
ConnectionBase Class Referenceabstract

virtual base-class of BasicConnection. More...

#include <connection_base.h>

Inheritance diagram for ConnectionBase:
[legend]

Public Types

using recv_buffer_type = std::vector< uint8_t, default_init_allocator< uint8_t > >
 

Public Member Functions

virtual ~ConnectionBase ()=default
 
virtual net::io_contextio_ctx ()=0
 
virtual void async_recv (recv_buffer_type &, std::function< void(std::error_code ec, size_t transferred)>)=0
 
virtual void async_send (recv_buffer_type &, std::function< void(std::error_code ec, size_t transferred)>)=0
 
virtual void async_wait_send (std::function< void(std::error_code ec)>)=0
 
virtual void async_wait_recv (std::function< void(std::error_code ec)>)=0
 
virtual void async_wait_error (std::function< void(std::error_code ec)>)=0
 
virtual bool is_open () const =0
 
virtual net::impl::socket::native_handle_type native_handle () const =0
 
virtual stdx::expected< void, std::error_code > close ()=0
 
virtual stdx::expected< void, std::error_code > shutdown (net::socket_base::shutdown_type st)=0
 
virtual std::string endpoint () const =0
 
virtual stdx::expected< void, std::error_code > cancel ()=0
 
virtual bool is_secure_transport () const =0
 
virtual stdx::expected< void, std::error_code > set_io_context (net::io_context &new_ctx)=0
 

Detailed Description

virtual base-class of BasicConnection.

Member Typedef Documentation

◆ recv_buffer_type

using ConnectionBase::recv_buffer_type = std::vector<uint8_t, default_init_allocator<uint8_t> >

Constructor & Destructor Documentation

◆ ~ConnectionBase()

virtual ConnectionBase::~ConnectionBase ( )
virtualdefault

Member Function Documentation

◆ async_recv()

virtual void ConnectionBase::async_recv ( recv_buffer_type ,
std::function< void(std::error_code ec, size_t transferred)>   
)
pure virtual

Implemented in BasicConnection< Protocol >.

◆ async_send()

virtual void ConnectionBase::async_send ( recv_buffer_type ,
std::function< void(std::error_code ec, size_t transferred)>   
)
pure virtual

Implemented in BasicConnection< Protocol >.

◆ async_wait_error()

virtual void ConnectionBase::async_wait_error ( std::function< void(std::error_code ec)>  )
pure virtual

Implemented in BasicConnection< Protocol >.

◆ async_wait_recv()

virtual void ConnectionBase::async_wait_recv ( std::function< void(std::error_code ec)>  )
pure virtual

Implemented in BasicConnection< Protocol >.

◆ async_wait_send()

virtual void ConnectionBase::async_wait_send ( std::function< void(std::error_code ec)>  )
pure virtual

Implemented in BasicConnection< Protocol >.

◆ cancel()

virtual stdx::expected< void, std::error_code > ConnectionBase::cancel ( )
pure virtual

Implemented in BasicConnection< Protocol >.

◆ close()

virtual stdx::expected< void, std::error_code > ConnectionBase::close ( )
pure virtual

Implemented in BasicConnection< Protocol >.

◆ endpoint()

virtual std::string ConnectionBase::endpoint ( ) const
pure virtual

Implemented in BasicConnection< Protocol >.

◆ io_ctx()

virtual net::io_context & ConnectionBase::io_ctx ( )
pure virtual

Implemented in BasicConnection< Protocol >.

◆ is_open()

virtual bool ConnectionBase::is_open ( ) const
pure virtual

Implemented in BasicConnection< Protocol >.

◆ is_secure_transport()

virtual bool ConnectionBase::is_secure_transport ( ) const
pure virtual

Implemented in BasicConnection< Protocol >.

◆ native_handle()

virtual net::impl::socket::native_handle_type ConnectionBase::native_handle ( ) const
pure virtual

Implemented in BasicConnection< Protocol >.

◆ set_io_context()

virtual stdx::expected< void, std::error_code > ConnectionBase::set_io_context ( net::io_context new_ctx)
pure virtual

Implemented in BasicConnection< Protocol >.

◆ shutdown()

virtual stdx::expected< void, std::error_code > ConnectionBase::shutdown ( net::socket_base::shutdown_type  st)
pure virtual

Implemented in BasicConnection< Protocol >.


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