pooled connection.
More...
#include <connection_pool.h>
◆ Ssl
◆ PooledConnection() [1/2]
PooledConnection::PooledConnection |
( |
std::unique_ptr< ConnectionBase > |
conn | ) |
|
|
inline |
◆ PooledConnection() [2/2]
PooledConnection::PooledConnection |
( |
std::unique_ptr< ConnectionBase > |
conn, |
|
|
Ssl |
ssl |
|
) |
| |
|
inline |
◆ async_idle()
void PooledConnection::async_idle |
( |
std::chrono::milliseconds |
idle_timeout | ) |
|
|
private |
◆ async_recv_message()
void PooledConnection::async_recv_message |
( |
| ) |
|
|
private |
wait for server message and shutdown.
◆ connection() [1/2]
access to conn_.
allows others to move the connection structs out.
◆ connection() [2/2]
const std::unique_ptr< ConnectionBase > & PooledConnection::connection |
( |
| ) |
const |
|
inline |
◆ endpoint()
std::string PooledConnection::endpoint |
( |
| ) |
const |
|
inline |
◆ is_authenticated()
bool PooledConnection::is_authenticated |
( |
| ) |
const |
|
inline |
a pooled connection may be authenticated or not.
not authenticated:
- connection expects a fresh handshake
authenticated:
- connection expects a change-user
◆ remove_me()
void PooledConnection::remove_me |
( |
| ) |
|
|
private |
◆ remover()
void PooledConnection::remover |
( |
std::function< void()> |
remover | ) |
|
|
inline |
set a remove-callback.
used when the pooled connection wants to remove itself from the connection-pool.
◆ reset()
void PooledConnection::reset |
( |
| ) |
|
prepares for reusing the connection.
◆ ssl() [1/2]
Ssl & PooledConnection::ssl |
( |
| ) |
|
|
inline |
access to ssl_.
allows others to move the Ssl structs out.
◆ ssl() [2/2]
const Ssl & PooledConnection::ssl |
( |
| ) |
const |
|
inline |
◆ ConnectionPool
◆ conn_
◆ endpoint_
std::string PooledConnection::endpoint_ |
|
private |
◆ idle_timer_
◆ is_authenticated_
bool PooledConnection::is_authenticated_ {false} |
|
private |
◆ recv_buf_
◆ remover_
std::function<void()> PooledConnection::remover_ |
|
private |
◆ ssl_
Ssl PooledConnection::ssl_ |
|
private |
The documentation for this class was generated from the following files: