Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::http_plugin_impl::abstract_conn_impl< T > Struct Template Reference
Inheritance diagram for sysio::http_plugin_impl::abstract_conn_impl< T >:
Collaboration diagram for sysio::http_plugin_impl::abstract_conn_impl< T >:

Public Member Functions

 abstract_conn_impl (detail::connection_ptr< T > conn, http_plugin_impl_ptr impl)
 
 abstract_conn_impl (const abstract_conn_impl &)=delete
 
 abstract_conn_impl (abstract_conn_impl &&)=delete
 
abstract_conn_imploperator= (const abstract_conn_impl &)=delete
 
abstract_conn_imploperator= (abstract_conn_impl &&) noexcept=default
 
 ~abstract_conn_impl ()=default
 
bool verify_max_bytes_in_flight () override
 
void handle_exception () override
 
void send_response (std::string body, int code) override
 
- Public Member Functions inherited from sysio::detail::abstract_conn
virtual ~abstract_conn ()
 

Public Attributes

detail::connection_ptr< T_conn
 
http_plugin_impl_ptr _impl
 

Detailed Description

template<typename T>
struct sysio::http_plugin_impl::abstract_conn_impl< T >

child struct, implementing abstract connection for various underlying connection types that ties it to an http_plugin_impl

Template Parameters
T- The downstream parameter for the connection_ptr

Definition at line 354 of file http_plugin.cpp.

Constructor & Destructor Documentation

◆ abstract_conn_impl() [1/3]

template<typename T >
sysio::http_plugin_impl::abstract_conn_impl< T >::abstract_conn_impl ( detail::connection_ptr< T > conn,
http_plugin_impl_ptr impl )
inline

Definition at line 355 of file http_plugin.cpp.

356 :_conn(std::move(conn))
357 ,_impl(std::move(impl))
358 {}

◆ abstract_conn_impl() [2/3]

template<typename T >
sysio::http_plugin_impl::abstract_conn_impl< T >::abstract_conn_impl ( const abstract_conn_impl< T > & )
delete

◆ abstract_conn_impl() [3/3]

template<typename T >
sysio::http_plugin_impl::abstract_conn_impl< T >::abstract_conn_impl ( abstract_conn_impl< T > && )
delete

◆ ~abstract_conn_impl()

template<typename T >
sysio::http_plugin_impl::abstract_conn_impl< T >::~abstract_conn_impl ( )
default

Member Function Documentation

◆ handle_exception()

template<typename T >
void sysio::http_plugin_impl::abstract_conn_impl< T >::handle_exception ( )
inlineoverridevirtual

Implements sysio::detail::abstract_conn.

Definition at line 372 of file http_plugin.cpp.

372 {
374 }
static void handle_exception(detail::connection_ptr< T > con)
Here is the call graph for this function:

◆ operator=() [1/2]

template<typename T >
abstract_conn_impl & sysio::http_plugin_impl::abstract_conn_impl< T >::operator= ( abstract_conn_impl< T > && )
defaultnoexcept

◆ operator=() [2/2]

template<typename T >
abstract_conn_impl & sysio::http_plugin_impl::abstract_conn_impl< T >::operator= ( const abstract_conn_impl< T > & )
delete

◆ send_response()

template<typename T >
void sysio::http_plugin_impl::abstract_conn_impl< T >::send_response ( std::string body,
int code )
inlineoverridevirtual

Implements sysio::detail::abstract_conn.

Definition at line 376 of file http_plugin.cpp.

376 {
377 _conn->set_body(std::move(body));
378 _conn->set_status( websocketpp::http::status_code::value( code ) );
379 _conn->send_http_response();
380 }

◆ verify_max_bytes_in_flight()

template<typename T >
bool sysio::http_plugin_impl::abstract_conn_impl< T >::verify_max_bytes_in_flight ( )
inlineoverridevirtual

Implements sysio::detail::abstract_conn.

Definition at line 368 of file http_plugin.cpp.

368 {
369 return _impl->verify_max_bytes_in_flight(_conn);
370 }
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _conn

Definition at line 382 of file http_plugin.cpp.

◆ _impl

Definition at line 383 of file http_plugin.cpp.


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