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/in6/stream/config/ConfigSocketClient.h"
44#include "net/config/stream/ConfigSocketClient.hpp"
46#ifndef DOXYGEN_SHOULD_SKIP_THIS
48#include "core/system/socket.h"
49#include "utils/PreserveErrno.h"
51#include <netinet/in.h>
52#include <netinet/tcp.h>
72 "--disable-nagle-algorithm{true}",
75 "Turn of Nagle algorithm",
78 CLI::IsMember({
"true",
"false",
"default"})
);
79 if (std::string(
XSTR(IN6_SERVER_DISABLE_NAGLE_ALGORITHM)) ==
"default") {
90 if (disableNagleAlgorithm) {
102 bool disableNagleAlgorithm =
false;
106 }
catch (
CLI::RuntimeError&) {
109 return disableNagleAlgorithm;
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)
ConfigSocketClient(net::config::ConfigInstance *instance)
ConfigAddress & setPortRequired(bool required=true)
ConfigAddress & setAiSockType(int aiSocktype)
ConfigAddress & setHostRequired(bool required=true)
ConfigAddress & setAiProtocol(int aiProtocol)
ConfigSocketClient & setDisableNagleAlgorithm(bool disableNagleAlgorithm=true)
bool getDisableNagleAlgorithm() const
~ConfigSocketClient() override
ConfigSocketClient(net::config::ConfigInstance *instance)
CLI::Option * disableNagleAlgorithmOpt
CLI::Option * setDefaultValue(CLI::Option *option, const ValueTypeT &value, bool clear=true) const