#include <statement_reader.h>
◆ endpoint_type
◆ protocol_type
◆ socket_type
◆ ProtocolBase() [1/3]
◆ ProtocolBase() [2/3]
server_mock::ProtocolBase::ProtocolBase |
( |
const ProtocolBase & |
| ) |
|
|
delete |
◆ ProtocolBase() [3/3]
◆ ~ProtocolBase()
virtual server_mock::ProtocolBase::~ProtocolBase |
( |
| ) |
|
|
virtualdefault |
◆ async_receive()
template<class CompletionToken >
void server_mock::ProtocolBase::async_receive |
( |
CompletionToken && |
token | ) |
|
|
inline |
◆ async_receive_tls()
template<class CompletionToken >
void server_mock::ProtocolBase::async_receive_tls |
( |
CompletionToken && |
token | ) |
|
|
inline |
◆ async_send()
template<class CompletionToken >
void server_mock::ProtocolBase::async_send |
( |
CompletionToken && |
token | ) |
|
|
inline |
◆ async_send_tls()
template<class CompletionToken >
void server_mock::ProtocolBase::async_send_tls |
( |
CompletionToken && |
token | ) |
|
|
inline |
◆ async_tls_accept()
template<class CompletionToken >
void server_mock::ProtocolBase::async_tls_accept |
( |
CompletionToken && |
token | ) |
|
|
inline |
◆ auth_method_data() [1/2]
std::string server_mock::ProtocolBase::auth_method_data |
( |
| ) |
const |
|
inline |
◆ auth_method_data() [2/2]
void server_mock::ProtocolBase::auth_method_data |
( |
const std::string & |
auth_method_data | ) |
|
|
inline |
◆ auth_method_name() [1/2]
std::string server_mock::ProtocolBase::auth_method_name |
( |
| ) |
const |
|
inline |
◆ auth_method_name() [2/2]
void server_mock::ProtocolBase::auth_method_name |
( |
const std::string & |
auth_method_name | ) |
|
|
inline |
◆ authenticate()
bool server_mock::ProtocolBase::authenticate |
( |
const std::string & |
auth_method_name, |
|
|
const std::string & |
auth_method_data, |
|
|
const std::string & |
password, |
|
|
const std::vector< uint8_t > & |
auth_response |
|
) |
| |
|
static |
◆ avail_ssl()
stdx::expected< size_t, std::error_code > server_mock::ProtocolBase::avail_ssl |
( |
| ) |
|
◆ cancel()
void server_mock::ProtocolBase::cancel |
( |
| ) |
|
◆ client_socket()
◆ encode_error()
virtual void server_mock::ProtocolBase::encode_error |
( |
const ErrorResponse & |
resp | ) |
|
|
pure virtual |
◆ encode_ok()
virtual void server_mock::ProtocolBase::encode_ok |
( |
const OkResponse & |
resp | ) |
|
|
pure virtual |
◆ encode_resultset()
virtual void server_mock::ProtocolBase::encode_resultset |
( |
const ResultsetResponse & |
response | ) |
|
|
pure virtual |
◆ exec_timer()
◆ init_tls()
void server_mock::ProtocolBase::init_tls |
( |
| ) |
|
◆ io_context()
◆ is_tls()
bool server_mock::ProtocolBase::is_tls |
( |
| ) |
|
|
inline |
◆ map_tls_error_code()
static std::error_code server_mock::ProtocolBase::map_tls_error_code |
( |
std::error_code |
ec | ) |
|
|
inlinestatic |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ read_ssl()
◆ send_buffer()
const std::vector< uint8_t > & server_mock::ProtocolBase::send_buffer |
( |
| ) |
const |
|
inline |
◆ ssl()
const SSL * server_mock::ProtocolBase::ssl |
( |
| ) |
const |
|
inline |
◆ terminate()
void server_mock::ProtocolBase::terminate |
( |
| ) |
|
terminate the current connection.
sets is_terminated(true) and cancels the current operation.
may be called from another thread.
◆ tls_accept()
stdx::expected< void, std::error_code > server_mock::ProtocolBase::tls_accept |
( |
| ) |
|
◆ username() [1/2]
std::string server_mock::ProtocolBase::username |
( |
| ) |
const |
|
inline |
◆ username() [2/2]
void server_mock::ProtocolBase::username |
( |
const std::string & |
username | ) |
|
|
inline |
◆ write_ssl()
◆ auth_method_data_
std::string server_mock::ProtocolBase::auth_method_data_ {} |
|
protected |
◆ auth_method_name_
std::string server_mock::ProtocolBase::auth_method_name_ {} |
|
protected |
◆ client_ep_
◆ client_socket_
◆ exec_timer_
◆ is_terminated_
Monitor<bool> server_mock::ProtocolBase::is_terminated_ {false} |
|
private |
◆ recv_buffer_
std::vector<uint8_t> server_mock::ProtocolBase::recv_buffer_ |
|
protected |
◆ send_buffer_
std::vector<uint8_t> server_mock::ProtocolBase::send_buffer_ |
|
protected |
◆ ssl_
std::unique_ptr<SSL, SSL_Deleter> server_mock::ProtocolBase::ssl_ |
|
protected |
◆ tls_ctx_
◆ username_
std::string server_mock::ProtocolBase::username_ {} |
|
protected |
The documentation for this class was generated from the following files: