2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
44#ifndef DOXYGEN_SHOULD_SKIP_THIS
46#include "log/Logger.h"
68 const std::string& description,
69 const std::string& typeName,
70 const std::string& defaultValue,
71 const CLI::Validator& validator) {
74 [
this, strippedName = name.substr(0, name.find(
'{')), optLevel, optName]() {
82 }
catch ([[maybe_unused]]
CLI::ConversionError& err) {
85 }
catch (
CLI::OptionNotFound& err) {
LogMessage(Level level, int verboseLevel=-1, bool withErrno=false)
ConfigPhysicalSocket * setRetry(bool retry=true)
ConfigPhysicalSocket * addSocketOption(int optLevel, int optName, const std::vector< char > &optValue)
static uint16_t retryTries
ConfigPhysicalSocket * setRetryTimeout(double sec)
ConfigPhysicalSocket * removeSocketOption(int optLevel, int optName)
ConfigPhysicalSocket * addSocketOption(int optLevel, int optName, int optValue)
ConfigPhysicalSocket * setRetryTries(unsigned int tries=0)
double getRetryTimeout() const
unsigned int getRetryTries() const
static float retryTimeout
CLI::Option * retryJitterOpt
double getRetryJitter() const
ConfigPhysicalSocket * addSocketOption(int optLevel, int optName, const std::string &optValue)
unsigned int getRetryLimit() const
CLI::Option * retryBaseOpt
std::map< int, std::map< int, net::phy::PhysicalSocketOption > > socketOptionsMapMap
bool getRetryOnFatal() const
CLI::Option * retryTriesOpt
static const std::string retry
ConfigPhysicalSocket * setRetryLimit(unsigned int limit)
double getRetryBase() const
ConfigPhysicalSocket * setRetryOnFatal(bool retry=true)
~ConfigPhysicalSocket() override
ConfigPhysicalSocket * setRetryBase(double base)
const std::map< int, std::map< int, net::phy::PhysicalSocketOption > > & getSocketOptions() const
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)
ConfigPhysicalSocket * setRetryJitter(double percent)
CLI::Option * retryOnFatalOpt
CLI::Option * retryTimeoutOpt
CLI::Option * retryLimitOpt
static const std::string retryOnFatal
PhysicalSocketOption(int optLevel, int optName, int optValue)
PhysicalSocketOption(int optLevel, int optName, const std::vector< char > &optValue)
PhysicalSocketOption(int optLevel, int optName, const std::string &optValue)
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) const
CLI::Option * setDefaultValue(CLI::Option *option, const ValueTypeT &value, bool clear=true) const
CLI::Option * getOption(const std::string &name) const