SNode.C
Loading...
Searching...
No Matches
net::config::stream::ConfigSocketServer< ConfigAddressLocalT, ConfigAddressRemoteT > Class Template Reference

#include <ConfigSocketServer.h>

Inheritance diagram for net::config::stream::ConfigSocketServer< ConfigAddressLocalT, ConfigAddressRemoteT >:
Collaboration diagram for net::config::stream::ConfigSocketServer< ConfigAddressLocalT, ConfigAddressRemoteT >:

Public Types

using Local = ConfigAddressLocalT<net::config::ConfigAddressLocal>
using Remote = ConfigAddressRemoteT<net::config::ConfigAddressReverse>
Public Types inherited from net::config::ConfigConnection
using Connection = ConfigConnection
Public Types inherited from net::config::ConfigPhysicalSocketServer
using Socket = ConfigPhysicalSocketServer

Protected Member Functions

 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
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::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)

Additional Inherited Members

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::ConfigPhysicalSocketServer
ConfigPhysicalSocketServersetBacklog (int newBacklog)
int getBacklog () const
ConfigPhysicalSocketServersetAcceptsPerTick (int acceptsPerTickSet)
int getAcceptsPerTick () const
ConfigPhysicalSocketServersetAcceptTimeout (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 ()
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
Protected Attributes inherited from net::config::ConfigSection
CLI::App * section = nullptr

Detailed Description

template<template< template< typename SocketAddress > typename ConfigAddressTypeT > typename ConfigAddressLocalT, template< template< typename SocketAddress > typename ConfigAddressTypeT > typename ConfigAddressRemoteT>
class net::config::stream::ConfigSocketServer< ConfigAddressLocalT, ConfigAddressRemoteT >

Definition at line 58 of file ConfigSocketServer.h.

Member Typedef Documentation

◆ Local

template<template< template< typename SocketAddress > typename ConfigAddressTypeT > typename ConfigAddressLocalT, template< template< typename SocketAddress > typename ConfigAddressTypeT > typename ConfigAddressRemoteT>
using net::config::stream::ConfigSocketServer< ConfigAddressLocalT, ConfigAddressRemoteT >::Local = ConfigAddressLocalT<net::config::ConfigAddressLocal>

Definition at line 64 of file ConfigSocketServer.h.

◆ Remote

template<template< template< typename SocketAddress > typename ConfigAddressTypeT > typename ConfigAddressLocalT, template< template< typename SocketAddress > typename ConfigAddressTypeT > typename ConfigAddressRemoteT>
using net::config::stream::ConfigSocketServer< ConfigAddressLocalT, ConfigAddressRemoteT >::Remote = ConfigAddressRemoteT<net::config::ConfigAddressReverse>

Definition at line 65 of file ConfigSocketServer.h.

Constructor & Destructor Documentation

◆ ConfigSocketServer()

template<template< template< typename SocketAddress > typename ConfigAddressType > typename ConfigAddressLocal, template< template< typename SocketAddress > typename ConfigAddressType > typename ConfigAddressRemote>
net::config::stream::ConfigSocketServer< ConfigAddressLocal, ConfigAddressRemote >::ConfigSocketServer ( net::config::ConfigInstance * instance)
explicitprotected

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