#include <ConfigPhysicalSocketServer.h>
Public Member Functions | |
| ConfigPhysicalSocketServer * | setBacklog (int newBacklog) |
| int | getBacklog () const |
| ConfigPhysicalSocketServer * | setAcceptsPerTick (int acceptsPerTickSet) |
| int | getAcceptsPerTick () const |
| ConfigPhysicalSocketServer * | setAcceptTimeout (const utils::Timeval &acceptTimeout) |
| utils::Timeval | getAcceptTimeout () const |
| Public Member Functions inherited from net::config::ConfigPhysicalSocket | |
| 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 |
| 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 () const |
| 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) |
| bool | getRequired () const |
| 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 |
| void | addSubCommandApp (std::shared_ptr< utils::AppWithPtr > subCommand) |
| 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, const 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, const 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) const |
| 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 |
Protected Member Functions | |
| ConfigPhysicalSocketServer (ConfigInstance *instance) | |
| ~ConfigPhysicalSocketServer () override | |
| Protected Member Functions inherited from net::config::ConfigPhysicalSocket | |
| 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=false) | |
| template<typename ConcretSubCommand> | |
| SubCommand (SubCommand *parent, ConcretSubCommand *concretSubCommand, const std::string &group, bool final=false) | |
| void | parse (int argc, char *argv[]) const |
| SubCommand * | description (const std::string &description) |
| SubCommand * | footer (const std::string &footer) |
| void | removeSubCommand () |
| 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 Types | |
| using | Super = ConfigPhysicalSocket |
Private Attributes | |
| CLI::Option * | backlogOpt = nullptr |
| CLI::Option * | acceptsPerTickOpt = nullptr |
| CLI::Option * | acceptTimeoutOpt = nullptr |
Additional Inherited Members | |
| Static Public Attributes inherited from net::config::ConfigPhysicalSocket | |
| static constexpr std::string_view | NAME {"socket"} |
| static constexpr std::string_view | DESCRIPTION {"Configuration of socket behavior"} |
| Static Protected Member Functions inherited from utils::SubCommand | |
| static CLI::App * | getHelpTriggerApp () |
| static CLI::App * | getShowConfigTriggerApp () |
| static CLI::App * | getCommandlineTriggerApp () |
| Protected Attributes inherited from utils::SubCommand | |
| CLI::Option * | helpOpt = nullptr |
| Static Protected Attributes inherited from utils::SubCommand | |
| static std::shared_ptr< CLI::Formatter > | sectionFormatter = makeSectionFormatter() |
| 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 60 of file ConfigPhysicalSocketServer.h.
|
private |
Definition at line 62 of file ConfigPhysicalSocketServer.h.
|
explicitprotected |
Definition at line 54 of file ConfigPhysicalSocketServer.cpp.
References acceptsPerTickOpt, acceptTimeoutOpt, backlogOpt, and net::config::ConfigPhysicalSocket::ConfigPhysicalSocket().
|
overrideprotected |
Definition at line 78 of file ConfigPhysicalSocketServer.cpp.
| int net::config::ConfigPhysicalSocketServer::getAcceptsPerTick | ( | ) | const |
Definition at line 91 of file ConfigPhysicalSocketServer.cpp.
References acceptsPerTickOpt.
| utils::Timeval net::config::ConfigPhysicalSocketServer::getAcceptTimeout | ( | ) | const |
Definition at line 107 of file ConfigPhysicalSocketServer.cpp.
References acceptTimeoutOpt.
| int net::config::ConfigPhysicalSocketServer::getBacklog | ( | ) | const |
Definition at line 81 of file ConfigPhysicalSocketServer.cpp.
References backlogOpt.
| ConfigPhysicalSocketServer * net::config::ConfigPhysicalSocketServer::setAcceptsPerTick | ( | int | acceptsPerTickSet | ) |
Definition at line 95 of file ConfigPhysicalSocketServer.cpp.
References acceptsPerTickOpt, and utils::SubCommand::setDefaultValue().
| ConfigPhysicalSocketServer * net::config::ConfigPhysicalSocketServer::setAcceptTimeout | ( | const utils::Timeval & | acceptTimeout | ) |
Definition at line 101 of file ConfigPhysicalSocketServer.cpp.
References acceptTimeoutOpt, and utils::SubCommand::setDefaultValue().
| ConfigPhysicalSocketServer * net::config::ConfigPhysicalSocketServer::setBacklog | ( | int | newBacklog | ) |
Definition at line 85 of file ConfigPhysicalSocketServer.cpp.
References backlogOpt, and utils::SubCommand::setDefaultValue().
|
private |
Definition at line 81 of file ConfigPhysicalSocketServer.h.
Referenced by ConfigPhysicalSocketServer(), getAcceptsPerTick(), and setAcceptsPerTick().
|
private |
Definition at line 82 of file ConfigPhysicalSocketServer.h.
Referenced by ConfigPhysicalSocketServer(), getAcceptTimeout(), and setAcceptTimeout().
|
private |
Definition at line 80 of file ConfigPhysicalSocketServer.h.
Referenced by ConfigPhysicalSocketServer(), getBacklog(), and setBacklog().