RESTinio
Loading...
Searching...
No Matches
restinio::connection_count_limits::connection_lifetime_monitor_t< noop_connection_count_limiter_t > Class Reference

Specialization of connection_lifetime_monitor for the case when connection count limiter is not used at all. More...

#include <connection_count_limiter.hpp>

Public Member Functions

template<typename Acceptor_Type>
 connection_lifetime_monitor_t (Acceptor_Type &, not_null_pointer_t< noop_connection_count_limiter_t >) noexcept
 ~connection_lifetime_monitor_t ()
connection_lifetime_monitor_toperator= (connection_lifetime_monitor_t &&other) noexcept

Private Attributes

std::any m_acceptor
 Holder of std::shared_ptr<acceptor_t>.
noop_connection_count_limiter_tm_manager
 Pointer to manager object that counts live connections.

Friends

void swap (connection_lifetime_monitor_t &a, connection_lifetime_monitor_t &b) noexcept

Detailed Description

Specialization of connection_lifetime_monitor for the case when connection count limiter is not used at all.

Holds nothing. Does nothing.

Since
v.0.6.12

Definition at line 457 of file connection_count_limiter.hpp.

Constructor & Destructor Documentation

◆ connection_lifetime_monitor_t()

template<typename Acceptor_Type>
restinio::connection_count_limits::connection_lifetime_monitor_t< noop_connection_count_limiter_t >::connection_lifetime_monitor_t ( Acceptor_Type & ,
not_null_pointer_t< noop_connection_count_limiter_t >  )
inlinenoexcept

Definition at line 461 of file connection_count_limiter.hpp.

◆ ~connection_lifetime_monitor_t()

Member Function Documentation

◆ operator=()

◆ swap

Member Data Documentation

◆ m_acceptor

Holder of std::shared_ptr<acceptor_t>.

The acceptor shouldn't be destroyed while this monitor object is alive. To ensure this a shared_ptr has to be stored inside monitor instance. But acceptor_t depends on Traits type that in not available here. For simplicity shared_ptr is wrapped into std::any.

Definition at line 388 of file connection_count_limiter.hpp.

◆ m_manager

Pointer to manager object that counts live connections.

Note
It may become nullptr if the object is moved.

Definition at line 394 of file connection_count_limiter.hpp.


The documentation for this class was generated from the following file: