TCP connection base.
More...
#include <tcp_connection_ctx_base.hpp>
|
template<typename Derived > |
std::shared_ptr< Derived > | shared_from_concrete () |
| Cast self to derived class.
|
|
TCP connection base.
Class serves as a root class for all connection context wrappers, that can be passed in asio callbacks.
Definition at line 27 of file tcp_connection_ctx_base.hpp.
◆ tcp_connection_ctx_base_t()
restinio::tcp_connection_ctx_base_t::tcp_connection_ctx_base_t |
( |
connection_id_t |
id | ) |
|
|
inline |
◆ ~tcp_connection_ctx_base_t()
virtual restinio::tcp_connection_ctx_base_t::~tcp_connection_ctx_base_t |
( |
| ) |
|
|
virtualdefault |
◆ check_timeout()
Check timeouts for all activities.
- Parameters
-
self | A handle to itself (eliminates one shared_ptr instantiation). |
◆ connection_id()
connection_id_t restinio::tcp_connection_ctx_base_t::connection_id |
( |
| ) |
const |
|
inlinenoexcept |
◆ shared_from_concrete()
template<typename Derived >
std::shared_ptr< Derived > restinio::tcp_connection_ctx_base_t::shared_from_concrete |
( |
| ) |
|
|
inlineprotected |
◆ m_connection_id
The documentation for this class was generated from the following file: