CCF
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
client::TlsClient Class Reference

#include <tls_client.h>

Inherited by client::HttpRpcTlsClient.

Public Member Functions

 TlsClient (const std::string &host, const std::string &port, std::shared_ptr<::tls::CA > node_ca=nullptr, std::shared_ptr<::tls::Cert > cert=nullptr)
 
 TlsClient (const TlsClient &c)
 
virtual ~TlsClient ()
 
auto get_ciphersuite_name ()
 
void write (std::span< const uint8_t > b)
 
std::vector< uint8_t > read (size_t read_size)
 
bool bytes_available ()
 
std::vector< uint8_t > read_all ()
 
void set_tcp_nodelay (bool on)
 

Protected Member Functions

void init ()
 

Protected Attributes

std::string host
 
std::string port
 
std::shared_ptr<::tls::CAnode_ca
 
std::shared_ptr<::tls::Certcert
 
bool connected = false
 
Unique_SSL_CTX ctx
 
Unique_BIO bio
 

Constructor & Destructor Documentation

◆ TlsClient() [1/2]

client::TlsClient::TlsClient ( const std::string &  host,
const std::string &  port,
std::shared_ptr<::tls::CA node_ca = nullptr,
std::shared_ptr<::tls::Cert cert = nullptr 
)
inline

◆ TlsClient() [2/2]

client::TlsClient::TlsClient ( const TlsClient c)
inline

◆ ~TlsClient()

virtual client::TlsClient::~TlsClient ( )
inlinevirtual

Member Function Documentation

◆ bytes_available()

bool client::TlsClient::bytes_available ( )
inline

◆ get_ciphersuite_name()

auto client::TlsClient::get_ciphersuite_name ( )
inline

◆ init()

void client::TlsClient::init ( )
inlineprotected

◆ read()

std::vector< uint8_t > client::TlsClient::read ( size_t  read_size)
inline

◆ read_all()

std::vector< uint8_t > client::TlsClient::read_all ( )
inline

◆ set_tcp_nodelay()

void client::TlsClient::set_tcp_nodelay ( bool  on)
inline

◆ write()

void client::TlsClient::write ( std::span< const uint8_t >  b)
inline

Member Data Documentation

◆ bio

Unique_BIO client::TlsClient::bio
protected

◆ cert

std::shared_ptr<::tls::Cert> client::TlsClient::cert
protected

◆ connected

bool client::TlsClient::connected = false
protected

◆ ctx

Unique_SSL_CTX client::TlsClient::ctx
protected

◆ host

std::string client::TlsClient::host
protected

◆ node_ca

std::shared_ptr<::tls::CA> client::TlsClient::node_ca
protected

◆ port

std::string client::TlsClient::port
protected

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