RESTinio
Public Types | Public Member Functions | Private Attributes | List of all members
restinio::impl::connection_factory_t< Traits > Class Template Reference

Factory for connections. More...

#include <connection.hpp>

Public Types

using logger_t = typename Traits::logger_t
 
using stream_socket_t = typename Traits::stream_socket_t
 

Public Member Functions

 connection_factory_t (connection_settings_handle_t< Traits > connection_settings, std::unique_ptr< socket_options_setter_t > socket_options_setter)
 
auto create_new_connection (stream_socket_t socket, endpoint_t remote_endpoint)
 

Private Attributes

connection_id_t m_connection_id_counter { 1 }
 
connection_settings_handle_t< Traits > m_connection_settings
 
std::unique_ptr< socket_options_setter_tm_socket_options_setter
 
logger_tm_logger
 

Detailed Description

template<typename Traits>
class restinio::impl::connection_factory_t< Traits >

Factory for connections.

Definition at line 1506 of file connection.hpp.

Member Typedef Documentation

◆ logger_t

template<typename Traits >
using restinio::impl::connection_factory_t< Traits >::logger_t = typename Traits::logger_t

Definition at line 1509 of file connection.hpp.

◆ stream_socket_t

template<typename Traits >
using restinio::impl::connection_factory_t< Traits >::stream_socket_t = typename Traits::stream_socket_t

Definition at line 1510 of file connection.hpp.

Constructor & Destructor Documentation

◆ connection_factory_t()

template<typename Traits >
restinio::impl::connection_factory_t< Traits >::connection_factory_t ( connection_settings_handle_t< Traits >  connection_settings,
std::unique_ptr< socket_options_setter_t socket_options_setter 
)
inline

Definition at line 1512 of file connection.hpp.

Member Function Documentation

◆ create_new_connection()

template<typename Traits >
auto restinio::impl::connection_factory_t< Traits >::create_new_connection ( stream_socket_t  socket,
endpoint_t  remote_endpoint 
)
inline

Definition at line 1521 of file connection.hpp.

Member Data Documentation

◆ m_connection_id_counter

template<typename Traits >
connection_id_t restinio::impl::connection_factory_t< Traits >::m_connection_id_counter { 1 }
private

Definition at line 1553 of file connection.hpp.

◆ m_connection_settings

template<typename Traits >
connection_settings_handle_t< Traits > restinio::impl::connection_factory_t< Traits >::m_connection_settings
private

Definition at line 1555 of file connection.hpp.

◆ m_logger

template<typename Traits >
logger_t& restinio::impl::connection_factory_t< Traits >::m_logger
private

Definition at line 1559 of file connection.hpp.

◆ m_socket_options_setter

template<typename Traits >
std::unique_ptr< socket_options_setter_t > restinio::impl::connection_factory_t< Traits >::m_socket_options_setter
private

Definition at line 1557 of file connection.hpp.


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