MySQL 8.4.2
Source Code Documentation
|
basic connection which wraps a net-ts Protocol. More...
#include <connection_base.h>
Public Types | |
using | protocol_type = Protocol |
using | socket_type = typename protocol_type::socket |
using | endpoint_type = typename protocol_type::endpoint |
using | recv_buffer_type = ConnectionBase::recv_buffer_type |
Public Types inherited from ConnectionBase | |
using | recv_buffer_type = std::vector< uint8_t, default_init_allocator< uint8_t > > |
Public Member Functions | |
BasicConnection (socket_type sock, endpoint_type ep) | |
net::io_context & | io_ctx () override |
stdx::expected< void, std::error_code > | set_io_context (net::io_context &new_ctx) override |
void | async_recv (recv_buffer_type &buf, std::function< void(std::error_code ec, size_t transferred)> completion) override |
void | async_send (recv_buffer_type &buf, std::function< void(std::error_code ec, size_t transferred)> completion) override |
void | async_wait_send (std::function< void(std::error_code ec)> completion) override |
void | async_wait_recv (std::function< void(std::error_code ec)> completion) override |
void | async_wait_error (std::function< void(std::error_code ec)> completion) override |
bool | is_open () const override |
net::impl::socket::native_handle_type | native_handle () const override |
stdx::expected< void, std::error_code > | close () override |
stdx::expected< void, std::error_code > | cancel () override |
stdx::expected< void, std::error_code > | shutdown (net::socket_base::shutdown_type st) override |
std::string | endpoint () const override |
template<class GettableSocketOption > | |
stdx::expected< void, std::error_code > | get_option (GettableSocketOption &opt) const |
bool | is_secure_transport () const override |
check if the underlying transport is secure. More... | |
Public Member Functions inherited from ConnectionBase | |
virtual | ~ConnectionBase ()=default |
Protected Attributes | |
socket_type | sock_ |
endpoint_type | ep_ |
basic connection which wraps a net-ts Protocol.
knows about mysql-protocol specifics like:
Protocol | a protocol like net::ip::tcp or local::stream_protocol |
using BasicConnection< Protocol >::endpoint_type = typename protocol_type::endpoint |
using BasicConnection< Protocol >::protocol_type = Protocol |
using BasicConnection< Protocol >::recv_buffer_type = ConnectionBase::recv_buffer_type |
using BasicConnection< Protocol >::socket_type = typename protocol_type::socket |
|
inline |
|
inlineoverridevirtual |
Implements ConnectionBase.
|
inlineoverridevirtual |
Implements ConnectionBase.
|
inlineoverridevirtual |
Implements ConnectionBase.
|
inlineoverridevirtual |
Implements ConnectionBase.
|
inlineoverridevirtual |
Implements ConnectionBase.
|
inlineoverridevirtual |
Implements ConnectionBase.
|
inlineoverridevirtual |
Implements ConnectionBase.
|
inlineoverridevirtual |
Implements ConnectionBase.
|
inline |
|
inlineoverridevirtual |
Implements ConnectionBase.
|
inlineoverridevirtual |
Implements ConnectionBase.
|
inlineoverridevirtual |
check if the underlying transport is secure.
Implements ConnectionBase.
|
inlineoverridevirtual |
Implements ConnectionBase.
|
inlineoverridevirtual |
Implements ConnectionBase.
|
inlineoverridevirtual |
Implements ConnectionBase.
|
protected |
|
protected |