28 :
public std::enable_shared_from_this< tcp_connection_ctx_base_t >
44 std::shared_ptr< tcp_connection_ctx_base_t > & self ) = 0;
49 template <
typename Derived >
50 std::shared_ptr< Derived >
53 return std::static_pointer_cast< Derived >( shared_from_this() );
virtual void check_timeout(std::shared_ptr< tcp_connection_ctx_base_t > &self)=0
Check timeouts for all activities.
const connection_id_t m_connection_id
Id of a connection.
tcp_connection_ctx_base_t(connection_id_t id)
connection_id_t connection_id() const noexcept
Get connection id.
std::shared_ptr< Derived > shared_from_concrete()
Cast self to derived class.
virtual ~tcp_connection_ctx_base_t()=default
Stuff related to connection state listeners.
std::shared_ptr< tcp_connection_ctx_base_t > tcp_connection_ctx_handle_t
Alias for http connection handle.
std::weak_ptr< tcp_connection_ctx_base_t > tcp_connection_ctx_weak_handle_t
Alias for http connection weak handle.
std::uint64_t connection_id_t
Type for ID of connection.