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

#include <session.h>

Inherits ccf::ThreadedSession.

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

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

 EncryptedSession (::tcp::ConnID session_id_, ringbuffer::AbstractWriterFactory &writer_factory, std::unique_ptr< ccf::tls::Context > ctx)
 

Protected Attributes

std::shared_ptr< ccf::TLSSessiontls_io
 
::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

◆ EncryptedSession()

ccf::EncryptedSession::EncryptedSession ( ::tcp::ConnID  session_id_,
ringbuffer::AbstractWriterFactory writer_factory,
std::unique_ptr< ccf::tls::Context ctx 
)
inlineprotected

Member Function Documentation

◆ close_session()

void ccf::EncryptedSession::close_session ( )
inlineoverridevirtual

Implements ccf::Session.

◆ handle_incoming_data_thread()

void ccf::EncryptedSession::handle_incoming_data_thread ( std::vector< uint8_t > &&  data)
inlineoverridevirtual

Implements ccf::ThreadedSession.

◆ parse()

virtual bool ccf::EncryptedSession::parse ( std::span< const uint8_t >  data)
pure virtual

◆ send_data()

void ccf::EncryptedSession::send_data ( std::span< const uint8_t >  data)
inlineoverridevirtual

Implements ccf::Session.

◆ send_data_thread()

void ccf::EncryptedSession::send_data_thread ( std::vector< uint8_t > &&  data)
inlineoverridevirtual

Implements ccf::ThreadedSession.

Member Data Documentation

◆ session_id

::tcp::ConnID ccf::EncryptedSession::session_id
protected

◆ tls_io

std::shared_ptr<ccf::TLSSession> ccf::EncryptedSession::tls_io
protected

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