|
SNode.C
|
#include <ConfigSocketServer.h>
Protected Member Functions | |
| ConfigSocketServer (net::config::ConfigInstance *instance) | |
| ~ConfigSocketServer () override | |
Protected Member Functions inherited from net::config::stream::ConfigSocketServer< net::in6::config::ConfigAddress, net::in6::config::ConfigAddressReverse > | |
| ConfigSocketServer (net::config::ConfigInstance *instance) | |
Protected Member Functions inherited from net::config::ConfigConnection | |
| ConfigConnection (ConfigInstance *instance) | |
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 | |
| ConfigSection & | operator= (const ConfigSection &)=delete |
| ConfigSection & | operator= (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::config::ConfigPhysicalSocketServer | |
| ConfigPhysicalSocketServer (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) |
Private Attributes | |
| CLI::Option * | reuseAddressOpt = nullptr |
| CLI::Option * | reusePortOpt = nullptr |
| CLI::Option * | iPv6OnlyOpt = nullptr |
| CLI::Option * | disableNagleAlgorithmOpt = nullptr |
Additional Inherited Members | |
Public Types inherited from net::config::stream::ConfigSocketServer< net::in6::config::ConfigAddress, net::in6::config::ConfigAddressReverse > | |
| using | Local = net::in6::config::ConfigAddress< net::config::ConfigAddressLocal > |
| using | Remote = net::in6::config::ConfigAddressReverse< net::config::ConfigAddressReverse > |
Public Types inherited from net::config::ConfigConnection | |
| using | Connection = ConfigConnection |
Public Types inherited from net::config::ConfigPhysicalSocketServer | |
| using | Socket = ConfigPhysicalSocketServer |
Protected Attributes inherited from net::config::ConfigSection | |
| CLI::App * | section = nullptr |
Definition at line 62 of file ConfigSocketServer.h.
|
explicitprotected |
Definition at line 78 of file ConfigSocketServer.cpp.
References net::config::ConfigPhysicalSocket::addSocketOption(), net::config::stream::ConfigSocketServer< ConfigAddressLocalT, ConfigAddressRemoteT >::ConfigSocketServer(), disableNagleAlgorithmOpt, iPv6OnlyOpt, reuseAddressOpt, reusePortOpt, net::in6::config::ConfigAddress< ConfigAddressTypeT >::setAiProtocol(), net::in6::config::ConfigAddress< ConfigAddressTypeT >::setAiSockType(), and net::in6::config::ConfigAddress< ConfigAddressTypeT >::setPortRequired().
|
overrideprotected |
Definition at line 123 of file ConfigSocketServer.cpp.
| bool net::in6::stream::config::ConfigSocketServer::getDisableNagleAlgorithm | ( | ) | const |
Definition at line 194 of file ConfigSocketServer.cpp.
References disableNagleAlgorithmOpt.
| bool net::in6::stream::config::ConfigSocketServer::getIPv6Only | ( | ) | const |
Definition at line 176 of file ConfigSocketServer.cpp.
References iPv6OnlyOpt.
| bool net::in6::stream::config::ConfigSocketServer::getReuseAddress | ( | ) | const |
Definition at line 140 of file ConfigSocketServer.cpp.
References reuseAddressOpt.
| bool net::in6::stream::config::ConfigSocketServer::getReusePort | ( | ) | const |
Definition at line 158 of file ConfigSocketServer.cpp.
References reusePortOpt.
| ConfigSocketServer & net::in6::stream::config::ConfigSocketServer::setDisableNagleAlgorithm | ( | bool | disableNagleAlgorithm = true | ) |
Definition at line 180 of file ConfigSocketServer.cpp.
References net::config::ConfigPhysicalSocket::addSocketOption(), and disableNagleAlgorithmOpt.
| ConfigSocketServer & net::in6::stream::config::ConfigSocketServer::setIPv6Only | ( | bool | iPv6Only = true | ) |
Definition at line 162 of file ConfigSocketServer.cpp.
References net::config::ConfigPhysicalSocket::addSocketOption(), and iPv6OnlyOpt.
| ConfigSocketServer & net::in6::stream::config::ConfigSocketServer::setReuseAddress | ( | bool | reuseAddress = true | ) |
Definition at line 126 of file ConfigSocketServer.cpp.
References net::config::ConfigPhysicalSocket::addSocketOption(), and reuseAddressOpt.
| ConfigSocketServer & net::in6::stream::config::ConfigSocketServer::setReusePort | ( | bool | reusePort = true | ) |
Definition at line 144 of file ConfigSocketServer.cpp.
References net::config::ConfigPhysicalSocket::addSocketOption(), and reusePortOpt.
|
private |
Definition at line 86 of file ConfigSocketServer.h.
Referenced by ConfigSocketServer(), getDisableNagleAlgorithm(), and setDisableNagleAlgorithm().
|
private |
Definition at line 85 of file ConfigSocketServer.h.
Referenced by ConfigSocketServer(), getIPv6Only(), and setIPv6Only().
|
private |
Definition at line 83 of file ConfigSocketServer.h.
Referenced by ConfigSocketServer(), getReuseAddress(), and setReuseAddress().
|
private |
Definition at line 84 of file ConfigSocketServer.h.
Referenced by ConfigSocketServer(), getReusePort(), and setReusePort().