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
42#include "net/config/stream/ConfigSocketServer.h"
44#ifndef DOXYGEN_SHOULD_SKIP_THIS
48namespace net::config::
stream {
50 template <
template <
template <
typename SocketAddress>
typename ConfigAddressType>
typename ConfigAddressLocal,
51 template <
template <
typename SocketAddress>
typename ConfigAddressType>
typename ConfigAddressRemote>
53 : ConfigAddressLocal<net::config::
ConfigAddressLocal>(instance,
"local",
"Local side of connection")
54 , ConfigAddressRemote<net::config::
ConfigAddressReverse>(instance,
"remote",
"Remote side of connection")
ConfigPhysicalSocket & addSocketOption(int optLevel, int optName, int optValue)
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)
ConfigSocketServer(net::config::ConfigInstance *instance)
ConfigAddress & setPortRequired(bool required=true)
ConfigAddress & setAiSockType(int aiSocktype)
ConfigAddress & setAiProtocol(int aiProtocol)
~ConfigSocketServer() override
CLI::Option * disableNagleAlgorithmOpt
bool getReusePort() const
ConfigSocketServer & setReusePort(bool reusePort=true)
bool getReuseAddress() const
bool getDisableNagleAlgorithm() const
ConfigSocketServer & setReuseAddress(bool reuseAddress=true)
ConfigSocketServer(net::config::ConfigInstance *instance)
CLI::Option * reusePortOpt
ConfigSocketServer & setDisableNagleAlgorithm(bool disableNagleAlgorithm=true)
CLI::Option * reuseAddressOpt