#include <ConfigPhysicalSocket.h>
Public Member Functions | |
| const std::map< int, std::map< int, net::phy::PhysicalSocketOption > > & | getSocketOptions () const |
| ConfigPhysicalSocket & | addSocketOption (int optLevel, int optName, int optValue) |
| ConfigPhysicalSocket & | addSocketOption (int optLevel, int optName, const std::string &optValue) |
| ConfigPhysicalSocket & | addSocketOption (int optLevel, int optName, const std::vector< char > &optValue) |
| ConfigPhysicalSocket & | removeSocketOption (int optLevel, int optName) |
| ConfigPhysicalSocket & | setRetry (bool retry=true) |
| bool | getRetry () const |
| ConfigPhysicalSocket & | setRetryOnFatal (bool retry=true) |
| bool | getRetryOnFatal () const |
| ConfigPhysicalSocket & | setRetryTimeout (double sec) |
| double | getRetryTimeout () const |
| ConfigPhysicalSocket & | setRetryTries (unsigned int tries=0) |
| unsigned int | getRetryTries () const |
| ConfigPhysicalSocket & | setRetryBase (double base) |
| double | getRetryBase () const |
| ConfigPhysicalSocket & | setRetryLimit (unsigned int limit) |
| unsigned int | getRetryLimit () const |
| ConfigPhysicalSocket & | setRetryJitter (double percent) |
| double | getRetryJitter () const |
| template<typename ConcretConfigPhysicalSocket> | |
| ConfigPhysicalSocket (ConfigInstance *instance, ConcretConfigPhysicalSocket *section) | |
| Public Member Functions inherited from net::config::ConfigSection | |
| template<typename T> | |
| ConfigSection (ConfigInstance *instance, T *sectionPtr, const std::string &group="Sections") | |
| ~ConfigSection () override | |
| ConfigSection (const ConfigSection &)=delete | |
| ConfigSection (ConfigSection &&)=delete | |
| ConfigSection & | operator= (const ConfigSection &)=delete |
| Public Member Functions inherited from utils::SubCommand | |
| SubCommand (const SubCommand &)=delete | |
| SubCommand (SubCommand &&)=delete | |
| SubCommand & | operator= (const SubCommand &)=delete |
| SubCommand & | operator= (SubCommand &&)=delete |
| virtual | ~SubCommand () |
| std::string | getName () const |
| std::string | version () const |
| void | parse (int argc, char *argv[]) |
| CLI::Option * | setConfig (const std::string &defaultConfigFile) const |
| CLI::Option * | setLogFile (const std::string &defaultLogFile) const |
| CLI::Option * | setVersionFlag (const std::string &version) const |
| bool | hasParent () const |
| SubCommand * | getParent () |
| SubCommand * | allowExtras (bool allow=true) |
| SubCommand * | required (bool required=true, bool force=true) |
| SubCommand * | required (SubCommand *subCommand, bool required=true) |
| SubCommand * | required (CLI::Option *option, bool required=true) |
| SubCommand * | needs (SubCommand *subCommand, bool needs=true) |
| SubCommand * | disabled (SubCommand *subCommand, bool disabled=true) |
| SubCommand * | setRequireCallback (const std::function< void(void)> &callback) |
| SubCommand * | finalCallback (const std::function< void()> &finalCallback) |
| std::string | configToStr () const |
| std::string | help (const CLI::App *helpApp, const CLI::AppFormatMode &mode) const |
| template<typename NewSubCommand, typename... Args> | |
| NewSubCommand * | newSubCommand (Args &&... args) |
| template<typename RequestedSubCommand> | |
| RequestedSubCommand * | getSubCommand () |
| template<typename RequestedSubCommand> | |
| RequestedSubCommand * | getSubCommand () const |
| CLI::Option * | getOption (const std::string &name) const |
| CLI::Option * | addOption (const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &validator) const |
| template<typename ValueTypeT> | |
| CLI::Option * | addOption (const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &validator) const |
| template<typename ValueTypeT> | |
| CLI::Option * | addOptionVariable (const std::string &name, ValueTypeT &variable, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator) const |
| template<typename ValueTypeT> | |
| CLI::Option * | addOptionVariable (const std::string &name, ValueTypeT &variable, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator) const |
| CLI::Option * | addOptionFunction (const std::string &name, std::function< void(const std::string &)> &callback, const std::string &description, const std::string &typeName, const CLI::Validator &validator) const |
| template<typename ValueTypeT> | |
| CLI::Option * | addOptionFunction (const std::string &name, std::function< void(const std::string &)> &callback, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &validator) const |
| CLI::Option * | addFlag (const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &validator) const |
| template<typename ValueTypeT> | |
| CLI::Option * | addFlag (const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &validator) const |
| CLI::Option * | addFlagFunction (const std::string &name, const std::function< void()> &callback, const std::string &description, const std::string &typeName, const CLI::Validator &validator) |
| 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) |
Static Public Attributes | |
| static constexpr std::string_view | NAME {"socket"} |
| static constexpr std::string_view | DESCRIPTION {"Configuration of socket behavior"} |
| Static Public Attributes inherited from utils::SubCommand | |
| static std::shared_ptr< CLI::Formatter > | sectionFormatter = makeSectionFormatter() |
Protected Member Functions | |
| template<typename ConcretConfigPhysicalSocketT> | |
| ConfigPhysicalSocket (ConfigInstance *instance, ConcretConfigPhysicalSocketT *section) | |
| ~ConfigPhysicalSocket () override | |
| 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 utils::SubCommand | |
| SubCommand (SubCommand *parent, std::shared_ptr< utils::AppWithPtr > appWithPtr, const std::string &group, bool final) | |
| template<typename ConcretSubCommand> | |
| SubCommand (SubCommand *parent, ConcretSubCommand *concretSubCommand, const std::string &group, bool final=true) | |
| SubCommand * | description (const std::string &description) |
| SubCommand * | footer (const std::string &footer) |
| template<typename ValueTypeT> | |
| CLI::Option * | setDefaultValue (CLI::Option *option, const ValueTypeT &value, bool clear=true) const |
| CLI::Option * | setConfigurable (CLI::Option *option, bool configurable) const |
Private Attributes | |
| CLI::Option * | retryOpt = nullptr |
| CLI::Option * | retryOnFatalOpt = nullptr |
| CLI::Option * | retryTriesOpt = nullptr |
| CLI::Option * | retryTimeoutOpt = nullptr |
| CLI::Option * | retryBaseOpt = nullptr |
| CLI::Option * | retryLimitOpt = nullptr |
| CLI::Option * | retryJitterOpt = nullptr |
| std::map< int, std::map< int, net::phy::PhysicalSocketOption > > | socketOptionsMapMap |
Static Private Attributes | |
| static const std::string | retry = "RETRY" |
| static const std::string | retryOnFatal = "RETRY_ON_FATAL" |
| static float | retryTimeout = RETRY_TIMEOUT |
| static uint16_t | retryTries = RETRY_TRIES |
| static double | retryBase = RETRY_BASE |
| static float | retryJitter = RETRY_JITTER |
| static float | retryLimit = RETRY_LIMIT |
Additional Inherited Members | |
| Static Public Member Functions inherited from utils::SubCommand | |
| static CLI::App * | getHelpTriggerApp () |
| static CLI::App * | getShowConfigTriggerApp () |
| static CLI::App * | getCommandlineTriggerApp () |
| Static Protected Attributes inherited from utils::SubCommand | |
| static std::map< std::string, std::string > | aliases |
| static CLI::App * | helpTriggerApp = nullptr |
| static CLI::App * | showConfigTriggerApp = nullptr |
| static CLI::App * | commandlineTriggerApp = nullptr |
Definition at line 63 of file ConfigPhysicalSocket.h.
|
protected |
Referenced by net::config::ConfigPhysicalSocketClient::ConfigPhysicalSocketClient(), and net::config::ConfigPhysicalSocketServer::ConfigPhysicalSocketServer().
|
overrideprotected |
Definition at line 58 of file ConfigPhysicalSocket.cpp.
| net::config::ConfigPhysicalSocket::ConfigPhysicalSocket | ( | ConfigInstance * | instance, |
| ConcretConfigPhysicalSocket * | section ) |
Definition at line 57 of file ConfigPhysicalSocket.hpp.
References utils::SubCommand::addFlag(), utils::SubCommand::addOption(), retry, retryBase, retryBaseOpt, retryJitter, retryJitterOpt, retryLimit, retryLimitOpt, retryOnFatal, retryOnFatalOpt, retryOpt, retryTimeout, retryTimeoutOpt, retryTries, and retryTriesOpt.
|
protected |
Definition at line 65 of file ConfigPhysicalSocket.cpp.
References utils::SubCommand::addFlagFunction(), addSocketOption(), utils::SubCommand::getOption(), and removeSocketOption().
Referenced by net::in6::stream::config::ConfigSocketClient::ConfigSocketClient(), net::in::stream::config::ConfigSocketClient::ConfigSocketClient(), net::in6::stream::config::ConfigSocketServer::ConfigSocketServer(), and net::in::stream::config::ConfigSocketServer::ConfigSocketServer().
| ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::addSocketOption | ( | int | optLevel, |
| int | optName, | ||
| const std::string & | optValue ) |
Definition at line 102 of file ConfigPhysicalSocket.cpp.
References net::phy::PhysicalSocketOption::PhysicalSocketOption(), and socketOptionsMapMap.
| ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::addSocketOption | ( | int | optLevel, |
| int | optName, | ||
| const std::vector< char > & | optValue ) |
Definition at line 108 of file ConfigPhysicalSocket.cpp.
References net::phy::PhysicalSocketOption::PhysicalSocketOption(), and socketOptionsMapMap.
| ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::addSocketOption | ( | int | optLevel, |
| int | optName, | ||
| int | optValue ) |
Definition at line 96 of file ConfigPhysicalSocket.cpp.
References net::phy::PhysicalSocketOption::PhysicalSocketOption(), and socketOptionsMapMap.
Referenced by addSocketOption(), net::in6::stream::config::ConfigSocketClient::setDisableNagleAlgorithm(), net::in6::stream::config::ConfigSocketServer::setDisableNagleAlgorithm(), net::in::stream::config::ConfigSocketClient::setDisableNagleAlgorithm(), net::in::stream::config::ConfigSocketServer::setDisableNagleAlgorithm(), net::in6::stream::config::ConfigSocketServer::setIPv6Only(), net::in6::stream::config::ConfigSocketServer::setReuseAddress(), net::in::stream::config::ConfigSocketServer::setReuseAddress(), net::in6::stream::config::ConfigSocketServer::setReusePort(), and net::in::stream::config::ConfigSocketServer::setReusePort().
| bool net::config::ConfigPhysicalSocket::getRetry | ( | ) | const |
Definition at line 145 of file ConfigPhysicalSocket.cpp.
References retryOpt.
| double net::config::ConfigPhysicalSocket::getRetryBase | ( | ) | const |
Definition at line 185 of file ConfigPhysicalSocket.cpp.
References retryBaseOpt.
| double net::config::ConfigPhysicalSocket::getRetryJitter | ( | ) | const |
Definition at line 205 of file ConfigPhysicalSocket.cpp.
References retryJitterOpt.
| unsigned int net::config::ConfigPhysicalSocket::getRetryLimit | ( | ) | const |
Definition at line 195 of file ConfigPhysicalSocket.cpp.
References retryLimitOpt.
| bool net::config::ConfigPhysicalSocket::getRetryOnFatal | ( | ) | const |
Definition at line 155 of file ConfigPhysicalSocket.cpp.
References retryOnFatalOpt.
| double net::config::ConfigPhysicalSocket::getRetryTimeout | ( | ) | const |
Definition at line 165 of file ConfigPhysicalSocket.cpp.
References retryTimeoutOpt.
| unsigned int net::config::ConfigPhysicalSocket::getRetryTries | ( | ) | const |
Definition at line 175 of file ConfigPhysicalSocket.cpp.
References retryTriesOpt.
| const std::map< int, std::map< int, net::phy::PhysicalSocketOption > > & net::config::ConfigPhysicalSocket::getSocketOptions | ( | ) | const |
Definition at line 61 of file ConfigPhysicalSocket.cpp.
References socketOptionsMapMap.
| ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::removeSocketOption | ( | int | optLevel, |
| int | optName ) |
Definition at line 114 of file ConfigPhysicalSocket.cpp.
References socketOptionsMapMap.
Referenced by addSocketOption().
| ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::setRetry | ( | bool | retry = true | ) |
Definition at line 123 of file ConfigPhysicalSocket.cpp.
References retryBaseOpt, retryJitterOpt, retryLimitOpt, retryOnFatalOpt, retryOpt, retryTimeoutOpt, retryTriesOpt, and utils::SubCommand::setDefaultValue().
| ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::setRetryBase | ( | double | base | ) |
Definition at line 179 of file ConfigPhysicalSocket.cpp.
References retryBaseOpt, and utils::SubCommand::setDefaultValue().
| ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::setRetryJitter | ( | double | percent | ) |
Definition at line 199 of file ConfigPhysicalSocket.cpp.
References retryJitterOpt, and utils::SubCommand::setDefaultValue().
| ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::setRetryLimit | ( | unsigned int | limit | ) |
Definition at line 189 of file ConfigPhysicalSocket.cpp.
References retryLimitOpt, and utils::SubCommand::setDefaultValue().
| ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::setRetryOnFatal | ( | bool | retry = true | ) |
Definition at line 149 of file ConfigPhysicalSocket.cpp.
References retryOnFatalOpt, and utils::SubCommand::setDefaultValue().
| ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::setRetryTimeout | ( | double | sec | ) |
Definition at line 159 of file ConfigPhysicalSocket.cpp.
References retryTimeoutOpt, and utils::SubCommand::setDefaultValue().
| ConfigPhysicalSocket & net::config::ConfigPhysicalSocket::setRetryTries | ( | unsigned int | tries = 0 | ) |
Definition at line 169 of file ConfigPhysicalSocket.cpp.
References retryTriesOpt, and utils::SubCommand::setDefaultValue().
|
staticconstexpr |
Definition at line 66 of file ConfigPhysicalSocket.h.
|
staticconstexpr |
Definition at line 65 of file ConfigPhysicalSocket.h.
|
staticprivate |
Definition at line 114 of file ConfigPhysicalSocket.h.
Referenced by ConfigPhysicalSocket().
|
staticprivate |
Definition at line 118 of file ConfigPhysicalSocket.h.
Referenced by ConfigPhysicalSocket().
|
private |
Definition at line 126 of file ConfigPhysicalSocket.h.
Referenced by ConfigPhysicalSocket(), getRetryBase(), setRetry(), and setRetryBase().
|
staticprivate |
Definition at line 119 of file ConfigPhysicalSocket.h.
Referenced by ConfigPhysicalSocket().
|
private |
Definition at line 128 of file ConfigPhysicalSocket.h.
Referenced by ConfigPhysicalSocket(), getRetryJitter(), setRetry(), and setRetryJitter().
|
staticprivate |
Definition at line 120 of file ConfigPhysicalSocket.h.
Referenced by ConfigPhysicalSocket().
|
private |
Definition at line 127 of file ConfigPhysicalSocket.h.
Referenced by ConfigPhysicalSocket(), getRetryLimit(), setRetry(), and setRetryLimit().
|
staticprivate |
Definition at line 115 of file ConfigPhysicalSocket.h.
Referenced by ConfigPhysicalSocket().
|
private |
Definition at line 123 of file ConfigPhysicalSocket.h.
Referenced by ConfigPhysicalSocket(), getRetryOnFatal(), setRetry(), and setRetryOnFatal().
|
private |
Definition at line 122 of file ConfigPhysicalSocket.h.
Referenced by ConfigPhysicalSocket(), getRetry(), and setRetry().
|
staticprivate |
Definition at line 116 of file ConfigPhysicalSocket.h.
Referenced by ConfigPhysicalSocket().
|
private |
Definition at line 125 of file ConfigPhysicalSocket.h.
Referenced by ConfigPhysicalSocket(), getRetryTimeout(), setRetry(), and setRetryTimeout().
|
staticprivate |
Definition at line 117 of file ConfigPhysicalSocket.h.
Referenced by ConfigPhysicalSocket().
|
private |
Definition at line 124 of file ConfigPhysicalSocket.h.
Referenced by ConfigPhysicalSocket(), getRetryTries(), setRetry(), and setRetryTries().
|
private |
Definition at line 130 of file ConfigPhysicalSocket.h.
Referenced by addSocketOption(), addSocketOption(), addSocketOption(), getSocketOptions(), and removeSocketOption().