CCF
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
http::HTTP2Session Class Referenceabstract

#include <http2_session.h>

Inherits ccf::ThreadedSession.

Inherited by http::HTTP2ClientSession, and http::HTTP2ServerSession.

Public Member Functions

virtual bool parse (std::span< const uint8_t > data)=0
 
void send_data (std::span< const uint8_t > data) override
 
void send_data_thread (std::vector< uint8_t > &&data) override
 
void close_session () override
 
void handle_incoming_data_thread (std::vector< uint8_t > &&data) override
 
- Public Member Functions inherited from ccf::ThreadedSession
 ThreadedSession (int64_t thread_affinity)
 
void handle_incoming_data (std::span< const uint8_t > data) override
 
void send_data (std::span< const uint8_t > data) override
 
- Public Member Functions inherited from ccf::Session
virtual ~Session ()=default
 

Protected Member Functions

 HTTP2Session (::tcp::ConnID session_id_, ringbuffer::AbstractWriterFactory &writer_factory, std::unique_ptr< ccf::tls::Context > ctx, const std::shared_ptr< ErrorReporter > &error_reporter=nullptr)
 

Protected Attributes

std::shared_ptr< ccf::TLSSessiontls_io
 
std::shared_ptr< ErrorReportererror_reporter
 
::tcp::ConnID session_id
 

Additional Inherited Members

- Static Public Member Functions inherited from ccf::ThreadedSession
static void handle_incoming_data_cb (std::unique_ptr<::threading::Tmsg< SendRecvMsg > > msg)
 
static void send_data_cb (std::unique_ptr<::threading::Tmsg< SendRecvMsg > > msg)
 

Constructor & Destructor Documentation

◆ HTTP2Session()

http::HTTP2Session::HTTP2Session ( ::tcp::ConnID  session_id_,
ringbuffer::AbstractWriterFactory writer_factory,
std::unique_ptr< ccf::tls::Context ctx,
const std::shared_ptr< ErrorReporter > &  error_reporter = nullptr 
)
inlineprotected

Member Function Documentation

◆ close_session()

void http::HTTP2Session::close_session ( )
inlineoverridevirtual

Implements ccf::Session.

◆ handle_incoming_data_thread()

void http::HTTP2Session::handle_incoming_data_thread ( std::vector< uint8_t > &&  data)
inlineoverridevirtual

Implements ccf::ThreadedSession.

◆ parse()

virtual bool http::HTTP2Session::parse ( std::span< const uint8_t >  data)
pure virtual

◆ send_data()

void http::HTTP2Session::send_data ( std::span< const uint8_t >  data)
inlineoverridevirtual

Implements ccf::Session.

◆ send_data_thread()

void http::HTTP2Session::send_data_thread ( std::vector< uint8_t > &&  data)
inlineoverridevirtual

Implements ccf::ThreadedSession.

Member Data Documentation

◆ error_reporter

std::shared_ptr<ErrorReporter> http::HTTP2Session::error_reporter
protected

◆ session_id

::tcp::ConnID http::HTTP2Session::session_id
protected

◆ tls_io

std::shared_ptr<ccf::TLSSession> http::HTTP2Session::tls_io
protected

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