SNode.C
Loading...
Searching...
No Matches
net::l2::stream::tls::config::ConfigSocketClient Class Referencefinal

#include <ConfigSocketClient.h>

Inheritance diagram for net::l2::stream::tls::config::ConfigSocketClient:
Collaboration diagram for net::l2::stream::tls::config::ConfigSocketClient:

Public Member Functions

 ConfigSocketClient (const std::string &name)
 ~ConfigSocketClient () override
Public Member Functions inherited from net::config::stream::tls::ConfigSocketClient< net::l2::stream::config::ConfigSocketClient >
SSL_CTX * getSslCtx ()
Public Member Functions inherited from net::config::ConfigInstance
 ConfigInstance (ConfigInstance &)=delete
 ConfigInstance (ConfigInstance &&)=delete
ConfigInstanceoperator= (ConfigInstance &)=delete
ConfigInstanceoperator= (ConfigInstance &&)=delete
Role getRole ()
const std::string & getInstanceName () const
void setInstanceName (const std::string &instanceName)
bool getDisabled () const
void setDisabled (bool disabled=true)
CLI::App * addSection (const std::string &name, const std::string &description, const std::string &group="Sections")
CLI::App * getSection (const std::string &name, bool onlyGot=false, bool recursive=false) const
bool gotSection (const std::string &name, bool recursive=false) const
void required (CLI::App *section, bool req=true)
bool getRequired () const
CLI::App * get () const
Public Member Functions inherited from net::l2::config::ConfigAddress< net::config::ConfigAddressRemote >
ConfigAddresssetSocketAddress (const SocketAddress &socketAddress)
ConfigAddresssetBtAddress (const std::string &btAddress)
std::string getBtAddress () const
ConfigAddresssetPsm (uint16_t psm)
uint16_t getPsm () const
Public Member Functions inherited from net::config::ConfigAddress< net::l2::SocketAddress >
net::l2::SocketAddress getSocketAddress (const typename net::l2::SocketAddress::SockAddr &sockAddr, typename net::l2::SocketAddress::SockLen sockAddrLen)
void renew ()
Public Member Functions inherited from net::config::ConfigAddressBase< net::l2::SocketAddress >
net::l2::SocketAddress getSocketAddress (const typename net::l2::SocketAddress::SockAddr &sockAddr, typename net::l2::SocketAddress::SockLen sockAddrLen)
Public Member Functions inherited from net::l2::config::ConfigAddress< net::config::ConfigAddressLocal >
ConfigAddresssetSocketAddress (const SocketAddress &socketAddress)
ConfigAddresssetBtAddress (const std::string &btAddress)
std::string getBtAddress () const
ConfigAddresssetPsm (uint16_t psm)
uint16_t getPsm () const
Public Member Functions inherited from net::config::ConfigConnection
utils::Timeval getReadTimeout () const
ConfigConnectionsetReadTimeout (const utils::Timeval &newReadTimeoutSet)
utils::Timeval getWriteTimeout () const
ConfigConnectionsetWriteTimeout (const utils::Timeval &newWriteTimeoutSet)
std::size_t getReadBlockSize () const
ConfigConnectionsetReadBlockSize (std::size_t newReadBlockSize)
std::size_t getWriteBlockSize () const
ConfigConnectionsetWriteBlockSize (std::size_t newWriteBlockSize)
utils::Timeval getTerminateTimeout () const
ConfigConnectionsetTerminateTimeout (const utils::Timeval &newTerminateTimeout)
Public Member Functions inherited from net::config::ConfigPhysicalSocketClient
ConfigPhysicalSocketClientsetReconnect (bool reconnect=true)
bool getReconnect () const
ConfigPhysicalSocketClientsetReconnectTime (double time)
double getReconnectTime () const
ConfigPhysicalSocketClientsetConnectTimeout (const utils::Timeval &connectTimeout)
utils::Timeval getConnectTimeout () const
Public Member Functions inherited from net::config::ConfigPhysicalSocket
const std::map< int, std::map< int, net::phy::PhysicalSocketOption > > & getSocketOptions ()
ConfigPhysicalSocketaddSocketOption (int optLevel, int optName, int optValue)
ConfigPhysicalSocketaddSocketOption (int optLevel, int optName, const std::string &optValue)
ConfigPhysicalSocketaddSocketOption (int optLevel, int optName, const std::vector< char > &optValue)
ConfigPhysicalSocketremoveSocketOption (int optLevel, int optName)
ConfigPhysicalSocketsetRetry (bool retry=true)
bool getRetry () const
ConfigPhysicalSocketsetRetryOnFatal (bool retry=true)
bool getRetryOnFatal () const
ConfigPhysicalSocketsetRetryTimeout (double sec)
double getRetryTimeout () const
ConfigPhysicalSocketsetRetryTries (unsigned int tries=0)
unsigned int getRetryTries () const
ConfigPhysicalSocketsetRetryBase (double base)
double getRetryBase () const
ConfigPhysicalSocketsetRetryLimit (unsigned int limit)
unsigned int getRetryLimit () const
ConfigPhysicalSocketsetRetryJitter (double percent)
double getRetryJitter () const
Public Member Functions inherited from net::config::ConfigTlsClient
ConfigTlsClientsetSni (const std::string &sni)
std::string getSni () const
Public Member Functions inherited from net::config::ConfigTls
ConfigTlssetInitTimeout (const utils::Timeval &newInitTimeout)
utils::Timeval getInitTimeout () const
ConfigTlssetShutdownTimeout (const utils::Timeval &newShutdownTimeout)
utils::Timeval getShutdownTimeout () const
ConfigTlssetCert (const std::string &cert)
std::string getCert () const
ConfigTlssetCertKey (const std::string &certKey)
std::string getCertKey () const
ConfigTlssetCertKeyPassword (const std::string &certKeyPassword)
std::string getCertKeyPassword () const
ConfigTlssetCaCert (const std::string &caCert)
std::string getCaCert () const
ConfigTlssetCaCertDir (const std::string &caCertDir)
std::string getCaCertDir () const
ConfigTlssetCaCertUseDefaultDir (bool set=true)
bool getCaCertUseDefaultDir () const
ConfigTlssetCaCertAcceptUnknown (bool set=true)
bool getCaCertAcceptUnknown () const
ConfigTlssetCipherList (const std::string &cipherList)
std::string getCipherList () const
ConfigTlssetSslOptions (ssl_option_t sslOptions)
ssl_option_t getSslOptions () const
ConfigTlssetNoCloseNotifyIsEOF (bool noCloseNotifyIsEOF=true)
bool getNoCloseNotifyIsEOF () const

Additional Inherited Members

Public Types inherited from net::config::ConfigInstance
enum class  Role { SERVER , CLIENT }
using Instance = ConfigInstance
Public Types inherited from net::config::stream::ConfigSocketClient< net::l2::config::ConfigAddress >
using Remote
using Local
Public Types inherited from net::config::ConfigConnection
using Connection = ConfigConnection
Public Types inherited from net::config::ConfigPhysicalSocketClient
using Socket = ConfigPhysicalSocketClient
Public Types inherited from net::config::ConfigTlsClient
using Tls = ConfigTlsClient
Protected Member Functions inherited from net::config::stream::tls::ConfigSocketClient< net::l2::stream::config::ConfigSocketClient >
 ConfigSocketClient (const std::string &name)
 ~ConfigSocketClient () override
Protected Member Functions inherited from net::config::ConfigInstance
 ConfigInstance (const std::string &instanceName, Role role)
virtual ~ConfigInstance ()
Protected Member Functions inherited from net::l2::stream::config::ConfigSocketClient
 ConfigSocketClient (net::config::ConfigInstance *instance)
 ~ConfigSocketClient () override
Protected Member Functions inherited from net::config::stream::ConfigSocketClient< net::l2::config::ConfigAddress >
 ConfigSocketClient (net::config::ConfigInstance *instance)
Protected Member Functions inherited from net::l2::config::ConfigAddress< net::config::ConfigAddressRemote >
 ConfigAddress (net::config::ConfigInstance *instance, const std::string &addressOptionName, const std::string &addressOptionDescription)
ConfigAddresssetBtAddressRequired (bool required=true)
ConfigAddresssetPsmRequired (bool required=true)
Protected Member Functions inherited from net::config::ConfigAddress< net::l2::SocketAddress >
 ConfigAddress (ConfigInstance *instance, const std::string &addressOptionName, const std::string &addressOptionDescription)
 ~ConfigAddress () override
Protected Member Functions inherited from net::config::ConfigAddressBase< net::l2::SocketAddress >
 ConfigAddressBase (ConfigInstance *instance, const std::string &addressOptionName="", const std::string &addressOptionDescription="")
virtual ~ConfigAddressBase ()=default
Protected Member Functions inherited from net::config::ConfigSection
 ConfigSection (ConfigInstance *instance, const std::string &name, const std::string &description)
 ConfigSection (const ConfigSection &)=delete
 ConfigSection (ConfigSection &&)=delete
ConfigSectionoperator= (const ConfigSection &)=delete
ConfigSectionoperator= (ConfigSection &&)=delete
CLI::Option * addOption (const std::string &name, const std::string &description)
CLI::Option * addOption (const std::string &name, const std::string &description, const std::string &typeName)
CLI::Option * addOption (const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator)
template<typename ValueTypeT>
CLI::Option * addOption (const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue)
template<typename ValueTypeT>
CLI::Option * addOption (const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator)
CLI::Option * addFlag (const std::string &name, const std::string &description, const std::string &typeName)
CLI::Option * addFlag (const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator)
template<typename ValueTypeT>
CLI::Option * addFlag (const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue)
template<typename ValueTypeT>
CLI::Option * addFlag (const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator)
CLI::Option * addFlagFunction (const std::string &name, const std::function< void()> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue)
CLI::Option * addFlagFunction (const std::string &name, const std::function< void()> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator)
void required (CLI::Option *opt, bool req=true)
bool required () const
template<typename ValueType>
CLI::Option * addOption (const std::string &name, const std::string &description, const std::string &typeName, ValueType defaultValue)
template<typename ValueType>
CLI::Option * addOption (const std::string &name, const std::string &description, const std::string &typeName, ValueType defaultValue, const CLI::Validator &additionalValidator)
template<typename ValueType>
CLI::Option * addFlag (const std::string &name, const std::string &description, const std::string &typeName, ValueType defaultValue)
template<typename ValueType>
CLI::Option * addFlag (const std::string &name, const std::string &description, const std::string &typeName, ValueType defaultValue, const CLI::Validator &additionalValidator)
Protected Member Functions inherited from net::l2::config::ConfigAddress< net::config::ConfigAddressLocal >
 ConfigAddress (net::config::ConfigInstance *instance, const std::string &addressOptionName, const std::string &addressOptionDescription)
ConfigAddresssetBtAddressRequired (bool required=true)
ConfigAddresssetPsmRequired (bool required=true)
Protected Member Functions inherited from net::config::ConfigConnection
 ConfigConnection (ConfigInstance *instance)
Protected Member Functions inherited from net::config::ConfigPhysicalSocketClient
 ConfigPhysicalSocketClient (ConfigInstance *instance)
Protected Member Functions inherited from net::config::ConfigPhysicalSocket
 ConfigPhysicalSocket (ConfigInstance *instance)
CLI::Option * addSocketOption (const std::string &name, int optLevel, int optName, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator)
Protected Member Functions inherited from net::config::ConfigTlsClient
 ConfigTlsClient (ConfigInstance *instance)
Protected Member Functions inherited from net::config::ConfigTls
 ConfigTls (ConfigInstance *instance)
Protected Attributes inherited from net::l2::config::ConfigAddress< net::config::ConfigAddressRemote >
CLI::Option * btAddressOpt
CLI::Option * psmOpt
Protected Attributes inherited from net::config::ConfigSection
CLI::App * section = nullptr
Protected Attributes inherited from net::l2::config::ConfigAddress< net::config::ConfigAddressLocal >
CLI::Option * btAddressOpt
CLI::Option * psmOpt

Detailed Description

Definition at line 56 of file ConfigSocketClient.h.

Constructor & Destructor Documentation

◆ ConfigSocketClient()

net::l2::stream::tls::config::ConfigSocketClient::ConfigSocketClient ( const std::string & name)
explicit

Definition at line 52 of file ConfigSocketClient.cpp.

53 : net::config::stream::tls::ConfigSocketClient<net::l2::stream::config::ConfigSocketClient>(name) {
54 }

References net::config::stream::tls::ConfigSocketClient< ConfigSocketClientBaseT >::ConfigSocketClient().

Here is the call graph for this function:

◆ ~ConfigSocketClient()

net::l2::stream::tls::config::ConfigSocketClient::~ConfigSocketClient ( )
override

Definition at line 56 of file ConfigSocketClient.cpp.

56 {
57 }

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