diff --git a/html/AcceptEventReceiver_8cpp.html b/html/AcceptEventReceiver_8cpp.html index b1269dd7de..071b9fc14e 100644 --- a/html/AcceptEventReceiver_8cpp.html +++ b/html/AcceptEventReceiver_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/AcceptEventReceiver_8cpp_source.html b/html/AcceptEventReceiver_8cpp_source.html index c69e056b64..cc8f19029a 100644 --- a/html/AcceptEventReceiver_8cpp_source.html +++ b/html/AcceptEventReceiver_8cpp_source.html @@ -129,7 +129,7 @@
30
31 AcceptEventReceiver::AcceptEventReceiver(const std::string& name, const utils::Timeval& timeout)
32 : core::DescriptorEventReceiver(
-
33 name + " accept",
+
33 name + " Accept",
34 core::EventLoop::instance().getEventMultiplexer().getDescriptorEventPublisher(core::EventMultiplexer::DISP_TYPE::RD),
35 timeout) {
36 }
@@ -151,9 +151,9 @@
52 }
53
54} // namespace core::eventreceiver
-
core::DescriptorEventReceiver
Definition DescriptorEventReceiver.h:58
-
core::DescriptorEventReceiver::DescriptorEventReceiver
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
Definition DescriptorEventReceiver.cpp:57
-
core::DescriptorEventReceiver::disable
void disable()
Definition DescriptorEventReceiver.cpp:93
+
core::DescriptorEventReceiver
Definition DescriptorEventReceiver.h:59
+
core::DescriptorEventReceiver::DescriptorEventReceiver
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
Definition DescriptorEventReceiver.cpp:54
+
core::DescriptorEventReceiver::disable
void disable()
Definition DescriptorEventReceiver.cpp:90
core::EventLoop
Definition EventLoop.h:40
core::EventLoop::getEventMultiplexer
EventMultiplexer & getEventMultiplexer()
Definition EventLoop.cpp:69
core::EventLoop::instance
static EventLoop & instance()
Definition EventLoop.cpp:59
@@ -178,7 +178,7 @@ diff --git a/html/AcceptEventReceiver_8h.html b/html/AcceptEventReceiver_8h.html index 93d8bb48aa..8c60ba337a 100644 --- a/html/AcceptEventReceiver_8h.html +++ b/html/AcceptEventReceiver_8h.html @@ -127,7 +127,7 @@ diff --git a/html/AcceptEventReceiver_8h_source.html b/html/AcceptEventReceiver_8h_source.html index 355813a68d..3dd686627e 100644 --- a/html/AcceptEventReceiver_8h_source.html +++ b/html/AcceptEventReceiver_8h_source.html @@ -147,9 +147,9 @@
48} // namespace core::eventreceiver
49
50#endif // CORE_EVENTRECEIVER_ACCEPTEVENTRECEIVER_H
-
core::DescriptorEventReceiver
Definition DescriptorEventReceiver.h:58
-
core::DescriptorEventReceiver::DescriptorEventReceiver
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
Definition DescriptorEventReceiver.cpp:57
-
core::DescriptorEventReceiver::disable
void disable()
Definition DescriptorEventReceiver.cpp:93
+
core::DescriptorEventReceiver
Definition DescriptorEventReceiver.h:59
+
core::DescriptorEventReceiver::DescriptorEventReceiver
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
Definition DescriptorEventReceiver.cpp:54
+
core::DescriptorEventReceiver::disable
void disable()
Definition DescriptorEventReceiver.cpp:90
core::EventLoop
Definition EventLoop.h:40
core::EventLoop::getEventMultiplexer
EventMultiplexer & getEventMultiplexer()
Definition EventLoop.cpp:69
core::EventLoop::instance
static EventLoop & instance()
Definition EventLoop.cpp:59
@@ -174,7 +174,7 @@ diff --git a/html/ApplicationDispatcher_8cpp.html b/html/ApplicationDispatcher_8cpp.html index c4f6876c5d..d678b25821 100644 --- a/html/ApplicationDispatcher_8cpp.html +++ b/html/ApplicationDispatcher_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/ApplicationDispatcher_8cpp_source.html b/html/ApplicationDispatcher_8cpp_source.html index 9160f66e99..98988267f7 100644 --- a/html/ApplicationDispatcher_8cpp_source.html +++ b/html/ApplicationDispatcher_8cpp_source.html @@ -190,7 +190,7 @@ diff --git a/html/ApplicationDispatcher_8h.html b/html/ApplicationDispatcher_8h.html index 3a85b0546d..ecaf5db32b 100644 --- a/html/ApplicationDispatcher_8h.html +++ b/html/ApplicationDispatcher_8h.html @@ -127,7 +127,7 @@ diff --git a/html/ApplicationDispatcher_8h_source.html b/html/ApplicationDispatcher_8h_source.html index 272aaa60d2..aae38eba63 100644 --- a/html/ApplicationDispatcher_8h_source.html +++ b/html/ApplicationDispatcher_8h_source.html @@ -182,7 +182,7 @@ diff --git a/html/AttributeInjector_8h.html b/html/AttributeInjector_8h.html index fb16405191..eea38212b4 100644 --- a/html/AttributeInjector_8h.html +++ b/html/AttributeInjector_8h.html @@ -138,7 +138,7 @@ diff --git a/html/AttributeInjector_8h_source.html b/html/AttributeInjector_8h_source.html index 119a73ab89..116ca25373 100644 --- a/html/AttributeInjector_8h_source.html +++ b/html/AttributeInjector_8h_source.html @@ -121,187 +121,188 @@
22
23#ifndef DOXYGEN_SHOULD_SKIP_THIS
24
-
25#include <functional>
-
26#include <map>
-
27#include <memory>
-
28
-
29#endif /* DOXYGEN_SHOULD_SKIP_THIS */
-
30
-
31namespace utils {
-
32
-
33 template <unsigned N>
-
34 struct fixed_string {
-
35 char buf[N + 1]{};
-
36 constexpr fixed_string(char const* s) { // cppcheck-suppress noExplicitConstructor
-
37 for (unsigned i = 0; i != N; ++i) {
-
38 buf[i] = s[i];
-
39 }
-
40 }
-
41
-
42 constexpr operator char const*() const {
-
43 return buf;
-
44 }
-
45
-
46 auto operator<=>(const fixed_string&) const = default;
-
47 };
-
48 template <unsigned N>
-
49 fixed_string(char const (&)[N]) -> fixed_string<N - 1>;
-
50
-
51 template <typename Attribute>
-
52 concept InjectableAttribute = std::copy_constructible<Attribute> and std::default_initializable<Attribute> and std::copyable<Attribute>;
-
53
-
54 template <InjectableAttribute Attribute>
-
55 class AttributeProxy {
-
56 public:
-
57 constexpr explicit AttributeProxy(const Attribute& attribute)
-
58 : attribute(attribute) { // copy constructor neccessary
-
59 }
-
60
-
61 constexpr Attribute& operator*() {
-
62 return attribute;
-
63 }
-
64
-
65 private:
-
66 Attribute attribute;
-
67 };
-
68
-
69 class SingleAttributeInjector {
-
70 public:
-
71 template <InjectableAttribute Attribute>
-
72 constexpr bool setAttribute(const Attribute& attribute, bool overwrite = false) {
-
73 bool inserted = false;
-
74
-
75 if (!this->attribute || overwrite) {
-
76 attributeType = typeid(Attribute).name();
-
77 this->attribute = std::shared_ptr<void>(new AttributeProxy<Attribute>(attribute));
-
78 inserted = true;
-
79 }
-
80
-
81 return inserted;
-
82 }
-
83
-
84 template <InjectableAttribute Attribute>
-
85 constexpr bool setAttribute(const Attribute&& attribute, bool overwrite = false) {
-
86 bool inserted = false;
-
87
-
88 if (!this->attribute || overwrite) {
-
89 attributeType = typeid(Attribute).name();
-
90 this->attribute = std::shared_ptr<void>(new AttributeProxy<Attribute>(attribute));
-
91 inserted = true;
-
92 }
-
93
-
94 return inserted;
-
95 }
-
96
-
97 template <InjectableAttribute Attribute>
-
98 constexpr bool getAttribute(const std::function<void(Attribute&)>& onFound) const {
-
99 const bool found = false;
-
100
-
101 if (attribute != nullptr && attributeType == typeid(Attribute).name()) {
-
102 onFound(**std::static_pointer_cast<AttributeProxy<Attribute>>(attribute));
-
103 }
-
104
-
105 return found;
-
106 }
-
107
-
108 template <InjectableAttribute Attribute>
-
109 constexpr void getAttribute(const std::function<void(Attribute&)>& onFound,
-
110 const std::function<void(const std::string&)>& onNotFound) const {
-
111 if (attribute != nullptr && attributeType == typeid(Attribute).name()) {
-
112 onFound(**std::static_pointer_cast<AttributeProxy<Attribute>>(attribute));
-
113 } else {
-
114 onNotFound(std::string(typeid(Attribute).name()));
-
115 }
-
116 }
-
117
-
118 private:
-
119 std::shared_ptr<void> attribute{nullptr};
-
120 std::string attributeType;
-
121 };
-
122
-
123 class MultibleAttributeInjector {
-
124 public:
-
125 template <InjectableAttribute Attribute, fixed_string key = "">
-
126 constexpr bool setAttribute(const Attribute& attribute, const std::string& subKey = "", bool overwrite = false) {
-
127 bool inserted = false;
-
128
-
129 if (attributes.find(typeid(Attribute).name() + std::string(key) + subKey) == attributes.end() || overwrite) {
-
130 attributes[typeid(Attribute).name() + std::string(key) + subKey] =
-
131 std::shared_ptr<void>(new AttributeProxy<Attribute>(attribute));
-
132 inserted = true;
-
133 }
-
134
-
135 return inserted;
-
136 }
-
137
-
138 template <InjectableAttribute Attribute, fixed_string key = "">
-
139 constexpr bool setAttribute(const Attribute&& attribute, const std::string& subKey = "", bool overwrite = false) {
-
140 bool inserted = false;
-
141
-
142 if (attributes.find(typeid(Attribute).name() + std::string(key) + subKey) == attributes.end() || overwrite) {
-
143 attributes[typeid(Attribute).name() + std::string(key) + subKey] =
-
144 std::shared_ptr<void>(new AttributeProxy<Attribute>(attribute));
-
145 inserted = true;
-
146 }
-
147
-
148 return inserted;
-
149 }
-
150
-
151 template <InjectableAttribute Attribute, fixed_string key = "">
-
152 constexpr bool delAttribute(const std::string& subKey = "") {
-
153 bool deleted = attributes.erase(typeid(Attribute).name() + std::string(key) + subKey) > 0;
-
154
-
155 return deleted;
-
156 }
-
157
-
158 template <InjectableAttribute Attribute, fixed_string key = "">
-
159 constexpr bool hasAttribute(const std::string& subKey = "") const {
-
160 bool found = attributes.find(typeid(Attribute).name() + std::string(key) + subKey) != attributes.end();
-
161
-
162 return found;
-
163 }
-
164
-
165 template <InjectableAttribute Attribute, fixed_string key = "">
-
166 bool getAttribute(const std::function<void(Attribute&)>& onFound, const std::string& subKey = "") const {
-
167 bool found = false;
-
168
-
169 std::map<std::string, std::shared_ptr<void>>::const_iterator it =
-
170 attributes.find(typeid(Attribute).name() + std::string(key) + subKey);
-
171
-
172 if (it != attributes.end()) {
-
173 found = true;
-
174
-
175 onFound(**std::static_pointer_cast<AttributeProxy<Attribute>>(it->second));
-
176 }
-
177
-
178 return found;
-
179 }
-
180
-
181 template <InjectableAttribute Attribute, fixed_string key = "">
-
182 void getAttribute(const std::function<void(Attribute&)>& onFound,
-
183 const std::function<void(const std::string&)>& onNotFound,
-
184 const std::string& subKey = "") const {
-
185 std::map<std::string, std::shared_ptr<void>>::const_iterator it =
-
186 attributes.find(typeid(Attribute).name() + std::string(key) + subKey);
-
187
-
188 if (it != attributes.end()) {
-
189 onFound(**std::static_pointer_cast<AttributeProxy<Attribute>>(it->second));
-
190 } else {
-
191 onNotFound(std::string(typeid(Attribute).name()) + std::string(key) + subKey);
-
192 }
-
193 }
-
194
-
195 void reset() {
-
196 attributes.clear();
-
197 }
-
198
-
199 private:
-
200 std::map<std::string, std::shared_ptr<void>> attributes;
-
201 };
-
202
-
203} // namespace utils
-
204
-
205#endif // ATTRIBUTEINJECTOR_H
+
25#include <algorithm>
+
26#include <functional>
+
27#include <map>
+
28#include <memory>
+
29
+
30#endif /* DOXYGEN_SHOULD_SKIP_THIS */
+
31
+
32namespace utils {
+
33
+
34 template <unsigned N>
+
35 struct fixed_string {
+
36 char buf[N + 1]{};
+
37 constexpr fixed_string(char const* s) { // cppcheck-suppress noExplicitConstructor
+
38 for (unsigned i = 0; i != N; ++i) {
+
39 buf[i] = s[i];
+
40 }
+
41 }
+
42
+
43 constexpr operator char const*() const {
+
44 return buf;
+
45 }
+
46
+
47 auto operator<=>(const fixed_string&) const = default;
+
48 };
+
49 template <unsigned N>
+
50 fixed_string(char const (&)[N]) -> fixed_string<N - 1>;
+
51
+
52 template <typename Attribute>
+
53 concept InjectableAttribute = std::copy_constructible<Attribute> and std::default_initializable<Attribute> and std::copyable<Attribute>;
+
54
+
55 template <InjectableAttribute Attribute>
+
56 class AttributeProxy {
+
57 public:
+
58 constexpr explicit AttributeProxy(const Attribute& attribute)
+
59 : attribute(attribute) { // copy constructor neccessary
+
60 }
+
61
+
62 constexpr Attribute& operator*() {
+
63 return attribute;
+
64 }
+
65
+
66 private:
+
67 Attribute attribute;
+
68 };
+
69
+
70 class SingleAttributeInjector {
+
71 public:
+
72 template <InjectableAttribute Attribute>
+
73 constexpr bool setAttribute(const Attribute& attribute, bool overwrite = false) {
+
74 bool inserted = false;
+
75
+
76 if (!this->attribute || overwrite) {
+
77 attributeType = typeid(Attribute).name();
+
78 this->attribute = std::shared_ptr<void>(new AttributeProxy<Attribute>(attribute));
+
79 inserted = true;
+
80 }
+
81
+
82 return inserted;
+
83 }
+
84
+
85 template <InjectableAttribute Attribute>
+
86 constexpr bool setAttribute(const Attribute&& attribute, bool overwrite = false) {
+
87 bool inserted = false;
+
88
+
89 if (!this->attribute || overwrite) {
+
90 attributeType = typeid(Attribute).name();
+
91 this->attribute = std::shared_ptr<void>(new AttributeProxy<Attribute>(attribute));
+
92 inserted = true;
+
93 }
+
94
+
95 return inserted;
+
96 }
+
97
+
98 template <InjectableAttribute Attribute>
+
99 constexpr bool getAttribute(const std::function<void(Attribute&)>& onFound) const {
+
100 const bool found = false;
+
101
+
102 if (attribute != nullptr && attributeType == typeid(Attribute).name()) {
+
103 onFound(**std::static_pointer_cast<AttributeProxy<Attribute>>(attribute));
+
104 }
+
105
+
106 return found;
+
107 }
+
108
+
109 template <InjectableAttribute Attribute>
+
110 constexpr void getAttribute(const std::function<void(Attribute&)>& onFound,
+
111 const std::function<void(const std::string&)>& onNotFound) const {
+
112 if (attribute != nullptr && attributeType == typeid(Attribute).name()) {
+
113 onFound(**std::static_pointer_cast<AttributeProxy<Attribute>>(attribute));
+
114 } else {
+
115 onNotFound(std::string(typeid(Attribute).name()));
+
116 }
+
117 }
+
118
+
119 private:
+
120 std::shared_ptr<void> attribute{nullptr};
+
121 std::string attributeType;
+
122 };
+
123
+
124 class MultibleAttributeInjector {
+
125 public:
+
126 template <InjectableAttribute Attribute, fixed_string key = "">
+
127 constexpr bool setAttribute(const Attribute& attribute, const std::string& subKey = "", bool overwrite = false) {
+
128 bool inserted = false;
+
129
+
130 if (attributes.find(typeid(Attribute).name() + std::string(key) + subKey) == attributes.end() || overwrite) {
+
131 attributes[typeid(Attribute).name() + std::string(key) + subKey] =
+
132 std::shared_ptr<void>(new AttributeProxy<Attribute>(attribute));
+
133 inserted = true;
+
134 }
+
135
+
136 return inserted;
+
137 }
+
138
+
139 template <InjectableAttribute Attribute, fixed_string key = "">
+
140 constexpr bool setAttribute(const Attribute&& attribute, const std::string& subKey = "", bool overwrite = false) {
+
141 bool inserted = false;
+
142
+
143 if (attributes.find(typeid(Attribute).name() + std::string(key) + subKey) == attributes.end() || overwrite) {
+
144 attributes[typeid(Attribute).name() + std::string(key) + subKey] =
+
145 std::shared_ptr<void>(new AttributeProxy<Attribute>(attribute));
+
146 inserted = true;
+
147 }
+
148
+
149 return inserted;
+
150 }
+
151
+
152 template <InjectableAttribute Attribute, fixed_string key = "">
+
153 constexpr bool delAttribute(const std::string& subKey = "") {
+
154 bool deleted = attributes.erase(typeid(Attribute).name() + std::string(key) + subKey) > 0;
+
155
+
156 return deleted;
+
157 }
+
158
+
159 template <InjectableAttribute Attribute, fixed_string key = "">
+
160 constexpr bool hasAttribute(const std::string& subKey = "") const {
+
161 bool found = attributes.find(typeid(Attribute).name() + std::string(key) + subKey) != attributes.end();
+
162
+
163 return found;
+
164 }
+
165
+
166 template <InjectableAttribute Attribute, fixed_string key = "">
+
167 bool getAttribute(const std::function<void(Attribute&)>& onFound, const std::string& subKey = "") const {
+
168 bool found = false;
+
169
+
170 std::map<std::string, std::shared_ptr<void>>::const_iterator it =
+
171 attributes.find(typeid(Attribute).name() + std::string(key) + subKey);
+
172
+
173 if (it != attributes.end()) {
+
174 found = true;
+
175
+
176 onFound(**std::static_pointer_cast<AttributeProxy<Attribute>>(it->second));
+
177 }
+
178
+
179 return found;
+
180 }
+
181
+
182 template <InjectableAttribute Attribute, fixed_string key = "">
+
183 void getAttribute(const std::function<void(Attribute&)>& onFound,
+
184 const std::function<void(const std::string&)>& onNotFound,
+
185 const std::string& subKey = "") const {
+
186 std::map<std::string, std::shared_ptr<void>>::const_iterator it =
+
187 attributes.find(typeid(Attribute).name() + std::string(key) + subKey);
+
188
+
189 if (it != attributes.end()) {
+
190 onFound(**std::static_pointer_cast<AttributeProxy<Attribute>>(it->second));
+
191 } else {
+
192 onNotFound(std::string(typeid(Attribute).name()) + std::string(key) + subKey);
+
193 }
+
194 }
+
195
+
196 void reset() {
+
197 attributes.clear();
+
198 }
+
199
+
200 private:
+
201 std::map<std::string, std::shared_ptr<void>> attributes;
+
202 };
+
203
+
204} // namespace utils
+
205
+
206#endif // ATTRIBUTEINJECTOR_H
core::EventLoop
Definition EventLoop.h:40
core::EventLoop::getTickCounter
static unsigned long getTickCounter()
Definition EventLoop.cpp:65
express::Controller
Definition Controller.h:44
@@ -359,26 +360,26 @@
express::RootRoute::dispatch
void dispatch(Controller &controller)
Definition RootRoute.cpp:75
express::Route
Definition Route.h:58
express::Route::dispatchNext
bool dispatchNext(Controller &controller, const std::string &parentMountPath)
Definition Route.cpp:74
-
utils::AttributeProxy
Definition AttributeInjector.h:55
-
utils::AttributeProxy::AttributeProxy
constexpr AttributeProxy(const Attribute &attribute)
Definition AttributeInjector.h:57
-
utils::AttributeProxy::attribute
Attribute attribute
Definition AttributeInjector.h:66
-
utils::AttributeProxy::operator*
constexpr Attribute & operator*()
Definition AttributeInjector.h:61
-
utils::MultibleAttributeInjector
Definition AttributeInjector.h:123
-
utils::MultibleAttributeInjector::setAttribute
constexpr bool setAttribute(const Attribute &&attribute, const std::string &subKey="", bool overwrite=false)
Definition AttributeInjector.h:139
-
utils::MultibleAttributeInjector::hasAttribute
constexpr bool hasAttribute(const std::string &subKey="") const
Definition AttributeInjector.h:159
-
utils::MultibleAttributeInjector::delAttribute
constexpr bool delAttribute(const std::string &subKey="")
Definition AttributeInjector.h:152
-
utils::MultibleAttributeInjector::getAttribute
bool getAttribute(const std::function< void(Attribute &)> &onFound, const std::string &subKey="") const
Definition AttributeInjector.h:166
-
utils::MultibleAttributeInjector::attributes
std::map< std::string, std::shared_ptr< void > > attributes
Definition AttributeInjector.h:200
-
utils::MultibleAttributeInjector::getAttribute
void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound, const std::string &subKey="") const
Definition AttributeInjector.h:182
-
utils::MultibleAttributeInjector::setAttribute
constexpr bool setAttribute(const Attribute &attribute, const std::string &subKey="", bool overwrite=false)
Definition AttributeInjector.h:126
-
utils::MultibleAttributeInjector::reset
void reset()
Definition AttributeInjector.h:195
-
utils::SingleAttributeInjector
Definition AttributeInjector.h:69
-
utils::SingleAttributeInjector::getAttribute
constexpr void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound) const
Definition AttributeInjector.h:109
-
utils::SingleAttributeInjector::attributeType
std::string attributeType
Definition AttributeInjector.h:120
-
utils::SingleAttributeInjector::setAttribute
constexpr bool setAttribute(const Attribute &attribute, bool overwrite=false)
Definition AttributeInjector.h:72
-
utils::SingleAttributeInjector::setAttribute
constexpr bool setAttribute(const Attribute &&attribute, bool overwrite=false)
Definition AttributeInjector.h:85
-
utils::SingleAttributeInjector::attribute
std::shared_ptr< void > attribute
Definition AttributeInjector.h:119
-
utils::SingleAttributeInjector::getAttribute
constexpr bool getAttribute(const std::function< void(Attribute &)> &onFound) const
Definition AttributeInjector.h:98
+
utils::AttributeProxy
Definition AttributeInjector.h:56
+
utils::AttributeProxy::AttributeProxy
constexpr AttributeProxy(const Attribute &attribute)
Definition AttributeInjector.h:58
+
utils::AttributeProxy::attribute
Attribute attribute
Definition AttributeInjector.h:67
+
utils::AttributeProxy::operator*
constexpr Attribute & operator*()
Definition AttributeInjector.h:62
+
utils::MultibleAttributeInjector
Definition AttributeInjector.h:124
+
utils::MultibleAttributeInjector::setAttribute
constexpr bool setAttribute(const Attribute &&attribute, const std::string &subKey="", bool overwrite=false)
Definition AttributeInjector.h:140
+
utils::MultibleAttributeInjector::hasAttribute
constexpr bool hasAttribute(const std::string &subKey="") const
Definition AttributeInjector.h:160
+
utils::MultibleAttributeInjector::delAttribute
constexpr bool delAttribute(const std::string &subKey="")
Definition AttributeInjector.h:153
+
utils::MultibleAttributeInjector::getAttribute
bool getAttribute(const std::function< void(Attribute &)> &onFound, const std::string &subKey="") const
Definition AttributeInjector.h:167
+
utils::MultibleAttributeInjector::attributes
std::map< std::string, std::shared_ptr< void > > attributes
Definition AttributeInjector.h:201
+
utils::MultibleAttributeInjector::getAttribute
void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound, const std::string &subKey="") const
Definition AttributeInjector.h:183
+
utils::MultibleAttributeInjector::setAttribute
constexpr bool setAttribute(const Attribute &attribute, const std::string &subKey="", bool overwrite=false)
Definition AttributeInjector.h:127
+
utils::MultibleAttributeInjector::reset
void reset()
Definition AttributeInjector.h:196
+
utils::SingleAttributeInjector
Definition AttributeInjector.h:70
+
utils::SingleAttributeInjector::getAttribute
constexpr void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound) const
Definition AttributeInjector.h:110
+
utils::SingleAttributeInjector::attributeType
std::string attributeType
Definition AttributeInjector.h:121
+
utils::SingleAttributeInjector::setAttribute
constexpr bool setAttribute(const Attribute &attribute, bool overwrite=false)
Definition AttributeInjector.h:73
+
utils::SingleAttributeInjector::setAttribute
constexpr bool setAttribute(const Attribute &&attribute, bool overwrite=false)
Definition AttributeInjector.h:86
+
utils::SingleAttributeInjector::attribute
std::shared_ptr< void > attribute
Definition AttributeInjector.h:120
+
utils::SingleAttributeInjector::getAttribute
constexpr bool getAttribute(const std::function< void(Attribute &)> &onFound) const
Definition AttributeInjector.h:99
web::http::CiStringMap
Definition CiStringMap.h:39
web::http::server::Request
Definition Request.h:38
web::http::server::Response
Definition Response.h:56
@@ -387,17 +388,17 @@
utils
Definition DescriptorEventPublisher.h:27
utils::fixed_string
fixed_string(char const (&)[N]) -> fixed_string< N - 1 >
web
Definition Controller.h:23
-
utils::fixed_string
Definition AttributeInjector.h:34
-
utils::fixed_string::buf
char buf[N+1]
Definition AttributeInjector.h:35
-
utils::fixed_string::fixed_string
constexpr fixed_string(char const *s)
Definition AttributeInjector.h:36
-
utils::fixed_string::operator char const *
constexpr operator char const *() const
Definition AttributeInjector.h:42
+
utils::fixed_string
Definition AttributeInjector.h:35
+
utils::fixed_string::buf
char buf[N+1]
Definition AttributeInjector.h:36
+
utils::fixed_string::fixed_string
constexpr fixed_string(char const *s)
Definition AttributeInjector.h:37
+
utils::fixed_string::operator char const *
constexpr operator char const *() const
Definition AttributeInjector.h:43
diff --git a/html/BasicAuthentication_8cpp.html b/html/BasicAuthentication_8cpp.html index 469f6c1ec3..64b2dc7978 100644 --- a/html/BasicAuthentication_8cpp.html +++ b/html/BasicAuthentication_8cpp.html @@ -122,7 +122,7 @@ diff --git a/html/BasicAuthentication_8cpp_source.html b/html/BasicAuthentication_8cpp_source.html index 928131a5c1..ea5e858abe 100644 --- a/html/BasicAuthentication_8cpp_source.html +++ b/html/BasicAuthentication_8cpp_source.html @@ -188,7 +188,7 @@ diff --git a/html/BasicAuthentication_8h.html b/html/BasicAuthentication_8h.html index de82483936..8e24242d8e 100644 --- a/html/BasicAuthentication_8h.html +++ b/html/BasicAuthentication_8h.html @@ -133,7 +133,7 @@ diff --git a/html/BasicAuthentication_8h_source.html b/html/BasicAuthentication_8h_source.html index f03da78611..cd500fdc90 100644 --- a/html/BasicAuthentication_8h_source.html +++ b/html/BasicAuthentication_8h_source.html @@ -169,7 +169,7 @@ diff --git a/html/Binary_8cpp.html b/html/Binary_8cpp.html index f7d9dcb1ff..aa6f283605 100644 --- a/html/Binary_8cpp.html +++ b/html/Binary_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/Binary_8cpp_source.html b/html/Binary_8cpp_source.html index db4cb21eee..3382078112 100644 --- a/html/Binary_8cpp_source.html +++ b/html/Binary_8cpp_source.html @@ -403,7 +403,7 @@ diff --git a/html/Binary_8h.html b/html/Binary_8h.html index e9026d61ba..4954bd7259 100644 --- a/html/Binary_8h.html +++ b/html/Binary_8h.html @@ -133,7 +133,7 @@ diff --git a/html/Binary_8h_source.html b/html/Binary_8h_source.html index a2fc8e101c..87d5ee899e 100644 --- a/html/Binary_8h_source.html +++ b/html/Binary_8h_source.html @@ -246,7 +246,7 @@ diff --git a/html/Broker_8cpp.html b/html/Broker_8cpp.html index c9122f6ea3..0806b0052e 100644 --- a/html/Broker_8cpp.html +++ b/html/Broker_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/Broker_8cpp_source.html b/html/Broker_8cpp_source.html index cc6b9c6090..3ea6f61657 100644 --- a/html/Broker_8cpp_source.html +++ b/html/Broker_8cpp_source.html @@ -369,7 +369,7 @@ diff --git a/html/Broker_8h.html b/html/Broker_8h.html index eb8cd73bae..ff661e096b 100644 --- a/html/Broker_8h.html +++ b/html/Broker_8h.html @@ -192,7 +192,7 @@

diff --git a/html/Broker_8h_source.html b/html/Broker_8h_source.html index 852a444568..f4b2477fb0 100644 --- a/html/Broker_8h_source.html +++ b/html/Broker_8h_source.html @@ -231,7 +231,7 @@ diff --git a/html/Chunked_8cpp.html b/html/Chunked_8cpp.html index 4271b7e6bb..6a134930a0 100644 --- a/html/Chunked_8cpp.html +++ b/html/Chunked_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/Chunked_8cpp_source.html b/html/Chunked_8cpp_source.html index 76ac4ae873..25aeb10ce9 100644 --- a/html/Chunked_8cpp_source.html +++ b/html/Chunked_8cpp_source.html @@ -339,7 +339,7 @@ diff --git a/html/Chunked_8h.html b/html/Chunked_8h.html index d3ca56a723..de72c4b309 100644 --- a/html/Chunked_8h.html +++ b/html/Chunked_8h.html @@ -137,7 +137,7 @@ diff --git a/html/Chunked_8h_source.html b/html/Chunked_8h_source.html index c9abaed7d4..70da2a7937 100644 --- a/html/Chunked_8h_source.html +++ b/html/Chunked_8h_source.html @@ -244,7 +244,7 @@ diff --git a/html/CiStringMap_8cpp.html b/html/CiStringMap_8cpp.html index a6e76b0cd8..b502784e61 100644 --- a/html/CiStringMap_8cpp.html +++ b/html/CiStringMap_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/CiStringMap_8cpp_source.html b/html/CiStringMap_8cpp_source.html index f07cf6622e..e8b048be8d 100644 --- a/html/CiStringMap_8cpp_source.html +++ b/html/CiStringMap_8cpp_source.html @@ -156,7 +156,7 @@ diff --git a/html/CiStringMap_8h.html b/html/CiStringMap_8h.html index e9a0202ac3..519dc9c704 100644 --- a/html/CiStringMap_8h.html +++ b/html/CiStringMap_8h.html @@ -126,7 +126,7 @@ diff --git a/html/CiStringMap_8h_source.html b/html/CiStringMap_8h_source.html index 2cf75b4d06..c47e1ff62a 100644 --- a/html/CiStringMap_8h_source.html +++ b/html/CiStringMap_8h_source.html @@ -154,7 +154,7 @@ diff --git a/html/ConfigAddressBase_8h.html b/html/ConfigAddressBase_8h.html index 473f14f7b6..d72222ee41 100644 --- a/html/ConfigAddressBase_8h.html +++ b/html/ConfigAddressBase_8h.html @@ -127,7 +127,7 @@ diff --git a/html/ConfigAddressBase_8h_source.html b/html/ConfigAddressBase_8h_source.html index b54831fe4d..e015096857 100644 --- a/html/ConfigAddressBase_8h_source.html +++ b/html/ConfigAddressBase_8h_source.html @@ -221,7 +221,7 @@ diff --git a/html/ConfigAddressBase_8hpp.html b/html/ConfigAddressBase_8hpp.html index 4c203ba665..c05e384cd0 100644 --- a/html/ConfigAddressBase_8hpp.html +++ b/html/ConfigAddressBase_8hpp.html @@ -121,7 +121,7 @@ diff --git a/html/ConfigAddressBase_8hpp_source.html b/html/ConfigAddressBase_8hpp_source.html index 270dfcf761..5b4564adb2 100644 --- a/html/ConfigAddressBase_8hpp_source.html +++ b/html/ConfigAddressBase_8hpp_source.html @@ -236,7 +236,7 @@ diff --git a/html/ConfigAddressLocal_8h.html b/html/ConfigAddressLocal_8h.html index 9c0c6fc05e..709d2f24a5 100644 --- a/html/ConfigAddressLocal_8h.html +++ b/html/ConfigAddressLocal_8h.html @@ -127,7 +127,7 @@ diff --git a/html/ConfigAddressLocal_8h_source.html b/html/ConfigAddressLocal_8h_source.html index 5846fc6420..1201797b32 100644 --- a/html/ConfigAddressLocal_8h_source.html +++ b/html/ConfigAddressLocal_8h_source.html @@ -197,7 +197,7 @@ diff --git a/html/ConfigAddressLocal_8hpp.html b/html/ConfigAddressLocal_8hpp.html index 35d01e66e9..ab84754306 100644 --- a/html/ConfigAddressLocal_8hpp.html +++ b/html/ConfigAddressLocal_8hpp.html @@ -122,7 +122,7 @@ diff --git a/html/ConfigAddressLocal_8hpp_source.html b/html/ConfigAddressLocal_8hpp_source.html index a38b4e92ca..9ce5fced3f 100644 --- a/html/ConfigAddressLocal_8hpp_source.html +++ b/html/ConfigAddressLocal_8hpp_source.html @@ -226,7 +226,7 @@ diff --git a/html/ConfigAddressRemote_8h.html b/html/ConfigAddressRemote_8h.html index 3937c4f2a9..8d65bfa2b5 100644 --- a/html/ConfigAddressRemote_8h.html +++ b/html/ConfigAddressRemote_8h.html @@ -127,7 +127,7 @@ diff --git a/html/ConfigAddressRemote_8h_source.html b/html/ConfigAddressRemote_8h_source.html index c3a17d062d..86f3f0e0d1 100644 --- a/html/ConfigAddressRemote_8h_source.html +++ b/html/ConfigAddressRemote_8h_source.html @@ -207,7 +207,7 @@ diff --git a/html/ConfigAddressRemote_8hpp.html b/html/ConfigAddressRemote_8hpp.html index 2b78f20d0f..760c724959 100644 --- a/html/ConfigAddressRemote_8hpp.html +++ b/html/ConfigAddressRemote_8hpp.html @@ -122,7 +122,7 @@ diff --git a/html/ConfigAddressRemote_8hpp_source.html b/html/ConfigAddressRemote_8hpp_source.html index 67141ab199..294bb631f1 100644 --- a/html/ConfigAddressRemote_8hpp_source.html +++ b/html/ConfigAddressRemote_8hpp_source.html @@ -226,7 +226,7 @@ diff --git a/html/ConfigAddressReverse_8h.html b/html/ConfigAddressReverse_8h.html index 8b5496e620..1cacfdf371 100644 --- a/html/ConfigAddressReverse_8h.html +++ b/html/ConfigAddressReverse_8h.html @@ -127,7 +127,7 @@ diff --git a/html/ConfigAddressReverse_8h_source.html b/html/ConfigAddressReverse_8h_source.html index e27b9a57c6..3b2c76ada1 100644 --- a/html/ConfigAddressReverse_8h_source.html +++ b/html/ConfigAddressReverse_8h_source.html @@ -203,7 +203,7 @@ diff --git a/html/ConfigAddressReverse_8hpp.html b/html/ConfigAddressReverse_8hpp.html index bbdbec54b3..415fe6f321 100644 --- a/html/ConfigAddressReverse_8hpp.html +++ b/html/ConfigAddressReverse_8hpp.html @@ -121,7 +121,7 @@ diff --git a/html/ConfigAddressReverse_8hpp_source.html b/html/ConfigAddressReverse_8hpp_source.html index 9165c85416..53b241d97d 100644 --- a/html/ConfigAddressReverse_8hpp_source.html +++ b/html/ConfigAddressReverse_8hpp_source.html @@ -221,7 +221,7 @@ diff --git a/html/ConfigAddress_8hpp.html b/html/ConfigAddress_8hpp.html index 03af34b8e1..7cef0adeee 100644 --- a/html/ConfigAddress_8hpp.html +++ b/html/ConfigAddress_8hpp.html @@ -122,7 +122,7 @@ diff --git a/html/ConfigAddress_8hpp_source.html b/html/ConfigAddress_8hpp_source.html index 2c025a2da3..b884c665a6 100644 --- a/html/ConfigAddress_8hpp_source.html +++ b/html/ConfigAddress_8hpp_source.html @@ -260,7 +260,7 @@ diff --git a/html/ConfigConnection_8cpp.html b/html/ConfigConnection_8cpp.html index 270475bd54..021f610b07 100644 --- a/html/ConfigConnection_8cpp.html +++ b/html/ConfigConnection_8cpp.html @@ -117,7 +117,7 @@ diff --git a/html/ConfigConnection_8cpp_source.html b/html/ConfigConnection_8cpp_source.html index 6d2dc3b949..908390e98d 100644 --- a/html/ConfigConnection_8cpp_source.html +++ b/html/ConfigConnection_8cpp_source.html @@ -256,7 +256,7 @@ diff --git a/html/ConfigConnection_8h.html b/html/ConfigConnection_8h.html index d0379a7338..85a9b14091 100644 --- a/html/ConfigConnection_8h.html +++ b/html/ConfigConnection_8h.html @@ -127,7 +127,7 @@ diff --git a/html/ConfigConnection_8h_source.html b/html/ConfigConnection_8h_source.html index 07e008fb17..a3c1139c92 100644 --- a/html/ConfigConnection_8h_source.html +++ b/html/ConfigConnection_8h_source.html @@ -198,7 +198,7 @@ diff --git a/html/ConfigHTTP_8cpp.html b/html/ConfigHTTP_8cpp.html new file mode 100644 index 0000000000..8bf56607af --- /dev/null +++ b/html/ConfigHTTP_8cpp.html @@ -0,0 +1,175 @@ + + + + + + + +SNode.C: web/http/client/ConfigHTTP.cpp File Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
SNode.C +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
ConfigHTTP.cpp File Reference
+
+
+
+Include dependency graph for ConfigHTTP.cpp:
+
+
+
+
+

Go to the source code of this file.

+ + + + + + + + +

+Namespaces

namespace  web
 
namespace  web::http
 
namespace  web::http::client
 
+ + + + + +

+Macros

#define XSTR(s)   STR(s)
 
#define STR(s)   #s
 
+

Macro Definition Documentation

+ +

◆ STR

+ +
+
+ + + + + + + + +
#define STR( s)   #s
+
+ +

Definition at line 31 of file ConfigHTTP.cpp.

+ +
+
+ +

◆ XSTR

+ +
+
+ + + + + + + + +
#define XSTR( s)   STR(s)
+
+ +

Definition at line 30 of file ConfigHTTP.cpp.

+ +
+
+
+
+ + + + diff --git a/html/ConfigHTTP_8cpp.js b/html/ConfigHTTP_8cpp.js new file mode 100644 index 0000000000..ab2c7a57d0 --- /dev/null +++ b/html/ConfigHTTP_8cpp.js @@ -0,0 +1,5 @@ +var ConfigHTTP_8cpp = +[ + [ "STR", "ConfigHTTP_8cpp.html#a6388870e639eee9c0a69446876f1f8cc", null ], + [ "XSTR", "ConfigHTTP_8cpp.html#a03943706e48069237cd57f2d35ca987e", null ] +]; \ No newline at end of file diff --git a/html/ConfigHTTP_8cpp__incl.map b/html/ConfigHTTP_8cpp__incl.map new file mode 100644 index 0000000000..82252f093d --- /dev/null +++ b/html/ConfigHTTP_8cpp__incl.map @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/html/ConfigHTTP_8cpp__incl.md5 b/html/ConfigHTTP_8cpp__incl.md5 new file mode 100644 index 0000000000..bbe076957f --- /dev/null +++ b/html/ConfigHTTP_8cpp__incl.md5 @@ -0,0 +1 @@ +b8d0dc9cf76f520bfeb8268cc9e529e3 \ No newline at end of file diff --git a/html/ConfigHTTP_8cpp__incl.svg b/html/ConfigHTTP_8cpp__incl.svg new file mode 100644 index 0000000000..5e5ab96afb --- /dev/null +++ b/html/ConfigHTTP_8cpp__incl.svg @@ -0,0 +1,75 @@ + + + + + + +web/http/client/ConfigHTTP.cpp + + +Node1 + + +web/http/client/ConfigHTTP.cpp + + + + + +Node2 + + +ConfigHTTP.h + + + + + +Node1->Node2 + + + + + + + + +Node3 + + +net/config/ConfigSection.hpp + + + + + +Node1->Node3 + + + + + + + + +Node4 + + +net/config/ConfigSection.h + + + + + +Node3->Node4 + + + + + + + + diff --git a/html/ConfigHTTP_8cpp_source.html b/html/ConfigHTTP_8cpp_source.html new file mode 100644 index 0000000000..dc8153e98e --- /dev/null +++ b/html/ConfigHTTP_8cpp_source.html @@ -0,0 +1,176 @@ + + + + + + + +SNode.C: web/http/client/ConfigHTTP.cpp Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
SNode.C +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
ConfigHTTP.cpp
+
+
+Go to the documentation of this file.
1/*
+
2 * snode.c - a slim toolkit for network communication
+
3 * Copyright (C) Volker Christian <me@vchrist.at>
+
4 * 2020, 2021, 2022, 2023, 2024
+
5 *
+
6 * This program is free software: you can redistribute it and/or modify
+
7 * it under the terms of the GNU Lesser General Public License as published
+
8 * by the Free Software Foundation, either version 3 of the License, or
+
9 * (at your option) any later version.
+
10 *
+
11 * This program is distributed in the hope that it will be useful,
+
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
+
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+
14 * GNU Lesser General Public License for more details.
+
15 *
+
16 * You should have received a copy of the GNU Lesser General Public License
+
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
+
18 */
+
19
+
20#include "ConfigHTTP.h"
+
21
+
22#include "net/config/ConfigSection.hpp"
+
23
+
24#ifndef DOXYGEN_SHOULD_SKIP_THIS
+
25
+
26#include <memory>
+
27
+
28#endif // DOXYGEN_SHOULD_SKIP_THIS
+
29
+
30#define XSTR(s) STR(s)
+
31#define STR(s) #s
+
32
+
33namespace web::http::client {
+
34
+
35 ConfigHTTP::ConfigHTTP(net::config::ConfigInstance& configInstance) {
+
36 pipelinedRequestsOpt = net::config::ConfigSection(&configInstance, "http", "HTTP behavior")
+ +
38 "--pipelined-requests",
+
39 "Pipelined requests",
+
40 "bool",
+ +
42 CLI::IsMember({"true", "false"}));
+
43 }
+
44
+
45 void ConfigHTTP::setPipelinedRequests(bool pipelinedRequests) {
+
46 pipelinedRequestsOpt->default_val(pipelinedRequests ? "true" : "false");
+
47 }
+
48
+ +
50 return pipelinedRequestsOpt->as<bool>();
+
51 }
+
52
+
53} // namespace web::http::client
+
#define XSTR(s)
+
#define STR(s)
+ + +
ConfigSection(ConfigInstance *instance, const std::string &name, const std::string &description)
+
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator)
+ +
void setPipelinedRequests(bool pipelinedRequests)
+
CLI::Option * pipelinedRequestsOpt
Definition ConfigHTTP.h:51
+
ConfigHTTP(net::config::ConfigInstance &configInstance)
+ + + +
+
+ + + + diff --git a/html/ConfigHTTP_8h.html b/html/ConfigHTTP_8h.html new file mode 100644 index 0000000000..25a1f40518 --- /dev/null +++ b/html/ConfigHTTP_8h.html @@ -0,0 +1,136 @@ + + + + + + + +SNode.C: web/http/client/ConfigHTTP.h File Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
SNode.C +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
ConfigHTTP.h File Reference
+
+
+
+This graph shows which files directly or indirectly include this file:
+
+
+
+
+

Go to the source code of this file.

+ + + + +

+Classes

class  web::http::client::ConfigHTTP
 
+ + + + + + + + + + + + + +

+Namespaces

namespace  net
 
namespace  net::config
 
namespace  CLI
 
namespace  web
 
namespace  web::http
 
namespace  web::http::client
 
+
+
+ + + + diff --git a/html/ConfigHTTP_8h.js b/html/ConfigHTTP_8h.js new file mode 100644 index 0000000000..05c76086d1 --- /dev/null +++ b/html/ConfigHTTP_8h.js @@ -0,0 +1,4 @@ +var ConfigHTTP_8h = +[ + [ "web::http::client::ConfigHTTP", "classweb_1_1http_1_1client_1_1ConfigHTTP.html", "classweb_1_1http_1_1client_1_1ConfigHTTP" ] +]; \ No newline at end of file diff --git a/html/ConfigHTTP_8h__dep__incl.map b/html/ConfigHTTP_8h__dep__incl.map new file mode 100644 index 0000000000..33e060f34b --- /dev/null +++ b/html/ConfigHTTP_8h__dep__incl.map @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/ConfigHTTP_8h__dep__incl.md5 b/html/ConfigHTTP_8h__dep__incl.md5 new file mode 100644 index 0000000000..53edfd0f8e --- /dev/null +++ b/html/ConfigHTTP_8h__dep__incl.md5 @@ -0,0 +1 @@ +70a79858c9669777099e197f15af007e \ No newline at end of file diff --git a/html/ConfigHTTP_8h__dep__incl.svg b/html/ConfigHTTP_8h__dep__incl.svg new file mode 100644 index 0000000000..7d32352016 --- /dev/null +++ b/html/ConfigHTTP_8h__dep__incl.svg @@ -0,0 +1,224 @@ + + + + + + +web/http/client/ConfigHTTP.h + + +Node1 + + +web/http/client/ConfigHTTP.h + + + + + +Node2 + + +web/http/client/ConfigHTTP.cpp + + + + + +Node1->Node2 + + + + + + + + +Node3 + + +web/http/client/SocketContext +Factory.h + + + + + +Node1->Node3 + + + + + + + + +Node4 + + +web/http/client/Client.h + + + + + +Node3->Node4 + + + + + + + + +Node5 + + +web/http/legacy/in +/Client.h + + + + + +Node4->Node5 + + + + + + + + +Node6 + + +web/http/legacy/in6 +/Client.h + + + + + +Node4->Node6 + + + + + + + + +Node7 + + +web/http/legacy/rc +/Client.h + + + + + +Node4->Node7 + + + + + + + + +Node8 + + +web/http/legacy/un +/Client.h + + + + + +Node4->Node8 + + + + + + + + +Node9 + + +web/http/tls/in/Client.h + + + + + +Node4->Node9 + + + + + + + + +Node10 + + +web/http/tls/in6/Client.h + + + + + +Node4->Node10 + + + + + + + + +Node11 + + +web/http/tls/rc/Client.h + + + + + +Node4->Node11 + + + + + + + + +Node12 + + +web/http/tls/un/Client.h + + + + + +Node4->Node12 + + + + + + + + diff --git a/html/ConfigHTTP_8h_source.html b/html/ConfigHTTP_8h_source.html new file mode 100644 index 0000000000..8fdcd1c9eb --- /dev/null +++ b/html/ConfigHTTP_8h_source.html @@ -0,0 +1,183 @@ + + + + + + + +SNode.C: web/http/client/ConfigHTTP.h Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
SNode.C +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
ConfigHTTP.h
+
+
+Go to the documentation of this file.
1/*
+
2 * snode.c - a slim toolkit for network communication
+
3 * Copyright (C) Volker Christian <me@vchrist.at>
+
4 * 2020, 2021, 2022, 2023, 2024
+
5 *
+
6 * This program is free software: you can redistribute it and/or modify
+
7 * it under the terms of the GNU Lesser General Public License as published
+
8 * by the Free Software Foundation, either version 3 of the License, or
+
9 * (at your option) any later version.
+
10 *
+
11 * This program is distributed in the hope that it will be useful,
+
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
+
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+
14 * GNU Lesser General Public License for more details.
+
15 *
+
16 * You should have received a copy of the GNU Lesser General Public License
+
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
+
18 */
+
19
+
20#ifndef WEB_HTTP_CLIENT_HTTPCONFIG_H
+
21#define WEB_HTTP_CLIENT_HTTPCONFIG_H
+
22
+
23namespace net::config {
+
24 class ConfigInstance;
+
25} // namespace net::config
+
26
+
27namespace CLI {
+
28 class Option;
+
29} // namespace CLI
+
30
+
31#ifndef DOXYGEN_SHOULD_SKIP_THIS
+
32
+
33#endif // DOXYGEN_SHOULD_SKIP_THIS
+
34
+
35namespace web::http::client {
+
36
+
37 class ConfigHTTP {
+
38 public:
+
39 explicit ConfigHTTP(net::config::ConfigInstance& configInstance);
+ + +
42
+
43 ConfigHTTP(ConfigHTTP&&) noexcept = default;
+ +
45
+
46 void setPipelinedRequests(bool pipelinedRequests);
+
47
+
48 bool getPipelinedRequests() const;
+
49
+
50 private:
+
51 CLI::Option* pipelinedRequestsOpt = nullptr;
+
52 };
+
53
+
54} // namespace web::http::client
+
55
+
56#endif // WEB_HTTP_CLIENT_HTTPCONFIG_H
+
#define XSTR(s)
+
#define STR(s)
+ + +
ConfigSection(ConfigInstance *instance, const std::string &name, const std::string &description)
+
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator)
+ +
void setPipelinedRequests(bool pipelinedRequests)
+
CLI::Option * pipelinedRequestsOpt
Definition ConfigHTTP.h:51
+
ConfigHTTP(ConfigHTTP &)=delete
+
ConfigHTTP(ConfigHTTP &&) noexcept=default
+
ConfigHTTP & operator=(ConfigHTTP &)=delete
+
ConfigHTTP(net::config::ConfigInstance &configInstance)
+
ConfigHTTP & operator=(ConfigHTTP &&)=delete
+ + + +
+
+ + + + diff --git a/html/ConfigInstance_8cpp.html b/html/ConfigInstance_8cpp.html index 356e26ef18..a3a83aaf07 100644 --- a/html/ConfigInstance_8cpp.html +++ b/html/ConfigInstance_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/ConfigInstance_8cpp_source.html b/html/ConfigInstance_8cpp_source.html index fe56cabdcf..70e4cc554d 100644 --- a/html/ConfigInstance_8cpp_source.html +++ b/html/ConfigInstance_8cpp_source.html @@ -237,47 +237,65 @@
138 return requiredCount > 0;
139 }
140
- -
142 return disableOpt //
-
143 ->as<bool>();
-
144 }
-
145
-
146 void ConfigInstance::setDisabled(bool disabled) {
-
147 disableOpt //
-
148 ->default_val(disabled ? "true" : "false")
-
149 ->clear();
-
150
- -
152 }
-
153
-
154} // namespace net::config
+
141 bool ConfigInstance::hasSection(const std::string& name) const {
+
142 CLI::App* sectionSc = nullptr;
+
143
+
144 try {
+
145 sectionSc = instanceSc->get_subcommand(name);
+
146 } catch (CLI::OptionNotFound&) {
+
147 sectionSc = nullptr;
+
148 }
+
149
+
150 return sectionSc != nullptr;
+
151 }
+
152
+
153 CLI::App* ConfigInstance::getSection(const std::string& name) const {
+
154 return hasSection(name) ? instanceSc->get_subcommand(name) : nullptr;
+
155 }
+
156
+ +
158 return disableOpt //
+
159 ->as<bool>();
+
160 }
+
161
+
162 void ConfigInstance::setDisabled(bool disabled) {
+
163 disableOpt //
+
164 ->default_val(disabled ? "true" : "false")
+
165 ->clear();
+
166
+ +
168 }
+
169
+
170} // namespace net::config
+
CLI::App * getSection(const std::string &name) const
- + -
void setDisabled(bool disabled=true)
+
void setDisabled(bool disabled=true)
void setInstanceName(const std::string &instanceName)
- +
ConfigInstance(const std::string &instanceName, Role role)
-
static const std::string nameAnonymous
- - - +
static const std::string nameAnonymous
+ + +
CLI::App * add_section(const std::string &name, const std::string &description)
+
bool hasSection(const std::string &name) const
const std::string & getInstanceName() const
void required(CLI::App *section, bool req=true)
- + -
static CLI::App * add_standard_flags(CLI::App *app)
Definition Config.cpp:685
-
static CLI::App * add_instance(const std::string &name, const std::string &description, const std::string &group)
Definition Config.cpp:658
-
static void disabled(CLI::App *instance, bool disabled=true)
Definition Config.cpp:804
-
static bool remove_instance(CLI::App *instance)
Definition Config.cpp:834
-
static CLI::App * add_help_flags(CLI::App *app)
Definition Config.cpp:733
-
static void required(CLI::App *instance, bool reqired=true)
Definition Config.cpp:782
-
static CLI::App * add_help_flag(CLI::App *app)
Definition Config.cpp:759
+
static CLI::App * add_standard_flags(CLI::App *app)
Definition Config.cpp:686
+
static CLI::App * add_instance(const std::string &name, const std::string &description, const std::string &group)
Definition Config.cpp:659
+
static void disabled(CLI::App *instance, bool disabled=true)
Definition Config.cpp:805
+
static bool remove_instance(CLI::App *instance)
Definition Config.cpp:835
+
static CLI::App * add_help_flags(CLI::App *app)
Definition Config.cpp:734
+
static void required(CLI::App *instance, bool reqired=true)
Definition Config.cpp:783
+
static CLI::App * add_help_flag(CLI::App *app)
Definition Config.cpp:760
@@ -287,7 +305,7 @@ diff --git a/html/ConfigInstance_8h.html b/html/ConfigInstance_8h.html index 83b6b883b1..0c43c5eb6f 100644 --- a/html/ConfigInstance_8h.html +++ b/html/ConfigInstance_8h.html @@ -121,7 +121,7 @@ diff --git a/html/ConfigInstance_8h_source.html b/html/ConfigInstance_8h_source.html index 18060c77f4..e714f313ae 100644 --- a/html/ConfigInstance_8h_source.html +++ b/html/ConfigInstance_8h_source.html @@ -160,53 +160,58 @@
61
62 bool getRequired() const;
63
-
64 private:
-
65 uint8_t requiredCount = 0;
+
64 bool hasSection(const std::string& name) const;
+
65 CLI::App* getSection(const std::string& name) const;
66
-
67 std::string instanceName;
-
68 static const std::string nameAnonymous;
+
67 private:
+
68 uint8_t requiredCount = 0;
69
- -
71
-
72 CLI::App* instanceSc = nullptr;
-
73 CLI::Option* disableOpt = nullptr;
-
74 };
-
75
-
76} // namespace net::config
-
77
-
78#endif // NET_CONFIG_CONFIGINSTANCE_H
+
70 std::string instanceName;
+
71 static const std::string nameAnonymous;
+
72
+ +
74
+
75 CLI::App* instanceSc = nullptr;
+
76 CLI::Option* disableOpt = nullptr;
+
77 };
+
78
+
79} // namespace net::config
+
80
+
81#endif // NET_CONFIG_CONFIGINSTANCE_H
+
CLI::App * getSection(const std::string &name) const
ConfigInstance(ConfigInstance &&)=delete
- + -
void setDisabled(bool disabled=true)
+
void setDisabled(bool disabled=true)
void setInstanceName(const std::string &instanceName)
- +
ConfigInstance(const std::string &instanceName, Role role)
-
static const std::string nameAnonymous
- - - +
static const std::string nameAnonymous
+ + +
ConfigInstance & operator=(const ConfigInstance &)=delete
CLI::App * add_section(const std::string &name, const std::string &description)
+
bool hasSection(const std::string &name) const
ConfigInstance(const ConfigInstance &)=delete
const std::string & getInstanceName() const
ConfigInstance & operator=(ConfigInstance &&)=delete
void required(CLI::App *section, bool req=true)
- + -
static CLI::App * add_standard_flags(CLI::App *app)
Definition Config.cpp:685
-
static CLI::App * add_instance(const std::string &name, const std::string &description, const std::string &group)
Definition Config.cpp:658
-
static void disabled(CLI::App *instance, bool disabled=true)
Definition Config.cpp:804
-
static bool remove_instance(CLI::App *instance)
Definition Config.cpp:834
-
static CLI::App * add_help_flags(CLI::App *app)
Definition Config.cpp:733
-
static void required(CLI::App *instance, bool reqired=true)
Definition Config.cpp:782
-
static CLI::App * add_help_flag(CLI::App *app)
Definition Config.cpp:759
+
static CLI::App * add_standard_flags(CLI::App *app)
Definition Config.cpp:686
+
static CLI::App * add_instance(const std::string &name, const std::string &description, const std::string &group)
Definition Config.cpp:659
+
static void disabled(CLI::App *instance, bool disabled=true)
Definition Config.cpp:805
+
static bool remove_instance(CLI::App *instance)
Definition Config.cpp:835
+
static CLI::App * add_help_flags(CLI::App *app)
Definition Config.cpp:734
+
static void required(CLI::App *instance, bool reqired=true)
Definition Config.cpp:783
+
static CLI::App * add_help_flag(CLI::App *app)
Definition Config.cpp:760
@@ -216,7 +221,7 @@ diff --git a/html/ConfigLegacy_8cpp.html b/html/ConfigLegacy_8cpp.html index 4e2a9c86db..1c3cfa5734 100644 --- a/html/ConfigLegacy_8cpp.html +++ b/html/ConfigLegacy_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/ConfigLegacy_8cpp_source.html b/html/ConfigLegacy_8cpp_source.html index e426103026..2b76a829b7 100644 --- a/html/ConfigLegacy_8cpp_source.html +++ b/html/ConfigLegacy_8cpp_source.html @@ -143,7 +143,7 @@ diff --git a/html/ConfigLegacy_8h.html b/html/ConfigLegacy_8h.html index a4ec6f87cd..d2fd087459 100644 --- a/html/ConfigLegacy_8h.html +++ b/html/ConfigLegacy_8h.html @@ -127,7 +127,7 @@ diff --git a/html/ConfigLegacy_8h_source.html b/html/ConfigLegacy_8h_source.html index 7d848673ca..108ab330bf 100644 --- a/html/ConfigLegacy_8h_source.html +++ b/html/ConfigLegacy_8h_source.html @@ -151,7 +151,7 @@ diff --git a/html/ConfigListen_8cpp.html b/html/ConfigListen_8cpp.html index 14537a8076..7f75ac6135 100644 --- a/html/ConfigListen_8cpp.html +++ b/html/ConfigListen_8cpp.html @@ -117,7 +117,7 @@ diff --git a/html/ConfigListen_8cpp_source.html b/html/ConfigListen_8cpp_source.html index 646ddb3346..05a5900b20 100644 --- a/html/ConfigListen_8cpp_source.html +++ b/html/ConfigListen_8cpp_source.html @@ -187,7 +187,7 @@ diff --git a/html/ConfigListen_8h.html b/html/ConfigListen_8h.html index bed01bbb10..e922fcd563 100644 --- a/html/ConfigListen_8h.html +++ b/html/ConfigListen_8h.html @@ -127,7 +127,7 @@ diff --git a/html/ConfigListen_8h_source.html b/html/ConfigListen_8h_source.html index 954a9707a4..d84808d1a9 100644 --- a/html/ConfigListen_8h_source.html +++ b/html/ConfigListen_8h_source.html @@ -172,7 +172,7 @@ diff --git a/html/ConfigPhysicalSocketClient_8cpp.html b/html/ConfigPhysicalSocketClient_8cpp.html index 344215679d..b7cffcfb3d 100644 --- a/html/ConfigPhysicalSocketClient_8cpp.html +++ b/html/ConfigPhysicalSocketClient_8cpp.html @@ -166,7 +166,7 @@

diff --git a/html/ConfigPhysicalSocketClient_8cpp_source.html b/html/ConfigPhysicalSocketClient_8cpp_source.html index f0332877c9..c91486a4f2 100644 --- a/html/ConfigPhysicalSocketClient_8cpp_source.html +++ b/html/ConfigPhysicalSocketClient_8cpp_source.html @@ -243,7 +243,7 @@
ConfigPhysicalSocketClient & setConnectTimeout(const utils::Timeval &connectTimeout)
ConfigPhysicalSocket(ConfigInstance *instance)
-
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator)
+
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator)
Timeval(double time) noexcept
Definition Timeval.cpp:43
@@ -255,7 +255,7 @@ diff --git a/html/ConfigPhysicalSocketClient_8h.html b/html/ConfigPhysicalSocketClient_8h.html index ab2354e6f9..06c19889b8 100644 --- a/html/ConfigPhysicalSocketClient_8h.html +++ b/html/ConfigPhysicalSocketClient_8h.html @@ -127,7 +127,7 @@ diff --git a/html/ConfigPhysicalSocketClient_8h_source.html b/html/ConfigPhysicalSocketClient_8h_source.html index 6782c841c0..1fe24303f3 100644 --- a/html/ConfigPhysicalSocketClient_8h_source.html +++ b/html/ConfigPhysicalSocketClient_8h_source.html @@ -181,7 +181,7 @@
ConfigPhysicalSocketClient & setConnectTimeout(const utils::Timeval &connectTimeout)
ConfigPhysicalSocket(ConfigInstance *instance)
-
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator)
+
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator)
Timeval(double time) noexcept
Definition Timeval.cpp:43
@@ -193,7 +193,7 @@ diff --git a/html/ConfigPhysicalSocketServer_8cpp.html b/html/ConfigPhysicalSocketServer_8cpp.html index 65a7c6347a..eb58f1bfe5 100644 --- a/html/ConfigPhysicalSocketServer_8cpp.html +++ b/html/ConfigPhysicalSocketServer_8cpp.html @@ -117,7 +117,7 @@ diff --git a/html/ConfigPhysicalSocketServer_8cpp_source.html b/html/ConfigPhysicalSocketServer_8cpp_source.html index cb39b84c29..c4bfda137e 100644 --- a/html/ConfigPhysicalSocketServer_8cpp_source.html +++ b/html/ConfigPhysicalSocketServer_8cpp_source.html @@ -187,7 +187,7 @@ diff --git a/html/ConfigPhysicalSocketServer_8h.html b/html/ConfigPhysicalSocketServer_8h.html index 495b3aa6be..3aafeca351 100644 --- a/html/ConfigPhysicalSocketServer_8h.html +++ b/html/ConfigPhysicalSocketServer_8h.html @@ -127,7 +127,7 @@ diff --git a/html/ConfigPhysicalSocketServer_8h_source.html b/html/ConfigPhysicalSocketServer_8h_source.html index 88b183026a..7a0f92ad18 100644 --- a/html/ConfigPhysicalSocketServer_8h_source.html +++ b/html/ConfigPhysicalSocketServer_8h_source.html @@ -174,7 +174,7 @@ diff --git a/html/ConfigPhysicalSocket_8cpp.html b/html/ConfigPhysicalSocket_8cpp.html index bcd28a0368..27fc5f71f9 100644 --- a/html/ConfigPhysicalSocket_8cpp.html +++ b/html/ConfigPhysicalSocket_8cpp.html @@ -166,7 +166,7 @@

diff --git a/html/ConfigPhysicalSocket_8cpp_source.html b/html/ConfigPhysicalSocket_8cpp_source.html index 6ecb5431c3..765ea394b2 100644 --- a/html/ConfigPhysicalSocket_8cpp_source.html +++ b/html/ConfigPhysicalSocket_8cpp_source.html @@ -422,7 +422,7 @@
ConfigPhysicalSocket & setRetryTries(unsigned int tries=0)
ConfigSection(ConfigInstance *instance, const std::string &name, const std::string &description)
-
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator)
+
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator)
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator)
PhysicalSocketOption(int optLevel, int optName, int optValue)
@@ -437,7 +437,7 @@ diff --git a/html/ConfigPhysicalSocket_8h.html b/html/ConfigPhysicalSocket_8h.html index 608c34d600..33a321a9d7 100644 --- a/html/ConfigPhysicalSocket_8h.html +++ b/html/ConfigPhysicalSocket_8h.html @@ -128,7 +128,7 @@ diff --git a/html/ConfigPhysicalSocket_8h_source.html b/html/ConfigPhysicalSocket_8h_source.html index f0f7d238bd..07a1df30f3 100644 --- a/html/ConfigPhysicalSocket_8h_source.html +++ b/html/ConfigPhysicalSocket_8h_source.html @@ -240,7 +240,7 @@
ConfigPhysicalSocket & setRetryTries(unsigned int tries=0)
ConfigSection(ConfigInstance *instance, const std::string &name, const std::string &description)
-
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator)
+
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator)
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator)
PhysicalSocketOption(int optLevel, int optName, int optValue)
@@ -255,7 +255,7 @@ diff --git a/html/ConfigSection_8cpp.html b/html/ConfigSection_8cpp.html index a6d91af773..2b287666db 100644 --- a/html/ConfigSection_8cpp.html +++ b/html/ConfigSection_8cpp.html @@ -117,7 +117,7 @@ diff --git a/html/ConfigSection_8cpp_source.html b/html/ConfigSection_8cpp_source.html index e17cfe7547..be823d0a13 100644 --- a/html/ConfigSection_8cpp_source.html +++ b/html/ConfigSection_8cpp_source.html @@ -148,139 +148,142 @@
49
50 ConfigSection::ConfigSection(ConfigInstance* instance, const std::string& name, const std::string& description)
51 : instance(instance) {
-
52 section = instance //
-
53 ->add_section(name, description + " for instance '" + instance->getInstanceName() + "'")
-
54 ->disabled()
-
55 ->group("Sections");
-
56 }
-
57
-
58 void ConfigSection::required(CLI::Option* opt, bool req) {
-
59 if (req != opt->get_required()) {
-
60 if (req) {
- -
62 section->needs(opt);
-
63 opt->default_str("");
-
64 } else {
- -
66 section->remove_needs(opt);
-
67 }
-
68
-
69 opt->required(req);
-
70
- -
72 }
-
73 }
-
74
-
75 bool ConfigSection::required() const {
-
76 return requiredCount > 0;
-
77 }
-
78
-
79 CLI::Option* ConfigSection::add_option(CLI::Option*& opt, const std::string& name, const std::string& description) {
-
80 if (!instance->getInstanceName().empty() && !section->get_display_name().empty()) {
-
81 section->disabled(false);
-
82 }
-
83
-
84 opt = section //
-
85 ->add_option(name, description);
-
86
-
87 if (opt->get_configurable()) {
-
88 opt->group(section->get_formatter()->get_label("Persistent Options"));
-
89 }
-
90
-
91 return opt;
-
92 }
-
93
-
94 CLI::Option*
-
95 ConfigSection::add_option(CLI::Option*& opt, const std::string& name, const std::string& description, const std::string& typeName) {
-
96 return add_option(opt, name, description) //
-
97 ->type_name(typeName);
-
98 }
-
99
-
100 CLI::Option* ConfigSection::add_option(CLI::Option*& opt,
-
101 const std::string& name,
-
102 const std::string& description,
-
103 const std::string& typeName,
-
104 const CLI::Validator& additionalValidator) {
-
105 return add_option(opt, name, description, typeName) //
-
106 ->check(additionalValidator);
-
107 }
-
108
-
109 CLI::Option*
-
110 ConfigSection::add_flag(CLI::Option*& opt, const std::string& name, const std::string& description, const std::string& typeName) {
-
111 section->disabled(false);
-
112
-
113 opt = section //
-
114 ->add_flag(name, description)
-
115 ->type_name(typeName)
-
116 ->take_last();
-
117
-
118 if (opt->get_configurable()) {
-
119 opt->group(section->get_formatter()->get_label("Persistent Options"));
-
120 }
-
121
-
122 return opt;
-
123 }
-
124
-
125 CLI::Option* ConfigSection::add_flag(CLI::Option*& opt,
-
126 const std::string& name,
-
127 const std::string& description,
-
128 const std::string& typeName,
-
129 const CLI::Validator& additionalValidator) {
-
130 return add_flag(opt, name, description, typeName) //
-
131 ->check(additionalValidator);
-
132 }
-
133
-
134 CLI::Option* ConfigSection::add_flag_function(CLI::Option*& opt,
-
135 const std::string& name,
-
136 const std::function<void(int64_t)>& callback,
-
137 const std::string& description,
-
138 const std::string& typeName,
-
139 const std::string& defaultValue) {
-
140 section->disabled(false);
-
141
-
142 opt = section //
-
143 ->add_flag_function(name, callback, description)
-
144 ->take_last()
-
145 ->default_val(defaultValue)
-
146 ->type_name(typeName);
-
147
-
148 if (opt->get_configurable()) {
-
149 opt->group(section->get_formatter()->get_label("Persistent Options"));
-
150 }
-
151
-
152 return opt;
-
153 }
-
154
-
155 CLI::Option* ConfigSection::add_flag_function(CLI::Option*& opt,
-
156 const std::string& name,
-
157 const std::function<void(int64_t)>& callback,
-
158 const std::string& description,
-
159 const std::string& typeName,
-
160 const std::string& defaultValue,
-
161 const CLI::Validator& validator) {
-
162 return add_flag_function(opt, name, callback, description, typeName, defaultValue) //
-
163 ->check(validator);
-
164 }
-
165
-
166} // namespace net::config
+
52 section = instance->hasSection(name) ? instance->getSection(name)
+
53 : instance //
+
54 ->add_section(name, description + " for instance '" + instance->getInstanceName() + "'")
+
55 ->disabled()
+
56 ->group("Sections");
+
57 }
+
58
+
59 void ConfigSection::required(CLI::Option* opt, bool req) {
+
60 if (req != opt->get_required()) {
+
61 if (req) {
+ +
63 section->needs(opt);
+
64 opt->default_str("");
+
65 } else {
+ +
67 section->remove_needs(opt);
+
68 }
+
69
+
70 opt->required(req);
+
71
+ +
73 }
+
74 }
+
75
+
76 bool ConfigSection::required() const {
+
77 return requiredCount > 0;
+
78 }
+
79
+
80 CLI::Option* ConfigSection::add_option(CLI::Option*& opt, const std::string& name, const std::string& description) {
+
81 if (!instance->getInstanceName().empty() && !section->get_display_name().empty()) {
+
82 section->disabled(false);
+
83 }
+
84
+
85 opt = section //
+
86 ->add_option(name, description);
+
87
+
88 if (opt->get_configurable()) {
+
89 opt->group(section->get_formatter()->get_label("Persistent Options"));
+
90 }
+
91
+
92 return opt;
+
93 }
+
94
+
95 CLI::Option*
+
96 ConfigSection::add_option(CLI::Option*& opt, const std::string& name, const std::string& description, const std::string& typeName) {
+
97 return add_option(opt, name, description) //
+
98 ->type_name(typeName);
+
99 }
+
100
+
101 CLI::Option* ConfigSection::add_option(CLI::Option*& opt,
+
102 const std::string& name,
+
103 const std::string& description,
+
104 const std::string& typeName,
+
105 const CLI::Validator& additionalValidator) {
+
106 return add_option(opt, name, description, typeName) //
+
107 ->check(additionalValidator);
+
108 }
+
109
+
110 CLI::Option*
+
111 ConfigSection::add_flag(CLI::Option*& opt, const std::string& name, const std::string& description, const std::string& typeName) {
+
112 section->disabled(false);
+
113
+
114 opt = section //
+
115 ->add_flag(name, description)
+
116 ->type_name(typeName)
+
117 ->take_last();
+
118
+
119 if (opt->get_configurable()) {
+
120 opt->group(section->get_formatter()->get_label("Persistent Options"));
+
121 }
+
122
+
123 return opt;
+
124 }
+
125
+
126 CLI::Option* ConfigSection::add_flag(CLI::Option*& opt,
+
127 const std::string& name,
+
128 const std::string& description,
+
129 const std::string& typeName,
+
130 const CLI::Validator& additionalValidator) {
+
131 return add_flag(opt, name, description, typeName) //
+
132 ->check(additionalValidator);
+
133 }
+
134
+
135 CLI::Option* ConfigSection::add_flag_function(CLI::Option*& opt,
+
136 const std::string& name,
+
137 const std::function<void(int64_t)>& callback,
+
138 const std::string& description,
+
139 const std::string& typeName,
+
140 const std::string& defaultValue) {
+
141 section->disabled(false);
+
142
+
143 opt = section //
+
144 ->add_flag_function(name, callback, description)
+
145 ->take_last()
+
146 ->default_val(defaultValue)
+
147 ->type_name(typeName);
+
148
+
149 if (opt->get_configurable()) {
+
150 opt->group(section->get_formatter()->get_label("Persistent Options"));
+
151 }
+
152
+
153 return opt;
+
154 }
+
155
+
156 CLI::Option* ConfigSection::add_flag_function(CLI::Option*& opt,
+
157 const std::string& name,
+
158 const std::function<void(int64_t)>& callback,
+
159 const std::string& description,
+
160 const std::string& typeName,
+
161 const std::string& defaultValue,
+
162 const CLI::Validator& validator) {
+
163 return add_flag_function(opt, name, callback, description, typeName, defaultValue) //
+
164 ->check(validator);
+
165 }
+
166
+
167} // namespace net::config
+
CLI::App * getSection(const std::string &name) const
CLI::App * add_section(const std::string &name, const std::string &description)
+
bool hasSection(const std::string &name) const
const std::string & getInstanceName() const
void required(CLI::App *section, bool req=true)
- +
ConfigSection(ConfigInstance *instance, const std::string &name, const std::string &description)
-
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue)
-
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator)
-
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator)
- - - -
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName)
-
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator)
-
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description)
-
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName)
-
void required(CLI::Option *opt, bool req=true)
+
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue)
+
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator)
+
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator)
+ + + +
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName)
+
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator)
+
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description)
+
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName)
+
void required(CLI::Option *opt, bool req=true)
@@ -289,7 +292,7 @@ diff --git a/html/ConfigSection_8h.html b/html/ConfigSection_8h.html index c0b0e89aaa..de221b03a6 100644 --- a/html/ConfigSection_8h.html +++ b/html/ConfigSection_8h.html @@ -98,7 +98,7 @@
This graph shows which files directly or indirectly include this file:
-
+

Go to the source code of this file.

@@ -121,7 +121,7 @@ diff --git a/html/ConfigSection_8h__dep__incl.map b/html/ConfigSection_8h__dep__incl.map index 2d48af74dc..b70d0756f5 100644 --- a/html/ConfigSection_8h__dep__incl.map +++ b/html/ConfigSection_8h__dep__incl.map @@ -1,468 +1,470 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/ConfigSection_8h__dep__incl.md5 b/html/ConfigSection_8h__dep__incl.md5 index 0c8a1c70f7..4b3fdd5e55 100644 --- a/html/ConfigSection_8h__dep__incl.md5 +++ b/html/ConfigSection_8h__dep__incl.md5 @@ -1 +1 @@ -2b160e5b12d1a4652debd52d711e2fde \ No newline at end of file +8e75a11cd3fda8d868286d86295f11c2 \ No newline at end of file diff --git a/html/ConfigSection_8h__dep__incl.svg b/html/ConfigSection_8h__dep__incl.svg index 2a51f53739..5f21b6f967 100644 --- a/html/ConfigSection_8h__dep__incl.svg +++ b/html/ConfigSection_8h__dep__incl.svg @@ -4,16 +4,16 @@ - + net/config/ConfigSection.h Node1 - -net/config/ConfigSection.h + +net/config/ConfigSection.h @@ -21,9 +21,9 @@ Node2 - -net/config/ConfigAddress -Base.h + +net/config/ConfigAddress +Base.h @@ -31,8 +31,8 @@ Node1->Node2 - - + + @@ -40,8 +40,8 @@ Node150 - -net/config/ConfigConnection.h + +net/config/ConfigConnection.h @@ -49,8 +49,8 @@ Node1->Node150 - - + + @@ -58,8 +58,8 @@ Node152 - -net/config/ConfigLegacy.h + +net/config/ConfigLegacy.h @@ -67,8 +67,8 @@ Node1->Node152 - - + + @@ -76,8 +76,8 @@ Node158 - -net/config/ConfigListen.h + +net/config/ConfigListen.h @@ -85,8 +85,8 @@ Node1->Node158 - - + + @@ -94,9 +94,9 @@ Node160 - -net/config/ConfigPhysical -Socket.h + +net/config/ConfigPhysical +Socket.h @@ -104,8 +104,8 @@ Node1->Node160 - - + + @@ -113,8 +113,8 @@ Node166 - -net/config/ConfigSection.cpp + +net/config/ConfigSection.cpp @@ -122,8 +122,8 @@ Node1->Node166 - - + + @@ -131,8 +131,8 @@ Node167 - -net/config/ConfigSection.hpp + +net/config/ConfigSection.hpp @@ -140,26 +140,26 @@ Node1->Node167 - - + + - - -Node171 - - -net/config/ConfigTls.h + + +Node172 + + +net/config/ConfigTls.h - - -Node1->Node171 - - - + + +Node1->Node172 + + + @@ -167,8 +167,8 @@ Node3 - -net/config/ConfigAddress.h + +net/config/ConfigAddress.h @@ -176,8 +176,8 @@ Node2->Node3 - - + + @@ -185,8 +185,8 @@ Node4 - -net/config/ConfigAddress.hpp + +net/config/ConfigAddress.hpp @@ -194,8 +194,8 @@ Node2->Node4 - - + + @@ -203,9 +203,9 @@ Node147 - -net/config/ConfigAddress -Base.hpp + +net/config/ConfigAddress +Base.hpp @@ -213,8 +213,8 @@ Node2->Node147 - - + + @@ -222,9 +222,9 @@ Node148 - -net/config/ConfigAddress -Reverse.h + +net/config/ConfigAddress +Reverse.h @@ -232,8 +232,8 @@ Node2->Node148 - - + + @@ -241,8 +241,8 @@ Node3->Node4 - - + + @@ -250,9 +250,9 @@ Node12 - -net/config/ConfigAddress -Local.h + +net/config/ConfigAddress +Local.h @@ -260,8 +260,8 @@ Node3->Node12 - - + + @@ -269,9 +269,9 @@ Node146 - -net/config/ConfigAddress -Remote.h + +net/config/ConfigAddress +Remote.h @@ -279,8 +279,8 @@ Node3->Node146 - - + + @@ -288,9 +288,9 @@ Node5 - -net/config/ConfigAddress -Local.hpp + +net/config/ConfigAddress +Local.hpp @@ -298,8 +298,8 @@ Node4->Node5 - - + + @@ -307,9 +307,9 @@ Node11 - -net/config/ConfigAddress -Remote.hpp + +net/config/ConfigAddress +Remote.hpp @@ -317,8 +317,8 @@ Node4->Node11 - - + + @@ -326,8 +326,8 @@ Node6 - -net/in/config/ConfigAddress.cpp + +net/in/config/ConfigAddress.cpp @@ -335,8 +335,8 @@ Node5->Node6 - - + + @@ -344,8 +344,8 @@ Node7 - -net/in6/config/ConfigAddress.cpp + +net/in6/config/ConfigAddress.cpp @@ -353,8 +353,8 @@ Node5->Node7 - - + + @@ -362,8 +362,8 @@ Node8 - -net/l2/config/ConfigAddress.cpp + +net/l2/config/ConfigAddress.cpp @@ -371,8 +371,8 @@ Node5->Node8 - - + + @@ -380,8 +380,8 @@ Node9 - -net/rc/config/ConfigAddress.cpp + +net/rc/config/ConfigAddress.cpp @@ -389,8 +389,8 @@ Node5->Node9 - - + + @@ -398,8 +398,8 @@ Node10 - -net/un/config/ConfigAddress.cpp + +net/un/config/ConfigAddress.cpp @@ -407,8 +407,8 @@ Node5->Node10 - - + + @@ -416,8 +416,8 @@ Node11->Node6 - - + + @@ -425,8 +425,8 @@ Node11->Node7 - - + + @@ -434,8 +434,8 @@ Node11->Node8 - - + + @@ -443,8 +443,8 @@ Node11->Node9 - - + + @@ -452,8 +452,8 @@ Node11->Node10 - - + + @@ -461,8 +461,8 @@ Node12->Node5 - - + + @@ -470,9 +470,9 @@ Node13 - -net/config/stream/Config -SocketClient.h + +net/config/stream/Config +SocketClient.h @@ -480,8 +480,8 @@ Node12->Node13 - - + + @@ -489,9 +489,9 @@ Node73 - -net/config/stream/Config -SocketServer.h + +net/config/stream/Config +SocketServer.h @@ -499,8 +499,8 @@ Node12->Node73 - - + + @@ -508,8 +508,8 @@ Node141 - -net/in/config/ConfigAddress.h + +net/in/config/ConfigAddress.h @@ -517,8 +517,8 @@ Node12->Node141 - - + + @@ -526,8 +526,8 @@ Node142 - -net/in6/config/ConfigAddress.h + +net/in6/config/ConfigAddress.h @@ -535,8 +535,8 @@ Node12->Node142 - - + + @@ -544,8 +544,8 @@ Node143 - -net/l2/config/ConfigAddress.h + +net/l2/config/ConfigAddress.h @@ -553,8 +553,8 @@ Node12->Node143 - - + + @@ -562,8 +562,8 @@ Node144 - -net/rc/config/ConfigAddress.h + +net/rc/config/ConfigAddress.h @@ -571,8 +571,8 @@ Node12->Node144 - - + + @@ -580,8 +580,8 @@ Node145 - -net/un/config/ConfigAddress.h + +net/un/config/ConfigAddress.h @@ -589,8 +589,8 @@ Node12->Node145 - - + + @@ -598,9 +598,9 @@ Node14 - -net/config/stream/Config -SocketClient.hpp + +net/config/stream/Config +SocketClient.hpp @@ -608,8 +608,8 @@ Node13->Node14 - - + + @@ -617,9 +617,9 @@ Node20 - -net/in/stream/config -/ConfigSocketClient.h + +net/in/stream/config +/ConfigSocketClient.h @@ -627,8 +627,8 @@ Node13->Node20 - - + + @@ -636,9 +636,9 @@ Node31 - -net/in6/stream/config -/ConfigSocketClient.h + +net/in6/stream/config +/ConfigSocketClient.h @@ -646,8 +646,8 @@ Node13->Node31 - - + + @@ -655,9 +655,9 @@ Node42 - -net/l2/stream/config -/ConfigSocketClient.h + +net/l2/stream/config +/ConfigSocketClient.h @@ -665,8 +665,8 @@ Node13->Node42 - - + + @@ -674,9 +674,9 @@ Node51 - -net/rc/stream/config -/ConfigSocketClient.h + +net/rc/stream/config +/ConfigSocketClient.h @@ -684,8 +684,8 @@ Node13->Node51 - - + + @@ -693,9 +693,9 @@ Node62 - -net/un/stream/config -/ConfigSocketClient.h + +net/un/stream/config +/ConfigSocketClient.h @@ -703,8 +703,8 @@ Node13->Node62 - - + + @@ -712,9 +712,9 @@ Node15 - -net/in/stream/config -/ConfigSocketClient.cpp + +net/in/stream/config +/ConfigSocketClient.cpp @@ -722,8 +722,8 @@ Node14->Node15 - - + + @@ -731,9 +731,9 @@ Node16 - -net/in6/stream/config -/ConfigSocketClient.cpp + +net/in6/stream/config +/ConfigSocketClient.cpp @@ -741,8 +741,8 @@ Node14->Node16 - - + + @@ -750,9 +750,9 @@ Node17 - -net/l2/stream/config -/ConfigSocketClient.cpp + +net/l2/stream/config +/ConfigSocketClient.cpp @@ -760,8 +760,8 @@ Node14->Node17 - - + + @@ -769,9 +769,9 @@ Node18 - -net/rc/stream/config -/ConfigSocketClient.cpp + +net/rc/stream/config +/ConfigSocketClient.cpp @@ -779,8 +779,8 @@ Node14->Node18 - - + + @@ -788,9 +788,9 @@ Node19 - -net/un/stream/config -/ConfigSocketClient.cpp + +net/un/stream/config +/ConfigSocketClient.cpp @@ -798,8 +798,8 @@ Node14->Node19 - - + + @@ -807,8 +807,8 @@ Node20->Node15 - - + + @@ -816,9 +816,9 @@ Node21 - -net/in/stream/legacy -/config/ConfigSocketClient.h + +net/in/stream/legacy +/config/ConfigSocketClient.h @@ -826,8 +826,8 @@ Node20->Node21 - - + + @@ -835,9 +835,9 @@ Node26 - -net/in/stream/tls/config -/ConfigSocketClient.h + +net/in/stream/tls/config +/ConfigSocketClient.h @@ -845,8 +845,8 @@ Node20->Node26 - - + + @@ -854,9 +854,9 @@ Node22 - -net/in/stream/legacy -/SocketClient.h + +net/in/stream/legacy +/SocketClient.h @@ -864,8 +864,8 @@ Node21->Node22 - - + + @@ -873,9 +873,9 @@ Node25 - -net/in/stream/legacy -/config/ConfigSocketClient.cpp + +net/in/stream/legacy +/config/ConfigSocketClient.cpp @@ -883,8 +883,8 @@ Node21->Node25 - - + + @@ -892,9 +892,9 @@ Node23 - -net/in/stream/legacy -/SocketClient.cpp + +net/in/stream/legacy +/SocketClient.cpp @@ -902,8 +902,8 @@ Node22->Node23 - - + + @@ -911,9 +911,9 @@ Node24 - -web/http/legacy/in -/Client.h + +web/http/legacy/in +/Client.h @@ -921,8 +921,8 @@ Node22->Node24 - - + + @@ -930,9 +930,9 @@ Node27 - -net/in/stream/tls/Socket -Client.h + +net/in/stream/tls/Socket +Client.h @@ -940,8 +940,8 @@ Node26->Node27 - - + + @@ -949,9 +949,9 @@ Node30 - -net/in/stream/tls/config -/ConfigSocketClient.cpp + +net/in/stream/tls/config +/ConfigSocketClient.cpp @@ -959,8 +959,8 @@ Node26->Node30 - - + + @@ -968,9 +968,9 @@ Node28 - -net/in/stream/tls/Socket -Client.cpp + +net/in/stream/tls/Socket +Client.cpp @@ -978,8 +978,8 @@ Node27->Node28 - - + + @@ -987,8 +987,8 @@ Node29 - -web/http/tls/in/Client.h + +web/http/tls/in/Client.h @@ -996,8 +996,8 @@ Node27->Node29 - - + + @@ -1005,8 +1005,8 @@ Node31->Node16 - - + + @@ -1014,9 +1014,9 @@ Node32 - -net/in6/stream/legacy -/config/ConfigSocketClient.h + +net/in6/stream/legacy +/config/ConfigSocketClient.h @@ -1024,8 +1024,8 @@ Node31->Node32 - - + + @@ -1033,9 +1033,9 @@ Node37 - -net/in6/stream/tls -/config/ConfigSocketClient.h + +net/in6/stream/tls +/config/ConfigSocketClient.h @@ -1043,8 +1043,8 @@ Node31->Node37 - - + + @@ -1052,9 +1052,9 @@ Node33 - -net/in6/stream/legacy -/SocketClient.h + +net/in6/stream/legacy +/SocketClient.h @@ -1062,8 +1062,8 @@ Node32->Node33 - - + + @@ -1071,9 +1071,9 @@ Node36 - -net/in6/stream/legacy -/config/ConfigSocketClient.cpp + +net/in6/stream/legacy +/config/ConfigSocketClient.cpp @@ -1081,8 +1081,8 @@ Node32->Node36 - - + + @@ -1090,9 +1090,9 @@ Node34 - -net/in6/stream/legacy -/SocketClient.cpp + +net/in6/stream/legacy +/SocketClient.cpp @@ -1100,8 +1100,8 @@ Node33->Node34 - - + + @@ -1109,9 +1109,9 @@ Node35 - -web/http/legacy/in6 -/Client.h + +web/http/legacy/in6 +/Client.h @@ -1119,8 +1119,8 @@ Node33->Node35 - - + + @@ -1128,9 +1128,9 @@ Node38 - -net/in6/stream/tls -/SocketClient.h + +net/in6/stream/tls +/SocketClient.h @@ -1138,8 +1138,8 @@ Node37->Node38 - - + + @@ -1147,9 +1147,9 @@ Node41 - -net/in6/stream/tls -/config/ConfigSocketClient.cpp + +net/in6/stream/tls +/config/ConfigSocketClient.cpp @@ -1157,8 +1157,8 @@ Node37->Node41 - - + + @@ -1166,9 +1166,9 @@ Node39 - -net/in6/stream/tls -/SocketClient.cpp + +net/in6/stream/tls +/SocketClient.cpp @@ -1176,8 +1176,8 @@ Node38->Node39 - - + + @@ -1185,8 +1185,8 @@ Node40 - -web/http/tls/in6/Client.h + +web/http/tls/in6/Client.h @@ -1194,8 +1194,8 @@ Node38->Node40 - - + + @@ -1203,8 +1203,8 @@ Node42->Node17 - - + + @@ -1212,9 +1212,9 @@ Node43 - -net/l2/stream/legacy -/config/ConfigSocketClient.h + +net/l2/stream/legacy +/config/ConfigSocketClient.h @@ -1222,8 +1222,8 @@ Node42->Node43 - - + + @@ -1231,9 +1231,9 @@ Node47 - -net/l2/stream/tls/config -/ConfigSocketClient.h + +net/l2/stream/tls/config +/ConfigSocketClient.h @@ -1241,8 +1241,8 @@ Node42->Node47 - - + + @@ -1250,9 +1250,9 @@ Node44 - -net/l2/stream/legacy -/SocketClient.h + +net/l2/stream/legacy +/SocketClient.h @@ -1260,8 +1260,8 @@ Node43->Node44 - - + + @@ -1269,9 +1269,9 @@ Node46 - -net/l2/stream/legacy -/config/ConfigSocketClient.cpp + +net/l2/stream/legacy +/config/ConfigSocketClient.cpp @@ -1279,8 +1279,8 @@ Node43->Node46 - - + + @@ -1288,9 +1288,9 @@ Node45 - -net/l2/stream/legacy -/SocketClient.cpp + +net/l2/stream/legacy +/SocketClient.cpp @@ -1298,8 +1298,8 @@ Node44->Node45 - - + + @@ -1307,9 +1307,9 @@ Node48 - -net/l2/stream/tls/Socket -Client.h + +net/l2/stream/tls/Socket +Client.h @@ -1317,8 +1317,8 @@ Node47->Node48 - - + + @@ -1326,9 +1326,9 @@ Node50 - -net/l2/stream/tls/config -/ConfigSocketClient.cpp + +net/l2/stream/tls/config +/ConfigSocketClient.cpp @@ -1336,8 +1336,8 @@ Node47->Node50 - - + + @@ -1345,9 +1345,9 @@ Node49 - -net/l2/stream/tls/Socket -Client.cpp + +net/l2/stream/tls/Socket +Client.cpp @@ -1355,8 +1355,8 @@ Node48->Node49 - - + + @@ -1364,8 +1364,8 @@ Node51->Node18 - - + + @@ -1373,9 +1373,9 @@ Node52 - -net/rc/stream/legacy -/config/ConfigSocketClient.h + +net/rc/stream/legacy +/config/ConfigSocketClient.h @@ -1383,8 +1383,8 @@ Node51->Node52 - - + + @@ -1392,9 +1392,9 @@ Node57 - -net/rc/stream/tls/config -/ConfigSocketClient.h + +net/rc/stream/tls/config +/ConfigSocketClient.h @@ -1402,8 +1402,8 @@ Node51->Node57 - - + + @@ -1411,9 +1411,9 @@ Node53 - -net/rc/stream/legacy -/SocketClient.h + +net/rc/stream/legacy +/SocketClient.h @@ -1421,8 +1421,8 @@ Node52->Node53 - - + + @@ -1430,9 +1430,9 @@ Node56 - -net/rc/stream/legacy -/config/ConfigSocketClient.cpp + +net/rc/stream/legacy +/config/ConfigSocketClient.cpp @@ -1440,8 +1440,8 @@ Node52->Node56 - - + + @@ -1449,9 +1449,9 @@ Node54 - -net/rc/stream/legacy -/SocketClient.cpp + +net/rc/stream/legacy +/SocketClient.cpp @@ -1459,8 +1459,8 @@ Node53->Node54 - - + + @@ -1468,9 +1468,9 @@ Node55 - -web/http/legacy/rc -/Client.h + +web/http/legacy/rc +/Client.h @@ -1478,8 +1478,8 @@ Node53->Node55 - - + + @@ -1487,9 +1487,9 @@ Node58 - -net/rc/stream/tls/Socket -Client.h + +net/rc/stream/tls/Socket +Client.h @@ -1497,8 +1497,8 @@ Node57->Node58 - - + + @@ -1506,9 +1506,9 @@ Node61 - -net/rc/stream/tls/config -/ConfigSocketClient.cpp + +net/rc/stream/tls/config +/ConfigSocketClient.cpp @@ -1516,8 +1516,8 @@ Node57->Node61 - - + + @@ -1525,9 +1525,9 @@ Node59 - -net/rc/stream/tls/Socket -Client.cpp + +net/rc/stream/tls/Socket +Client.cpp @@ -1535,8 +1535,8 @@ Node58->Node59 - - + + @@ -1544,8 +1544,8 @@ Node60 - -web/http/tls/rc/Client.h + +web/http/tls/rc/Client.h @@ -1553,8 +1553,8 @@ Node58->Node60 - - + + @@ -1562,8 +1562,8 @@ Node62->Node19 - - + + @@ -1571,9 +1571,9 @@ Node63 - -net/un/stream/legacy -/config/ConfigSocketClient.h + +net/un/stream/legacy +/config/ConfigSocketClient.h @@ -1581,8 +1581,8 @@ Node62->Node63 - - + + @@ -1590,9 +1590,9 @@ Node68 - -net/un/stream/tls/config -/ConfigSocketClient.h + +net/un/stream/tls/config +/ConfigSocketClient.h @@ -1600,8 +1600,8 @@ Node62->Node68 - - + + @@ -1609,9 +1609,9 @@ Node64 - -net/un/stream/legacy -/SocketClient.h + +net/un/stream/legacy +/SocketClient.h @@ -1619,8 +1619,8 @@ Node63->Node64 - - + + @@ -1628,9 +1628,9 @@ Node67 - -net/un/stream/legacy -/config/ConfigSocketClient.cpp + +net/un/stream/legacy +/config/ConfigSocketClient.cpp @@ -1638,8 +1638,8 @@ Node63->Node67 - - + + @@ -1647,9 +1647,9 @@ Node65 - -net/un/stream/legacy -/SocketClient.cpp + +net/un/stream/legacy +/SocketClient.cpp @@ -1657,8 +1657,8 @@ Node64->Node65 - - + + @@ -1666,9 +1666,9 @@ Node66 - -web/http/legacy/un -/Client.h + +web/http/legacy/un +/Client.h @@ -1676,8 +1676,8 @@ Node64->Node66 - - + + @@ -1685,9 +1685,9 @@ Node69 - -net/un/stream/tls/Socket -Client.h + +net/un/stream/tls/Socket +Client.h @@ -1695,8 +1695,8 @@ Node68->Node69 - - + + @@ -1704,9 +1704,9 @@ Node72 - -net/un/stream/tls/config -/ConfigSocketClient.cpp + +net/un/stream/tls/config +/ConfigSocketClient.cpp @@ -1714,8 +1714,8 @@ Node68->Node72 - - + + @@ -1723,9 +1723,9 @@ Node70 - -net/un/stream/tls/Socket -Client.cpp + +net/un/stream/tls/Socket +Client.cpp @@ -1733,8 +1733,8 @@ Node69->Node70 - - + + @@ -1742,8 +1742,8 @@ Node71 - -web/http/tls/un/Client.h + +web/http/tls/un/Client.h @@ -1751,8 +1751,8 @@ Node69->Node71 - - + + @@ -1760,9 +1760,9 @@ Node74 - -net/config/stream/Config -SocketServer.hpp + +net/config/stream/Config +SocketServer.hpp @@ -1770,8 +1770,8 @@ Node73->Node74 - - + + @@ -1779,9 +1779,9 @@ Node80 - -net/in/stream/config -/ConfigSocketServer.h + +net/in/stream/config +/ConfigSocketServer.h @@ -1789,8 +1789,8 @@ Node73->Node80 - - + + @@ -1798,9 +1798,9 @@ Node93 - -net/in6/stream/config -/ConfigSocketServer.h + +net/in6/stream/config +/ConfigSocketServer.h @@ -1808,8 +1808,8 @@ Node73->Node93 - - + + @@ -1817,9 +1817,9 @@ Node106 - -net/l2/stream/config -/ConfigSocketServer.h + +net/l2/stream/config +/ConfigSocketServer.h @@ -1827,8 +1827,8 @@ Node73->Node106 - - + + @@ -1836,9 +1836,9 @@ Node115 - -net/rc/stream/config -/ConfigSocketServer.h + +net/rc/stream/config +/ConfigSocketServer.h @@ -1846,8 +1846,8 @@ Node73->Node115 - - + + @@ -1855,9 +1855,9 @@ Node128 - -net/un/stream/config -/ConfigSocketServer.h + +net/un/stream/config +/ConfigSocketServer.h @@ -1865,8 +1865,8 @@ Node73->Node128 - - + + @@ -1874,9 +1874,9 @@ Node75 - -net/in/stream/config -/ConfigSocketServer.cpp + +net/in/stream/config +/ConfigSocketServer.cpp @@ -1884,8 +1884,8 @@ Node74->Node75 - - + + @@ -1893,9 +1893,9 @@ Node76 - -net/in6/stream/config -/ConfigSocketServer.cpp + +net/in6/stream/config +/ConfigSocketServer.cpp @@ -1903,8 +1903,8 @@ Node74->Node76 - - + + @@ -1912,9 +1912,9 @@ Node77 - -net/l2/stream/config -/ConfigSocketServer.cpp + +net/l2/stream/config +/ConfigSocketServer.cpp @@ -1922,8 +1922,8 @@ Node74->Node77 - - + + @@ -1931,9 +1931,9 @@ Node78 - -net/rc/stream/config -/ConfigSocketServer.cpp + +net/rc/stream/config +/ConfigSocketServer.cpp @@ -1941,8 +1941,8 @@ Node74->Node78 - - + + @@ -1950,9 +1950,9 @@ Node79 - -net/un/stream/config -/ConfigSocketServer.cpp + +net/un/stream/config +/ConfigSocketServer.cpp @@ -1960,8 +1960,8 @@ Node74->Node79 - - + + @@ -1969,8 +1969,8 @@ Node80->Node75 - - + + @@ -1978,9 +1978,9 @@ Node81 - -net/in/stream/legacy -/config/ConfigSocketServer.h + +net/in/stream/legacy +/config/ConfigSocketServer.h @@ -1988,8 +1988,8 @@ Node80->Node81 - - + + @@ -1997,9 +1997,9 @@ Node87 - -net/in/stream/tls/config -/ConfigSocketServer.h + +net/in/stream/tls/config +/ConfigSocketServer.h @@ -2007,8 +2007,8 @@ Node80->Node87 - - + + @@ -2016,9 +2016,9 @@ Node82 - -net/in/stream/legacy -/SocketServer.h + +net/in/stream/legacy +/SocketServer.h @@ -2026,8 +2026,8 @@ Node81->Node82 - - + + @@ -2035,9 +2035,9 @@ Node86 - -net/in/stream/legacy -/config/ConfigSocketServer.cpp + +net/in/stream/legacy +/config/ConfigSocketServer.cpp @@ -2045,8 +2045,8 @@ Node81->Node86 - - + + @@ -2054,9 +2054,9 @@ Node83 - -net/in/stream/legacy -/SocketServer.cpp + +net/in/stream/legacy +/SocketServer.cpp @@ -2064,8 +2064,8 @@ Node82->Node83 - - + + @@ -2073,9 +2073,9 @@ Node84 - -web/http/legacy/in -/Server.h + +web/http/legacy/in +/Server.h @@ -2083,8 +2083,8 @@ Node82->Node84 - - + + @@ -2092,8 +2092,8 @@ Node85 - -express/legacy/in/WebApp.h + +express/legacy/in/WebApp.h @@ -2101,8 +2101,8 @@ Node84->Node85 - - + + @@ -2110,9 +2110,9 @@ Node88 - -net/in/stream/tls/Socket -Server.h + +net/in/stream/tls/Socket +Server.h @@ -2120,8 +2120,8 @@ Node87->Node88 - - + + @@ -2129,9 +2129,9 @@ Node92 - -net/in/stream/tls/config -/ConfigSocketServer.cpp + +net/in/stream/tls/config +/ConfigSocketServer.cpp @@ -2139,8 +2139,8 @@ Node87->Node92 - - + + @@ -2148,9 +2148,9 @@ Node89 - -net/in/stream/tls/Socket -Server.cpp + +net/in/stream/tls/Socket +Server.cpp @@ -2158,8 +2158,8 @@ Node88->Node89 - - + + @@ -2167,8 +2167,8 @@ Node90 - -web/http/tls/in/Server.h + +web/http/tls/in/Server.h @@ -2176,8 +2176,8 @@ Node88->Node90 - - + + @@ -2185,8 +2185,8 @@ Node91 - -express/tls/in/WebApp.h + +express/tls/in/WebApp.h @@ -2194,8 +2194,8 @@ Node90->Node91 - - + + @@ -2203,8 +2203,8 @@ Node93->Node76 - - + + @@ -2212,9 +2212,9 @@ Node94 - -net/in6/stream/legacy -/config/ConfigSocketServer.h + +net/in6/stream/legacy +/config/ConfigSocketServer.h @@ -2222,8 +2222,8 @@ Node93->Node94 - - + + @@ -2231,9 +2231,9 @@ Node100 - -net/in6/stream/tls -/config/ConfigSocketServer.h + +net/in6/stream/tls +/config/ConfigSocketServer.h @@ -2241,8 +2241,8 @@ Node93->Node100 - - + + @@ -2250,9 +2250,9 @@ Node95 - -net/in6/stream/legacy -/SocketServer.h + +net/in6/stream/legacy +/SocketServer.h @@ -2260,8 +2260,8 @@ Node94->Node95 - - + + @@ -2269,9 +2269,9 @@ Node99 - -net/in6/stream/legacy -/config/ConfigSocketServer.cpp + +net/in6/stream/legacy +/config/ConfigSocketServer.cpp @@ -2279,8 +2279,8 @@ Node94->Node99 - - + + @@ -2288,9 +2288,9 @@ Node96 - -net/in6/stream/legacy -/SocketServer.cpp + +net/in6/stream/legacy +/SocketServer.cpp @@ -2298,8 +2298,8 @@ Node95->Node96 - - + + @@ -2307,9 +2307,9 @@ Node97 - -web/http/legacy/in6 -/Server.h + +web/http/legacy/in6 +/Server.h @@ -2317,8 +2317,8 @@ Node95->Node97 - - + + @@ -2326,9 +2326,9 @@ Node98 - -express/legacy/in6 -/WebApp.h + +express/legacy/in6 +/WebApp.h @@ -2336,8 +2336,8 @@ Node97->Node98 - - + + @@ -2345,9 +2345,9 @@ Node101 - -net/in6/stream/tls -/SocketServer.h + +net/in6/stream/tls +/SocketServer.h @@ -2355,8 +2355,8 @@ Node100->Node101 - - + + @@ -2364,9 +2364,9 @@ Node105 - -net/in6/stream/tls -/config/ConfigSocketServer.cpp + +net/in6/stream/tls +/config/ConfigSocketServer.cpp @@ -2374,8 +2374,8 @@ Node100->Node105 - - + + @@ -2383,9 +2383,9 @@ Node102 - -net/in6/stream/tls -/SocketServer.cpp + +net/in6/stream/tls +/SocketServer.cpp @@ -2393,8 +2393,8 @@ Node101->Node102 - - + + @@ -2402,8 +2402,8 @@ Node103 - -web/http/tls/in6/Server.h + +web/http/tls/in6/Server.h @@ -2411,8 +2411,8 @@ Node101->Node103 - - + + @@ -2420,8 +2420,8 @@ Node104 - -express/tls/in6/WebApp.h + +express/tls/in6/WebApp.h @@ -2429,8 +2429,8 @@ Node103->Node104 - - + + @@ -2438,8 +2438,8 @@ Node106->Node77 - - + + @@ -2447,9 +2447,9 @@ Node107 - -net/l2/stream/legacy -/config/ConfigSocketServer.h + +net/l2/stream/legacy +/config/ConfigSocketServer.h @@ -2457,8 +2457,8 @@ Node106->Node107 - - + + @@ -2466,9 +2466,9 @@ Node111 - -net/l2/stream/tls/config -/ConfigSocketServer.h + +net/l2/stream/tls/config +/ConfigSocketServer.h @@ -2476,8 +2476,8 @@ Node106->Node111 - - + + @@ -2485,9 +2485,9 @@ Node108 - -net/l2/stream/legacy -/SocketServer.h + +net/l2/stream/legacy +/SocketServer.h @@ -2495,8 +2495,8 @@ Node107->Node108 - - + + @@ -2504,9 +2504,9 @@ Node110 - -net/l2/stream/legacy -/config/ConfigSocketServer.cpp + +net/l2/stream/legacy +/config/ConfigSocketServer.cpp @@ -2514,8 +2514,8 @@ Node107->Node110 - - + + @@ -2523,9 +2523,9 @@ Node109 - -net/l2/stream/legacy -/SocketServer.cpp + +net/l2/stream/legacy +/SocketServer.cpp @@ -2533,8 +2533,8 @@ Node108->Node109 - - + + @@ -2542,9 +2542,9 @@ Node112 - -net/l2/stream/tls/Socket -Server.h + +net/l2/stream/tls/Socket +Server.h @@ -2552,8 +2552,8 @@ Node111->Node112 - - + + @@ -2561,9 +2561,9 @@ Node114 - -net/l2/stream/tls/config -/ConfigSocketServer.cpp + +net/l2/stream/tls/config +/ConfigSocketServer.cpp @@ -2571,8 +2571,8 @@ Node111->Node114 - - + + @@ -2580,9 +2580,9 @@ Node113 - -net/l2/stream/tls/Socket -Server.cpp + +net/l2/stream/tls/Socket +Server.cpp @@ -2590,8 +2590,8 @@ Node112->Node113 - - + + @@ -2599,8 +2599,8 @@ Node115->Node78 - - + + @@ -2608,9 +2608,9 @@ Node116 - -net/rc/stream/legacy -/config/ConfigSocketServer.h + +net/rc/stream/legacy +/config/ConfigSocketServer.h @@ -2618,8 +2618,8 @@ Node115->Node116 - - + + @@ -2627,9 +2627,9 @@ Node122 - -net/rc/stream/tls/config -/ConfigSocketServer.h + +net/rc/stream/tls/config +/ConfigSocketServer.h @@ -2637,8 +2637,8 @@ Node115->Node122 - - + + @@ -2646,9 +2646,9 @@ Node117 - -net/rc/stream/legacy -/SocketServer.h + +net/rc/stream/legacy +/SocketServer.h @@ -2656,8 +2656,8 @@ Node116->Node117 - - + + @@ -2665,9 +2665,9 @@ Node121 - -net/rc/stream/legacy -/config/ConfigSocketServer.cpp + +net/rc/stream/legacy +/config/ConfigSocketServer.cpp @@ -2675,8 +2675,8 @@ Node116->Node121 - - + + @@ -2684,9 +2684,9 @@ Node118 - -net/rc/stream/legacy -/SocketServer.cpp + +net/rc/stream/legacy +/SocketServer.cpp @@ -2694,8 +2694,8 @@ Node117->Node118 - - + + @@ -2703,9 +2703,9 @@ Node119 - -web/http/legacy/rc -/Server.h + +web/http/legacy/rc +/Server.h @@ -2713,8 +2713,8 @@ Node117->Node119 - - + + @@ -2722,8 +2722,8 @@ Node120 - -express/legacy/rc/WebApp.h + +express/legacy/rc/WebApp.h @@ -2731,8 +2731,8 @@ Node119->Node120 - - + + @@ -2740,9 +2740,9 @@ Node123 - -net/rc/stream/tls/Socket -Server.h + +net/rc/stream/tls/Socket +Server.h @@ -2750,8 +2750,8 @@ Node122->Node123 - - + + @@ -2759,9 +2759,9 @@ Node127 - -net/rc/stream/tls/config -/ConfigSocketServer.cpp + +net/rc/stream/tls/config +/ConfigSocketServer.cpp @@ -2769,8 +2769,8 @@ Node122->Node127 - - + + @@ -2778,9 +2778,9 @@ Node124 - -net/rc/stream/tls/Socket -Server.cpp + +net/rc/stream/tls/Socket +Server.cpp @@ -2788,8 +2788,8 @@ Node123->Node124 - - + + @@ -2797,8 +2797,8 @@ Node125 - -web/http/tls/rc/Server.h + +web/http/tls/rc/Server.h @@ -2806,8 +2806,8 @@ Node123->Node125 - - + + @@ -2815,8 +2815,8 @@ Node126 - -express/tls/rc/WebApp.h + +express/tls/rc/WebApp.h @@ -2824,8 +2824,8 @@ Node125->Node126 - - + + @@ -2833,8 +2833,8 @@ Node128->Node79 - - + + @@ -2842,9 +2842,9 @@ Node129 - -net/un/stream/legacy -/config/ConfigSocketServer.h + +net/un/stream/legacy +/config/ConfigSocketServer.h @@ -2852,8 +2852,8 @@ Node128->Node129 - - + + @@ -2861,9 +2861,9 @@ Node135 - -net/un/stream/tls/config -/ConfigSocketServer.h + +net/un/stream/tls/config +/ConfigSocketServer.h @@ -2871,8 +2871,8 @@ Node128->Node135 - - + + @@ -2880,9 +2880,9 @@ Node130 - -net/un/stream/legacy -/SocketServer.h + +net/un/stream/legacy +/SocketServer.h @@ -2890,8 +2890,8 @@ Node129->Node130 - - + + @@ -2899,9 +2899,9 @@ Node134 - -net/un/stream/legacy -/config/ConfigSocketServer.cpp + +net/un/stream/legacy +/config/ConfigSocketServer.cpp @@ -2909,8 +2909,8 @@ Node129->Node134 - - + + @@ -2918,9 +2918,9 @@ Node131 - -net/un/stream/legacy -/SocketServer.cpp + +net/un/stream/legacy +/SocketServer.cpp @@ -2928,8 +2928,8 @@ Node130->Node131 - - + + @@ -2937,9 +2937,9 @@ Node132 - -web/http/legacy/un -/Server.h + +web/http/legacy/un +/Server.h @@ -2947,8 +2947,8 @@ Node130->Node132 - - + + @@ -2956,8 +2956,8 @@ Node133 - -express/legacy/un/WebApp.h + +express/legacy/un/WebApp.h @@ -2965,8 +2965,8 @@ Node132->Node133 - - + + @@ -2974,9 +2974,9 @@ Node136 - -net/un/stream/tls/Socket -Server.h + +net/un/stream/tls/Socket +Server.h @@ -2984,8 +2984,8 @@ Node135->Node136 - - + + @@ -2993,9 +2993,9 @@ Node140 - -net/un/stream/tls/config -/ConfigSocketServer.cpp + +net/un/stream/tls/config +/ConfigSocketServer.cpp @@ -3003,8 +3003,8 @@ Node135->Node140 - - + + @@ -3012,9 +3012,9 @@ Node137 - -net/un/stream/tls/Socket -Server.cpp + +net/un/stream/tls/Socket +Server.cpp @@ -3022,8 +3022,8 @@ Node136->Node137 - - + + @@ -3031,8 +3031,8 @@ Node138 - -web/http/tls/un/Server.h + +web/http/tls/un/Server.h @@ -3040,8 +3040,8 @@ Node136->Node138 - - + + @@ -3049,8 +3049,8 @@ Node139 - -express/tls/un/WebApp.h + +express/tls/un/WebApp.h @@ -3058,8 +3058,8 @@ Node138->Node139 - - + + @@ -3067,8 +3067,8 @@ Node141->Node6 - - + + @@ -3076,8 +3076,8 @@ Node141->Node20 - - + + @@ -3085,8 +3085,8 @@ Node141->Node80 - - + + @@ -3094,8 +3094,8 @@ Node142->Node7 - - + + @@ -3103,8 +3103,8 @@ Node142->Node31 - - + + @@ -3112,8 +3112,8 @@ Node142->Node93 - - + + @@ -3121,8 +3121,8 @@ Node143->Node8 - - + + @@ -3130,8 +3130,8 @@ Node143->Node42 - - + + @@ -3139,8 +3139,8 @@ Node143->Node106 - - + + @@ -3148,8 +3148,8 @@ Node144->Node9 - - + + @@ -3157,8 +3157,8 @@ Node144->Node51 - - + + @@ -3166,8 +3166,8 @@ Node144->Node115 - - + + @@ -3175,8 +3175,8 @@ Node145->Node10 - - + + @@ -3184,8 +3184,8 @@ Node145->Node62 - - + + @@ -3193,8 +3193,8 @@ Node145->Node128 - - + + @@ -3202,8 +3202,8 @@ Node146->Node11 - - + + @@ -3211,8 +3211,8 @@ Node146->Node13 - - + + @@ -3220,8 +3220,8 @@ Node146->Node141 - - + + @@ -3229,8 +3229,8 @@ Node146->Node142 - - + + @@ -3238,8 +3238,8 @@ Node146->Node143 - - + + @@ -3247,8 +3247,8 @@ Node146->Node144 - - + + @@ -3256,8 +3256,8 @@ Node146->Node145 - - + + @@ -3265,8 +3265,8 @@ Node147->Node6 - - + + @@ -3274,8 +3274,8 @@ Node147->Node7 - - + + @@ -3283,8 +3283,8 @@ Node147->Node8 - - + + @@ -3292,8 +3292,8 @@ Node147->Node9 - - + + @@ -3301,8 +3301,8 @@ Node147->Node10 - - + + @@ -3310,8 +3310,8 @@ Node148->Node73 - - + + @@ -3319,8 +3319,8 @@ Node148->Node141 - - + + @@ -3328,8 +3328,8 @@ Node148->Node142 - - + + @@ -3337,8 +3337,8 @@ Node148->Node143 - - + + @@ -3346,8 +3346,8 @@ Node148->Node144 - - + + @@ -3355,8 +3355,8 @@ Node148->Node145 - - + + @@ -3364,9 +3364,9 @@ Node149 - -net/config/ConfigAddress -Reverse.hpp + +net/config/ConfigAddress +Reverse.hpp @@ -3374,8 +3374,8 @@ Node148->Node149 - - + + @@ -3383,8 +3383,8 @@ Node149->Node6 - - + + @@ -3392,8 +3392,8 @@ Node149->Node7 - - + + @@ -3401,8 +3401,8 @@ Node149->Node8 - - + + @@ -3410,8 +3410,8 @@ Node149->Node9 - - + + @@ -3419,8 +3419,8 @@ Node149->Node10 - - + + @@ -3428,8 +3428,8 @@ Node150->Node13 - - + + @@ -3437,8 +3437,8 @@ Node150->Node73 - - + + @@ -3446,8 +3446,8 @@ Node151 - -net/config/ConfigConnection.cpp + +net/config/ConfigConnection.cpp @@ -3455,8 +3455,8 @@ Node150->Node151 - - + + @@ -3464,8 +3464,8 @@ Node153 - -net/config/ConfigLegacy.cpp + +net/config/ConfigLegacy.cpp @@ -3473,8 +3473,8 @@ Node152->Node153 - - + + @@ -3482,9 +3482,9 @@ Node154 - -net/config/stream/legacy -/ConfigSocketClient.h + +net/config/stream/legacy +/ConfigSocketClient.h @@ -3492,8 +3492,8 @@ Node152->Node154 - - + + @@ -3501,9 +3501,9 @@ Node156 - -net/config/stream/legacy -/ConfigSocketServer.h + +net/config/stream/legacy +/ConfigSocketServer.h @@ -3511,8 +3511,8 @@ Node152->Node156 - - + + @@ -3520,8 +3520,8 @@ Node154->Node21 - - + + @@ -3529,8 +3529,8 @@ Node154->Node32 - - + + @@ -3538,8 +3538,8 @@ Node154->Node43 - - + + @@ -3547,8 +3547,8 @@ Node154->Node52 - - + + @@ -3556,8 +3556,8 @@ Node154->Node63 - - + + @@ -3565,9 +3565,9 @@ Node155 - -net/config/stream/legacy -/ConfigSocketClient.hpp + +net/config/stream/legacy +/ConfigSocketClient.hpp @@ -3575,8 +3575,8 @@ Node154->Node155 - - + + @@ -3584,8 +3584,8 @@ Node155->Node25 - - + + @@ -3593,8 +3593,8 @@ Node155->Node36 - - + + @@ -3602,8 +3602,8 @@ Node155->Node46 - - + + @@ -3611,8 +3611,8 @@ Node155->Node56 - - + + @@ -3620,8 +3620,8 @@ Node155->Node67 - - + + @@ -3629,8 +3629,8 @@ Node156->Node81 - - + + @@ -3638,8 +3638,8 @@ Node156->Node94 - - + + @@ -3647,8 +3647,8 @@ Node156->Node107 - - + + @@ -3656,8 +3656,8 @@ Node156->Node116 - - + + @@ -3665,8 +3665,8 @@ Node156->Node129 - - + + @@ -3674,9 +3674,9 @@ Node157 - -net/config/stream/legacy -/ConfigSocketServer.hpp + +net/config/stream/legacy +/ConfigSocketServer.hpp @@ -3684,8 +3684,8 @@ Node156->Node157 - - + + @@ -3693,8 +3693,8 @@ Node157->Node86 - - + + @@ -3702,8 +3702,8 @@ Node157->Node99 - - + + @@ -3711,8 +3711,8 @@ Node157->Node110 - - + + @@ -3720,8 +3720,8 @@ Node157->Node121 - - + + @@ -3729,8 +3729,8 @@ Node157->Node134 - - + + @@ -3738,8 +3738,8 @@ Node158->Node73 - - + + @@ -3747,8 +3747,8 @@ Node159 - -net/config/ConfigListen.cpp + +net/config/ConfigListen.cpp @@ -3756,8 +3756,8 @@ Node158->Node159 - - + + @@ -3765,9 +3765,9 @@ Node161 - -net/config/ConfigPhysical -Socket.cpp + +net/config/ConfigPhysical +Socket.cpp @@ -3775,8 +3775,8 @@ Node160->Node161 - - + + @@ -3784,9 +3784,9 @@ Node162 - -net/config/ConfigPhysical -SocketClient.h + +net/config/ConfigPhysical +SocketClient.h @@ -3794,8 +3794,8 @@ Node160->Node162 - - + + @@ -3803,9 +3803,9 @@ Node164 - -net/config/ConfigPhysical -SocketServer.h + +net/config/ConfigPhysical +SocketServer.h @@ -3813,8 +3813,8 @@ Node160->Node164 - - + + @@ -3822,8 +3822,8 @@ Node162->Node13 - - + + @@ -3831,9 +3831,9 @@ Node163 - -net/config/ConfigPhysical -SocketClient.cpp + +net/config/ConfigPhysical +SocketClient.cpp @@ -3841,8 +3841,8 @@ Node162->Node163 - - + + @@ -3850,8 +3850,8 @@ Node164->Node73 - - + + @@ -3859,9 +3859,9 @@ Node165 - -net/config/ConfigPhysical -SocketServer.cpp + +net/config/ConfigPhysical +SocketServer.cpp @@ -3869,8 +3869,8 @@ Node164->Node165 - - + + @@ -3878,8 +3878,8 @@ Node167->Node6 - - + + @@ -3887,8 +3887,8 @@ Node167->Node7 - - + + @@ -3896,8 +3896,8 @@ Node167->Node8 - - + + @@ -3905,8 +3905,8 @@ Node167->Node9 - - + + @@ -3914,8 +3914,8 @@ Node167->Node10 - - + + @@ -3923,8 +3923,8 @@ Node167->Node151 - - + + @@ -3932,8 +3932,8 @@ Node167->Node159 - - + + @@ -3941,8 +3941,8 @@ Node167->Node161 - - + + @@ -3950,8 +3950,8 @@ Node167->Node163 - - + + @@ -3959,8 +3959,8 @@ Node167->Node165 - - + + @@ -3968,8 +3968,8 @@ Node168 - -net/config/ConfigTls.cpp + +net/config/ConfigTls.cpp @@ -3977,8 +3977,8 @@ Node167->Node168 - - + + @@ -3986,8 +3986,8 @@ Node169 - -net/config/ConfigTlsClient.cpp + +net/config/ConfigTlsClient.cpp @@ -3995,8 +3995,8 @@ Node167->Node169 - - + + @@ -4004,8 +4004,8 @@ Node170 - -net/config/ConfigTlsServer.cpp + +net/config/ConfigTlsServer.cpp @@ -4013,136 +4013,90 @@ Node167->Node170 - - - - - - - -Node171->Node168 - - - - - - - - -Node172 - - -net/config/ConfigTlsClient.h + + - - -Node171->Node172 - - - - - - - - -Node175 - - -net/config/ConfigTlsServer.h + + +Node171 + + +web/http/client/ConfigHTTP.cpp - - -Node171->Node175 - - - + + +Node167->Node171 + + + - - -Node172->Node169 - - - + + +Node172->Node168 + + + Node173 - - -net/config/stream/tls -/ConfigSocketClient.h + + +net/config/ConfigTlsClient.h - + Node172->Node173 - - - - - - - - -Node173->Node26 - - - - - - - - -Node173->Node37 - - - + + + - - -Node173->Node47 - - - + + +Node176 + + +net/config/ConfigTlsServer.h - - -Node173->Node57 - - - + + +Node172->Node176 + + + - - -Node173->Node68 - - - + + +Node173->Node169 + + + Node174 - - -net/config/stream/tls -/ConfigSocketClient.hpp + + +net/config/stream/tls +/ConfigSocketClient.h @@ -4150,136 +4104,136 @@ Node173->Node174 - - + + - - -Node174->Node30 - - - + + +Node174->Node26 + + + - - -Node174->Node41 - - - + + +Node174->Node37 + + + - - -Node174->Node50 - - - + + +Node174->Node47 + + + - - -Node174->Node61 - - - + + +Node174->Node57 + + + - - -Node174->Node72 - - - + + +Node174->Node68 + + + - - -Node175->Node170 - - - + + +Node175 + + +net/config/stream/tls +/ConfigSocketClient.hpp - - -Node176 - - -net/config/stream/tls -/ConfigSocketServer.h + + +Node174->Node175 + + + - - -Node175->Node176 - - - + + +Node175->Node30 + + + - - -Node176->Node87 - - - + + +Node175->Node41 + + + - - -Node176->Node100 - - - + + +Node175->Node50 + + + - - -Node176->Node111 - - - + + +Node175->Node61 + + + - - -Node176->Node122 - - - + + +Node175->Node72 + + + - - -Node176->Node135 - - - + + +Node176->Node170 + + + Node177 - - -net/config/stream/tls -/ConfigSocketServer.hpp + + +net/config/stream/tls +/ConfigSocketServer.h @@ -4287,53 +4241,117 @@ Node176->Node177 - - + + + + + + + +Node177->Node87 + + + + + + + + +Node177->Node100 + + + + + + + + +Node177->Node111 + + + + + + + + +Node177->Node122 + + + + + + + + +Node177->Node135 + + + + + + + + +Node178 + + +net/config/stream/tls +/ConfigSocketServer.hpp + + + + + +Node177->Node178 + + + - - -Node177->Node92 - - - + + +Node178->Node92 + + + - - -Node177->Node105 - - - + + +Node178->Node105 + + + - - -Node177->Node114 - - - + + +Node178->Node114 + + + - - -Node177->Node127 - - - + + +Node178->Node127 + + + - - -Node177->Node140 - - - + + +Node178->Node140 + + + diff --git a/html/ConfigSection_8h_source.html b/html/ConfigSection_8h_source.html index 4144093f96..7697effbcd 100644 --- a/html/ConfigSection_8h_source.html +++ b/html/ConfigSection_8h_source.html @@ -148,86 +148,85 @@
51
-
52 protected:
-
53 CLI::Option* add_option(CLI::Option*& opt, const std::string& name, const std::string& description);
-
54
-
55 CLI::Option* add_option(CLI::Option*& opt, const std::string& name, const std::string& description, const std::string& typeName);
-
56
-
57 CLI::Option* add_option(CLI::Option*& opt,
-
58 const std::string& name,
-
59 const std::string& description,
-
60 const std::string& typeName,
-
61 const CLI::Validator& additionalValidator);
-
62
-
63 template <typename ValueTypeT>
-
64 CLI::Option* add_option(CLI::Option*& opt,
-
65 const std::string& name,
-
66 const std::string& description,
-
67 const std::string& typeName,
-
68 ValueTypeT defaultValue);
-
69
-
70 template <typename ValueTypeT>
-
71 CLI::Option* add_option(CLI::Option*& opt,
-
72 const std::string& name,
-
73 const std::string& description,
-
74 const std::string& typeName,
-
75 ValueTypeT defaultValue,
-
76 const CLI::Validator& additionalValidator);
-
77
-
78 CLI::Option* add_flag(CLI::Option*& opt, const std::string& name, const std::string& description, const std::string& typeName);
-
79
-
80 CLI::Option* add_flag(CLI::Option*& opt,
-
81 const std::string& name,
-
82 const std::string& description,
-
83 const std::string& typeName,
-
84 const CLI::Validator& additionalValidator);
-
85
-
86 template <typename ValueTypeT>
-
87 CLI::Option* add_flag(CLI::Option*& opt,
-
88 const std::string& name,
-
89 const std::string& description,
-
90 const std::string& typeName,
-
91 ValueTypeT defaultValue);
-
92
-
93 template <typename ValueTypeT>
-
94 CLI::Option* add_flag(CLI::Option*& opt,
-
95 const std::string& name,
-
96 const std::string& description,
-
97 const std::string& typeName,
-
98 ValueTypeT defaultValue,
-
99 const CLI::Validator& additionalValidator);
-
100
-
101 CLI::Option* add_flag_function(CLI::Option*& opt,
-
102 const std::string& name,
-
103 const std::function<void(int64_t)>& callback,
-
104 const std::string& description,
-
105 const std::string& typeName,
-
106 const std::string& defaultValue);
-
107
-
108 CLI::Option* add_flag_function(CLI::Option*& opt,
-
109 const std::string& name,
-
110 const std::function<void(int64_t)>& callback,
-
111 const std::string& description,
-
112 const std::string& typeName,
-
113 const std::string& defaultValue,
-
114 const CLI::Validator& validator);
-
115
-
116 void required(CLI::Option* opt, bool req = true);
-
117
-
118 bool required() const;
-
119
-
120 private:
- -
122
-
123 uint8_t requiredCount = 0;
-
124
-
125 protected:
-
126 CLI::App* section = nullptr;
-
127 };
-
128
-
129} // namespace net::config
-
130
-
131#endif // NET_CONFIG_CONFIGSECTION_H
+
52 CLI::Option* add_option(CLI::Option*& opt, const std::string& name, const std::string& description);
+
53
+
54 CLI::Option* add_option(CLI::Option*& opt, const std::string& name, const std::string& description, const std::string& typeName);
+
55
+
56 CLI::Option* add_option(CLI::Option*& opt,
+
57 const std::string& name,
+
58 const std::string& description,
+
59 const std::string& typeName,
+
60 const CLI::Validator& additionalValidator);
+
61
+
62 template <typename ValueTypeT>
+
63 CLI::Option* add_option(CLI::Option*& opt,
+
64 const std::string& name,
+
65 const std::string& description,
+
66 const std::string& typeName,
+
67 ValueTypeT defaultValue);
+
68
+
69 template <typename ValueTypeT>
+
70 CLI::Option* add_option(CLI::Option*& opt,
+
71 const std::string& name,
+
72 const std::string& description,
+
73 const std::string& typeName,
+
74 ValueTypeT defaultValue,
+
75 const CLI::Validator& additionalValidator);
+
76
+
77 CLI::Option* add_flag(CLI::Option*& opt, const std::string& name, const std::string& description, const std::string& typeName);
+
78
+
79 CLI::Option* add_flag(CLI::Option*& opt,
+
80 const std::string& name,
+
81 const std::string& description,
+
82 const std::string& typeName,
+
83 const CLI::Validator& additionalValidator);
+
84
+
85 template <typename ValueTypeT>
+
86 CLI::Option* add_flag(CLI::Option*& opt,
+
87 const std::string& name,
+
88 const std::string& description,
+
89 const std::string& typeName,
+
90 ValueTypeT defaultValue);
+
91
+
92 template <typename ValueTypeT>
+
93 CLI::Option* add_flag(CLI::Option*& opt,
+
94 const std::string& name,
+
95 const std::string& description,
+
96 const std::string& typeName,
+
97 ValueTypeT defaultValue,
+
98 const CLI::Validator& additionalValidator);
+
99
+
100 CLI::Option* add_flag_function(CLI::Option*& opt,
+
101 const std::string& name,
+
102 const std::function<void(int64_t)>& callback,
+
103 const std::string& description,
+
104 const std::string& typeName,
+
105 const std::string& defaultValue);
+
106
+
107 CLI::Option* add_flag_function(CLI::Option*& opt,
+
108 const std::string& name,
+
109 const std::function<void(int64_t)>& callback,
+
110 const std::string& description,
+
111 const std::string& typeName,
+
112 const std::string& defaultValue,
+
113 const CLI::Validator& validator);
+
114
+
115 void required(CLI::Option* opt, bool req = true);
+
116
+
117 bool required() const;
+
118
+
119 private:
+ +
121
+
122 uint8_t requiredCount = 0;
+
123
+
124 protected:
+
125 CLI::App* section = nullptr;
+
126 };
+
127
+
128} // namespace net::config
+
129
+
130#endif // NET_CONFIG_CONFIGSECTION_H
ConfigConnection & setWriteBlockSize(std::size_t newWriteBlockSize)
std::size_t getWriteBlockSize() const
@@ -247,27 +246,27 @@
utils::Timeval getReadTimeout() const
- +
ConfigSection(ConfigInstance *instance, const std::string &name, const std::string &description)
-
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue)
-
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator)
+
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue)
+
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator)
ConfigSection(const ConfigSection &)=delete
ConfigSection & operator=(ConfigSection &&)=delete
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator)
-
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator)
+
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator)
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue)
- +
ConfigSection(ConfigSection &&)=delete
- +
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue)
- +
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator)
ConfigSection & operator=(const ConfigSection &)=delete
-
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName)
-
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator)
-
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description)
-
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName)
-
void required(CLI::Option *opt, bool req=true)
+
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName)
+
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator)
+
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description)
+
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName)
+
void required(CLI::Option *opt, bool req=true)
@@ -278,7 +277,7 @@ diff --git a/html/ConfigSection_8hpp.html b/html/ConfigSection_8hpp.html index 0fd617a6c3..2b30213990 100644 --- a/html/ConfigSection_8hpp.html +++ b/html/ConfigSection_8hpp.html @@ -103,7 +103,7 @@
This graph shows which files directly or indirectly include this file:
-
+

Go to the source code of this file.

@@ -121,7 +121,7 @@ diff --git a/html/ConfigSection_8hpp__dep__incl.map b/html/ConfigSection_8hpp__dep__incl.map index 67dfce892b..810debf0f5 100644 --- a/html/ConfigSection_8hpp__dep__incl.map +++ b/html/ConfigSection_8hpp__dep__incl.map @@ -1,29 +1,31 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + diff --git a/html/ConfigSection_8hpp__dep__incl.md5 b/html/ConfigSection_8hpp__dep__incl.md5 index e631a056e2..10ceda6a9f 100644 --- a/html/ConfigSection_8hpp__dep__incl.md5 +++ b/html/ConfigSection_8hpp__dep__incl.md5 @@ -1 +1 @@ -565b8ae7893957a8c77a8b5d5d2095b1 \ No newline at end of file +412b3f95b14b18cc2232b744d85e8a50 \ No newline at end of file diff --git a/html/ConfigSection_8hpp__dep__incl.svg b/html/ConfigSection_8hpp__dep__incl.svg index e5f523af75..af3637d7dd 100644 --- a/html/ConfigSection_8hpp__dep__incl.svg +++ b/html/ConfigSection_8hpp__dep__incl.svg @@ -4,16 +4,16 @@ - + net/config/ConfigSection.hpp Node1 - -net/config/ConfigSection.hpp + +net/config/ConfigSection.hpp @@ -30,8 +30,8 @@ Node1->Node2 - - + + @@ -48,8 +48,8 @@ Node1->Node3 - - + + @@ -67,8 +67,8 @@ Node1->Node4 - - + + @@ -86,8 +86,8 @@ Node1->Node5 - - + + @@ -105,8 +105,8 @@ Node1->Node6 - - + + @@ -123,8 +123,8 @@ Node1->Node7 - - + + @@ -141,8 +141,8 @@ Node1->Node8 - - + + @@ -159,8 +159,8 @@ Node1->Node9 - - + + @@ -177,8 +177,8 @@ Node1->Node10 - - + + @@ -195,8 +195,8 @@ Node1->Node11 - - + + @@ -213,8 +213,8 @@ Node1->Node12 - - + + @@ -231,8 +231,8 @@ Node1->Node13 - - + + @@ -249,8 +249,26 @@ Node1->Node14 - - + + + + + + + +Node15 + + +web/http/client/ConfigHTTP.cpp + + + + + +Node1->Node15 + + + diff --git a/html/ConfigSection_8hpp_source.html b/html/ConfigSection_8hpp_source.html index dbea45a96d..f4be2c5a0e 100644 --- a/html/ConfigSection_8hpp_source.html +++ b/html/ConfigSection_8hpp_source.html @@ -116,7 +116,7 @@
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
-
20#include "net/config/ConfigSection.h"
+
20#include "net/config/ConfigSection.h" // IWYU pragma: export
21
22#ifndef DOXYGEN_SHOULD_SKIP_THIS
23
@@ -131,53 +131,56 @@
32#if __has_warning("-Wcovered-switch-default")
33#pragma GCC diagnostic ignored "-Wcovered-switch-default"
34#endif
-
35#endif
-
36#include "utils/CLI11.hpp" // IWYU pragma: export
-
37#ifdef __GNUC__
-
38#pragma GCC diagnostic pop
-
39#endif
-
40
-
41#endif // DOXYGEN_SHOULD_SKIP_THIS
-
42
-
43namespace net::config {
-
44
-
45 template <typename ValueType>
- -
47 CLI::Option*& opt, const std::string& name, const std::string& description, const std::string& typeName, ValueType defaultValue) {
-
48 return add_option(opt, name, description, typeName) //
-
49 ->default_val(defaultValue);
-
50 }
-
51
-
52 template <typename ValueType>
-
53 CLI::Option* ConfigSection::add_option(CLI::Option*& opt,
-
54 const std::string& name,
-
55 const std::string& description,
-
56 const std::string& typeName,
-
57 ValueType defaultValue,
-
58 const CLI::Validator& additionalValidator) {
-
59 return add_option(opt, name, description, typeName, defaultValue) //
-
60 ->check(additionalValidator);
-
61 }
-
62
-
63 template <typename ValueType>
- -
65 CLI::Option*& opt, const std::string& name, const std::string& description, const std::string& typeName, ValueType defaultValue) {
-
66 return add_flag(opt, name, description, typeName) //
-
67 ->default_val(defaultValue);
-
68 }
-
69
-
70 template <typename ValueType>
-
71 CLI::Option* ConfigSection::add_flag(CLI::Option*& opt,
-
72 const std::string& name,
-
73 const std::string& description,
-
74 const std::string& typeName,
-
75 ValueType defaultValue,
-
76 const CLI::Validator& additionalValidator) {
-
77 return add_flag(opt, name, description, typeName, defaultValue) //
-
78 ->check(additionalValidator);
-
79 }
-
80
-
81} // namespace net::config
+
35#if __has_warning("-Wunsafe-buffer-usage")
+
36#pragma GCC diagnostic ignored "-Wunsafe-buffer-usage"
+
37#endif
+
38#endif
+
39#include "utils/CLI11.hpp" // IWYU pragma: export
+
40#ifdef __GNUC__
+
41#pragma GCC diagnostic pop
+
42#endif
+
43
+
44#endif // DOXYGEN_SHOULD_SKIP_THIS
+
45
+
46namespace net::config {
+
47
+
48 template <typename ValueType>
+ +
50 CLI::Option*& opt, const std::string& name, const std::string& description, const std::string& typeName, ValueType defaultValue) {
+
51 return add_option(opt, name, description, typeName) //
+
52 ->default_val(defaultValue);
+
53 }
+
54
+
55 template <typename ValueType>
+
56 CLI::Option* ConfigSection::add_option(CLI::Option*& opt,
+
57 const std::string& name,
+
58 const std::string& description,
+
59 const std::string& typeName,
+
60 ValueType defaultValue,
+
61 const CLI::Validator& additionalValidator) {
+
62 return add_option(opt, name, description, typeName, defaultValue) //
+
63 ->check(additionalValidator);
+
64 }
+
65
+
66 template <typename ValueType>
+ +
68 CLI::Option*& opt, const std::string& name, const std::string& description, const std::string& typeName, ValueType defaultValue) {
+
69 return add_flag(opt, name, description, typeName) //
+
70 ->default_val(defaultValue);
+
71 }
+
72
+
73 template <typename ValueType>
+
74 CLI::Option* ConfigSection::add_flag(CLI::Option*& opt,
+
75 const std::string& name,
+
76 const std::string& description,
+
77 const std::string& typeName,
+
78 ValueType defaultValue,
+
79 const CLI::Validator& additionalValidator) {
+
80 return add_flag(opt, name, description, typeName, defaultValue) //
+
81 ->check(additionalValidator);
+
82 }
+
83
+
84} // namespace net::config
ConfigConnection & setWriteBlockSize(std::size_t newWriteBlockSize)
std::size_t getWriteBlockSize() const
@@ -197,27 +200,27 @@
utils::Timeval getReadTimeout() const
- +
ConfigSection(ConfigInstance *instance, const std::string &name, const std::string &description)
-
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue)
-
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator)
+
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue)
+
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator)
ConfigSection(const ConfigSection &)=delete
ConfigSection & operator=(ConfigSection &&)=delete
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator)
-
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator)
+
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator)
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue)
- +
ConfigSection(ConfigSection &&)=delete
- +
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue)
- +
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator)
ConfigSection & operator=(const ConfigSection &)=delete
-
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName)
-
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator)
-
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description)
-
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName)
-
void required(CLI::Option *opt, bool req=true)
+
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName)
+
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator)
+
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description)
+
CLI::Option * add_option(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName)
+
void required(CLI::Option *opt, bool req=true)
@@ -228,7 +231,7 @@ diff --git a/html/ConfigSocketClient_8hpp.html b/html/ConfigSocketClient_8hpp.html index dc55dea2a0..d7575ebd9e 100644 --- a/html/ConfigSocketClient_8hpp.html +++ b/html/ConfigSocketClient_8hpp.html @@ -123,7 +123,7 @@ diff --git a/html/ConfigSocketClient_8hpp_source.html b/html/ConfigSocketClient_8hpp_source.html index 4bee87a287..987e21aad8 100644 --- a/html/ConfigSocketClient_8hpp_source.html +++ b/html/ConfigSocketClient_8hpp_source.html @@ -160,7 +160,7 @@ diff --git a/html/ConfigSocketServer_8hpp.html b/html/ConfigSocketServer_8hpp.html index 466c13000e..e81d918277 100644 --- a/html/ConfigSocketServer_8hpp.html +++ b/html/ConfigSocketServer_8hpp.html @@ -123,7 +123,7 @@ diff --git a/html/ConfigSocketServer_8hpp_source.html b/html/ConfigSocketServer_8hpp_source.html index bc7f195288..dfd69d0dd2 100644 --- a/html/ConfigSocketServer_8hpp_source.html +++ b/html/ConfigSocketServer_8hpp_source.html @@ -172,7 +172,7 @@ diff --git a/html/ConfigTlsClient_8cpp.html b/html/ConfigTlsClient_8cpp.html index 78986806d1..0e7ca86d48 100644 --- a/html/ConfigTlsClient_8cpp.html +++ b/html/ConfigTlsClient_8cpp.html @@ -117,7 +117,7 @@ diff --git a/html/ConfigTlsClient_8cpp_source.html b/html/ConfigTlsClient_8cpp_source.html index 69a94414e1..406de252e0 100644 --- a/html/ConfigTlsClient_8cpp_source.html +++ b/html/ConfigTlsClient_8cpp_source.html @@ -161,7 +161,7 @@ diff --git a/html/ConfigTlsClient_8h.html b/html/ConfigTlsClient_8h.html index ef27271476..5c668d8032 100644 --- a/html/ConfigTlsClient_8h.html +++ b/html/ConfigTlsClient_8h.html @@ -127,7 +127,7 @@ diff --git a/html/ConfigTlsClient_8h_source.html b/html/ConfigTlsClient_8h_source.html index ad70e97591..ec75b41577 100644 --- a/html/ConfigTlsClient_8h_source.html +++ b/html/ConfigTlsClient_8h_source.html @@ -168,7 +168,7 @@ diff --git a/html/ConfigTlsServer_8cpp.html b/html/ConfigTlsServer_8cpp.html index a165af6d8b..fdc66469a4 100644 --- a/html/ConfigTlsServer_8cpp.html +++ b/html/ConfigTlsServer_8cpp.html @@ -117,7 +117,7 @@ diff --git a/html/ConfigTlsServer_8cpp_source.html b/html/ConfigTlsServer_8cpp_source.html index 4a00beeae0..daeeb125a4 100644 --- a/html/ConfigTlsServer_8cpp_source.html +++ b/html/ConfigTlsServer_8cpp_source.html @@ -250,7 +250,7 @@
151
152} // namespace net::config
- +
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator)
std::map< std::string, std::map< std::string, std::variant< std::string, bool, ssl_option_t > > > & getSniCerts()
@@ -272,7 +272,7 @@ diff --git a/html/ConfigTlsServer_8h.html b/html/ConfigTlsServer_8h.html index fe49885fb4..46b3dfab67 100644 --- a/html/ConfigTlsServer_8h.html +++ b/html/ConfigTlsServer_8h.html @@ -127,7 +127,7 @@ diff --git a/html/ConfigTlsServer_8h_source.html b/html/ConfigTlsServer_8h_source.html index 637769749c..2973ff9cb4 100644 --- a/html/ConfigTlsServer_8h_source.html +++ b/html/ConfigTlsServer_8h_source.html @@ -163,7 +163,7 @@
64
65#endif // NET_CONFIG_CONFIGTLSSERVER_H
- +
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator)
std::map< std::string, std::map< std::string, std::variant< std::string, bool, ssl_option_t > > > & getSniCerts()
@@ -185,7 +185,7 @@ diff --git a/html/ConfigTls_8cpp.html b/html/ConfigTls_8cpp.html index 9ef9ce3719..639f8ca041 100644 --- a/html/ConfigTls_8cpp.html +++ b/html/ConfigTls_8cpp.html @@ -117,7 +117,7 @@ diff --git a/html/ConfigTls_8cpp_source.html b/html/ConfigTls_8cpp_source.html index 19190eb158..5afa0c9635 100644 --- a/html/ConfigTls_8cpp_source.html +++ b/html/ConfigTls_8cpp_source.html @@ -365,7 +365,7 @@ diff --git a/html/ConfigTls_8h.html b/html/ConfigTls_8h.html index 252d228b25..cc7aac0e58 100644 --- a/html/ConfigTls_8h.html +++ b/html/ConfigTls_8h.html @@ -128,7 +128,7 @@ diff --git a/html/ConfigTls_8h_source.html b/html/ConfigTls_8h_source.html index 90507514e9..11169d153d 100644 --- a/html/ConfigTls_8h_source.html +++ b/html/ConfigTls_8h_source.html @@ -239,7 +239,7 @@ diff --git a/html/Config_8cpp.html b/html/Config_8cpp.html index 0f0dc8df5e..8d7ec182bf 100644 --- a/html/Config_8cpp.html +++ b/html/Config_8cpp.html @@ -183,7 +183,7 @@

    - +
diff --git a/html/Config_8cpp_source.html b/html/Config_8cpp_source.html index e75493e2bf..5e576a0a7d 100644 --- a/html/Config_8cpp_source.html +++ b/html/Config_8cpp_source.html @@ -429,625 +429,626 @@
330
331 proceed = parse1(); // for stopDaemon and pre init application options
332
- -
334 }
-
335
-
336 return proceed;
-
337 }
-
338
- -
340 aliases.clear();
-
341
-
342 app->final_callback([]() -> void {
-
343 if (daemonizeOpt->as<bool>() && (*app)["--show-config"]->count() == 0 && (*app)["--write-config"]->count() == 0 &&
-
344 (*app)["--command-line"]->count() == 0) {
-
345 std::cout << "Running as daemon (double fork)" << std::endl;
-
346
- -
348 pidDirectory + "/" + applicationName + ".pid", userNameOpt->as<std::string>(), groupNameOpt->as<std::string>());
-
349
- -
351
-
352 const std::string logFile = logFileOpt->as<std::string>();
-
353 if (!logFile.empty()) {
- -
355 }
-
356 } else if ((*app)["--enforce-log-file"]->as<bool>()) {
-
357 const std::string logFile = logFileOpt->as<std::string>();
-
358 if (!logFile.empty()) {
-
359 std::cout << "Writing logs to file " << logFile << std::endl;
-
360
- -
362 }
-
363 }
-
364 });
-
365
-
366 return parse2();
-
367 }
-
368
-
369 bool Config::parse1() {
-
370 bool proceed = true;
-
371
-
372 try {
-
373 app->parse(argc, argv);
-
374 } catch (const CLI::ParseError&) {
-
375 // Do not process ParseError here but on second parse pass
-
376 }
-
377
-
378 if ((*app)["--kill"]->count() > 0) {
-
379 try {
-
380 const pid_t daemonPid = utils::Daemon::stopDaemon(pidDirectory + "/" + applicationName + ".pid");
-
381 std::cout << "Daemon terminated: Pid = " << daemonPid << std::endl;
-
382 } catch (const DaemonError& e) {
-
383 std::cout << "DaemonError: " << e.what() << std::endl;
-
384 } catch (const DaemonFailure& e) {
-
385 std::cout << "DaemonFailure: " << e.what() << std::endl;
-
386 }
-
387
-
388 proceed = false;
-
389 } else {
-
390 if ((*app)["--show-config"]->count() == 0 && (*app)["--write-config"]->count() == 0 && (*app)["--command-line"]->count() == 0) {
-
391 app->allow_extras(false);
-
392 }
-
393
-
394 if (!quietOpt->as<bool>()) {
- - -
397 }
-
398
- -
400 }
-
401
-
402 return proceed;
-
403 }
-
404
-
405 static void createCommandLineOptions(std::stringstream& out, CLI::App* app, CLI::CallForCommandline::Mode mode) {
-
406 CLI::Option* disabledOpt = app->get_option_no_throw("--disabled");
-
407 const bool disabled = disabledOpt != nullptr ? disabledOpt->as<bool>() : false;
- -
409 for (const CLI::Option* option : app->get_options()) {
-
410 if (option->get_configurable()) {
-
411 std::string value;
-
412
-
413 switch (mode) {
- -
415 if (option->count() > 0) {
-
416 value = option->as<std::string>();
-
417 } else if (option->get_required()) {
-
418 value = "<REQUIRED>";
-
419 }
-
420 break;
- -
422 if (option->get_required()) {
-
423 if (option->count() > 0) {
-
424 value = option->as<std::string>();
-
425 } else {
-
426 value = "<REQUIRED>";
-
427 }
-
428 }
-
429 break;
- -
431 if (option->count() > 0) {
-
432 value = option->as<std::string>();
-
433 } else if (!option->get_default_str().empty()) {
-
434 value = option->get_default_str();
-
435 } else if (!option->get_required()) {
-
436 value = "\"\"";
-
437 } else {
-
438 value = "<REQUIRED>";
-
439 }
-
440 break;
- -
442 if (!option->get_default_str().empty()) {
-
443 value = option->get_default_str();
-
444 } else if (!option->get_required()) {
-
445 value = "\"\"";
-
446 } else {
-
447 value = "<REQUIRED>";
-
448 }
-
449 break;
-
450 }
-
451 }
-
452
-
453 if (!value.empty()) {
-
454 out << "--" << option->get_single_name() << ((option->get_items_expected_max() == 0) ? "=" : " ") << value << " ";
-
455 }
-
456 }
-
457 }
-
458 } else if (disabledOpt->get_default_str() == "false") {
-
459 out << "--disabled=true ";
-
460 }
-
461 }
-
462
-
463 static std::string createCommandLineOptions(CLI::App* app, CLI::CallForCommandline::Mode mode) {
-
464 std::stringstream out;
-
465
- -
467
-
468 std::string optionString = out.str();
-
469 if (optionString.back() == ' ') {
-
470 optionString.pop_back();
-
471 }
-
472
-
473 return optionString;
-
474 }
-
475
-
476 static void createCommandLineTemplate(std::stringstream& out, CLI::App* app, CLI::CallForCommandline::Mode mode);
-
477
-
478 static std::string createCommandLineSubcommands(CLI::App* app, CLI::CallForCommandline::Mode mode) {
-
479 std::stringstream out;
-
480
-
481 CLI::Option* disabledOpt = app->get_option_no_throw("--disabled");
-
482 if (disabledOpt == nullptr || !disabledOpt->as<bool>() || mode == CLI::CallForCommandline::Mode::DEFAULT) {
-
483 for (CLI::App* subcommand : app->get_subcommands({})) {
-
484 if (!subcommand->get_name().empty()) {
-
485 createCommandLineTemplate(out, subcommand, mode);
-
486 }
-
487 }
-
488 }
-
489
-
490 return out.str();
-
491 }
-
492
-
493 static void createCommandLineTemplate(std::stringstream& out, CLI::App* app, CLI::CallForCommandline::Mode mode) {
-
494 std::string outString;
-
495
-
496 outString = createCommandLineOptions(app, mode);
-
497 if (!outString.empty()) {
-
498 outString += " ";
-
499 }
-
500
-
501 outString += createCommandLineSubcommands(app, mode);
-
502
-
503 if (!outString.empty()) {
-
504 out << app->get_name() << " " << outString;
-
505 }
-
506 }
-
507
-
508 static std::string createCommandLineTemplate(CLI::App* app, CLI::CallForCommandline::Mode mode) {
-
509 std::stringstream out;
-
510
- -
512
-
513 std::string outString = out.str();
-
514 while (app->get_parent() != nullptr) {
-
515 app = app->get_parent();
-
516 const std::string parentOptions = createCommandLineOptions(app, mode);
-
517 outString = std::string(app->get_name())
-
518 .append(" ")
-
519 .append(!parentOptions.empty() ? std::string(parentOptions).append(" ") : "")
-
520 .append(outString);
-
521 }
-
522
-
523 if (outString.empty()) {
- -
525 }
-
526
-
527 return outString;
-
528 }
-
529
-
530 bool Config::parse2() {
-
531 bool success = false;
-
532
-
533 try {
-
534 try {
-
535 app->parse(argc, argv);
-
536
-
537 if ((*app)["--write-config"]->count() > 0) {
-
538 throw CLI::CallForWriteConfig((*app)["--write-config"]->as<std::string>());
-
539 }
-
540
-
541 success = true;
-
542 } catch (const DaemonError& e) {
-
543 std::cout << "Daemon error: " << e.what() << " ... exiting" << std::endl;
-
544 } catch (const DaemonFailure& e) {
-
545 std::cout << "Daemon failure: " << e.what() << " ... exiting" << std::endl;
-
546 } catch (const DaemonSignaled& e) {
-
547 std::cout << "Pid: " << getpid() << ", child pid: " << e.getPid() << ": " << e.what() << std::endl;
-
548 } catch (const CLI::CallForHelp&) {
-
549 std::cout << app->help() << std::endl;
-
550 } catch (const CLI::CallForAllHelp&) {
-
551 std::cout << app->help("", CLI::AppFormatMode::All) << std::endl;
-
552 } catch (const CLI::CallForVersion&) {
-
553 std::cout << "SNode.C-Version: " << app->version() << std::endl << std::endl;
-
554 } catch (const CLI::CallForCommandline& e) {
-
555 std::cout << e.what() << ":" << std::endl;
-
556 std::cout << std::endl
-
557 << Color::Code::FG_GREEN << "command@line" << Color::Code::FG_DEFAULT << ":" << Color::Code::FG_BLUE << "~/> "
- -
559 << std::endl;
-
560 std::cout << "* Options show either their configured or default value" << std::endl;
-
561 std::cout << "* Required but not yet configured options show <REQUIRED> as value" << std::endl;
-
562 std::cout << "* Options marked as <REQUIRED> need to be configured for a successful bootstrap" << std::endl;
-
563 } catch (const CLI::CallForShowConfig& e) {
-
564 try {
-
565 std::cout << e.getApp()->config_to_str(true, true);
-
566 } catch (const CLI::ParseError& e1) {
-
567 std::cout << "Error showing config file: " << e.getApp() << " " << e1.get_name() << " " << e1.what() << std::endl;
-
568 throw;
-
569 }
-
570 } catch (const CLI::CallForWriteConfig& e) {
-
571 std::cout << e.what() << std::endl;
-
572 std::ofstream confFile(e.getConfigFile());
-
573 if (confFile.is_open()) {
-
574 try {
-
575 confFile << app->config_to_str(true, true);
-
576 confFile.close();
-
577 } catch (const CLI::ParseError& e1) {
-
578 confFile.close();
-
579 std::cout << "Error writing config file: " << e1.get_name() << " " << e1.what() << std::endl;
-
580 throw;
-
581 }
-
582 } else {
-
583 std::cout << "Error writing config file: " << std::strerror(errno) << std::endl;
-
584 }
-
585 } catch (const CLI::ConversionError& e) {
-
586 std::cout << "[" << Color::Code::FG_RED << e.get_name() << Color::Code::FG_DEFAULT << "] " << e.what() << std::endl;
-
587 throw;
-
588 } catch (const CLI::ArgumentMismatch& e) {
-
589 std::cout << "[" << Color::Code::FG_RED << e.get_name() << Color::Code::FG_DEFAULT << "] " << e.what() << std::endl;
-
590 throw;
-
591 } catch (const CLI::ConfigError& e) {
-
592 std::cout << "[" << Color::Code::FG_RED << e.get_name() << Color::Code::FG_DEFAULT << "] " << e.what() << std::endl;
-
593 std::cout << " Adding '-w' on the command line may solve this problem" << std::endl;
-
594 throw;
-
595 } catch (const CLI::ParseError& e) {
-
596 const std::string what = e.what();
-
597 if (what.find("[Option Group: ") != std::string::npos) { // If CLI11 throws that error it means for us there are
-
598 // unconfigured anonymous instances
-
599 std::cout << Color::Code::FG_RED << "[BootstrapError]" << Color::Code::FG_DEFAULT
-
600 << " Anonymous instance(s) not configured in source code " << std::endl;
-
601 } else {
-
602 std::cout << "[" << Color::Code::FG_RED << e.get_name() << Color::Code::FG_DEFAULT << "] " << what << std::endl;
-
603 }
-
604 throw;
-
605 }
-
606 } catch (const CLI::ParseError&) {
-
607 std::cout << std::endl << "Append -h or --help to your command line for more information." << std::endl;
-
608 } catch (const CLI::Error& e) {
-
609 std::cout << "Error: " << e.get_name() << " " << e.what() << std::endl;
-
610 std::cout << "Append -h or --help to your command line for more information." << std::endl;
-
611 }
-
612
-
613 if (!success) {
- -
615 }
-
616
-
617 return success;
-
618 }
-
619
- -
621 if ((*app)["--daemonize"]->as<bool>()) {
-
622 std::ifstream pidFile(pidDirectory + "/" + applicationName + ".pid", std::ifstream::in);
-
623
-
624 if (pidFile.good()) {
-
625 pid_t pid = 0;
-
626 pidFile >> pid;
-
627
-
628 if (getpid() == pid) {
- -
630 }
-
631 }
-
632 } else if (fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK) >= 0) {
-
633 char buf[1024];
-
634 while (read(STDIN_FILENO, buf, 1024) > 0) {
-
635 }
-
636 }
-
637 }
-
638
-
639 static std::shared_ptr<CLI::HelpFormatter> makeSectionFormatter() {
-
640 std::shared_ptr<CLI::HelpFormatter> sectionFormatter = std::make_shared<CLI::HelpFormatter>();
-
641
-
642 sectionFormatter->label("SUBCOMMAND", "SECTION");
-
643 sectionFormatter->label("SUBCOMMANDS", "SECTIONS");
-
644 sectionFormatter->label("PERSISTENT", "");
-
645 sectionFormatter->label("Persistent Options", "Options (persistent)");
-
646 sectionFormatter->label("Nonpersistent Options", "Options (nonpersistent)");
-
647 sectionFormatter->label("Usage", "\nUsage");
-
648 sectionFormatter->label("bool:{true,false}", "{true,false}");
-
649 sectionFormatter->label(":{standard,required,full,default}", "{standard,required,full,default}");
-
650 sectionFormatter->label(":{standard,expanded}", "{standard,expanded}");
-
651 sectionFormatter->column_width(7);
-
652
-
653 return sectionFormatter;
-
654 }
-
655
-
656 std::shared_ptr<CLI::Formatter> Config::sectionFormatter = makeSectionFormatter();
-
657
-
658 CLI::App* Config::add_instance(const std::string& name, const std::string& description, const std::string& group) {
-
659 CLI::App* instance = app->add_subcommand(name, description) //
-
660 ->group(group)
-
661 ->fallthrough()
-
662 ->formatter(sectionFormatter)
-
663 ->configurable(false)
-
664 ->allow_extras(false)
-
665 ->disabled(name.empty());
-
666
-
667 instance //
-
668 ->option_defaults()
-
669 ->configurable(!instance->get_disabled());
-
670
-
671 if (!instance->get_disabled() && !aliases.empty()) {
-
672 if (aliases.contains(name)) {
-
673 instance //
-
674 ->alias(aliases[name]);
-
675 } else {
-
676 instance //
-
677 ->option_defaults()
-
678 ->take_first();
-
679 }
-
680 }
-
681
-
682 return instance;
-
683 }
-
684
-
685 CLI::App* Config::add_standard_flags(CLI::App* app) {
-
686 app->add_flag_callback( //
-
687 "-s,--show-config",
-
688 [app]() {
-
689 throw CLI::CallForShowConfig(app);
-
690 },
-
691 "Show current configuration and exit") //
-
692 ->configurable(false)
-
693 ->disable_flag_override();
-
694
-
695 app //
-
696 ->add_flag_function(
-
697 "--command-line{standard}",
-
698 [app]([[maybe_unused]] std::int64_t count) {
-
699 const std::string& result = app->get_option("--command-line")->as<std::string>();
-
700 if (result == "standard") {
- -
702 "Below is a command line viewing all non-default and required options",
- -
704 }
-
705 if (result == "required") {
- -
707 app, "Below is a command line viewing required options only", CLI::CallForCommandline::Mode::REQUIRED);
-
708 }
-
709 if (result == "full") {
- -
711 app,
-
712 "Below is a command line viewing the full set of options with their default or configured values",
- -
714 }
-
715 if (result == "default") {
- -
717 "Below is a command line viewing the full set of options with their default values",
- -
719 }
-
720 },
-
721 "Print a command line\n"
-
722 " standard (default): View all non-default and required options\n"
-
723 " required: View required options only\n"
-
724 " full: View the full set of options with their default or configured values\n"
-
725 " default: View the full set of options with their default values")
-
726 ->take_last()
-
727 ->configurable(false)
-
728 ->check(CLI::IsMember({"standard", "required", "full", "default"}));
-
729
-
730 return app;
-
731 }
-
732
-
733 CLI::App* Config::add_help_flags(CLI::App* app) {
-
734 app //
-
735 ->set_help_flag();
-
736
-
737 app //
-
738 ->add_flag_function(
-
739 "-h{standard},--help{standard}",
-
740 [app]([[maybe_unused]] std::int64_t count) {
-
741 const std::string& result = app->get_option("--help")->as<std::string>();
-
742
-
743 if (result == "standard") {
-
744 throw CLI::CallForHelp();
-
745 }
-
746 if (result == "expanded") {
-
747 throw CLI::CallForAllHelp();
-
748 }
-
749 },
-
750 "Print help message")
-
751 ->take_last()
-
752 ->configurable(false)
-
753 ->check(CLI::IsMember({"standard", "expanded"}))
-
754 ->trigger_on_parse();
-
755
-
756 return app;
-
757 }
-
758
-
759 CLI::App* Config::add_help_flag(CLI::App* app) {
-
760 app //
-
761 ->set_help_flag();
-
762
-
763 app //
-
764 ->add_flag_function(
-
765 "-h,--help",
-
766 [app]([[maybe_unused]] std::int64_t count) {
-
767 const std::string& result = app->get_option("--help")->as<std::string>();
-
768
-
769 if (result != "1") {
-
770 std::cout << "Help: Ignoring mode '" << result << "'" << std::endl;
-
771 }
-
772
-
773 throw CLI::CallForHelp();
-
774 },
-
775 "Print help message")
-
776 ->configurable(false)
-
777 ->trigger_on_parse();
-
778
-
779 return app;
-
780 }
-
781
-
782 void Config::required(CLI::App* instance, bool reqired) {
-
783 if (reqired) {
-
784 app->needs(instance);
-
785
-
786 for (const auto& sub : instance->get_subcommands([](CLI::App* sc) -> bool {
-
787 return sc->get_required();
-
788 })) {
-
789 instance->needs(sub);
-
790 }
-
791 } else {
-
792 app->remove_needs(instance);
-
793
-
794 for (const auto& sub : instance->get_subcommands([](CLI::App* sc) -> bool {
-
795 return sc->get_required();
-
796 })) {
-
797 instance->remove_needs(sub);
-
798 }
-
799 }
-
800
-
801 instance->required(reqired);
-
802 }
-
803
-
804 void Config::disabled(CLI::App* instance, bool disabled) {
-
805 if (disabled) {
-
806 app->remove_needs(instance);
-
807
-
808 for (const auto& sub : instance->get_subcommands([](CLI::App* sc) -> bool {
-
809 return !sc->get_disabled();
-
810 })) {
-
811 sub->disabled();
-
812
-
813 if (sub->get_required()) {
-
814 instance->remove_needs(sub);
-
815 }
-
816 }
-
817 } else {
-
818 app->needs(instance);
-
819
-
820 for (const auto& sub : instance->get_subcommands([](CLI::App* sc) -> bool {
-
821 return sc->get_disabled();
-
822 })) {
-
823 sub->disabled(false);
-
824
-
825 if (sub->get_required()) {
-
826 instance->needs(sub);
-
827 }
-
828 }
-
829 }
-
830
-
831 instance->required(!disabled);
-
832 }
-
833
-
834 bool Config::remove_instance(CLI::App* instance) {
-
835 Config::required(instance, false);
-
836
-
837 return app->remove_subcommand(instance);
-
838 }
-
839
-
840 CLI::Option* Config::add_string_option(const std::string& name, const std::string& description, const std::string& typeName) {
-
841 applicationOptions[name] = app //
-
842 ->add_option(name, description)
-
843 ->take_last()
-
844 ->type_name(typeName)
-
845 ->configurable()
-
846 ->required()
-
847 ->group("Application Options");
-
848
-
849 app->needs(applicationOptions[name]);
-
850
-
851 return applicationOptions[name];
-
852 }
-
853
-
854 CLI::Option*
-
855 Config::add_string_option(const std::string& name, const std::string& description, const std::string& typeName, bool configurable) {
-
856 add_string_option(name, description, typeName);
-
857 return applicationOptions[name] //
-
858 ->configurable(configurable);
-
859 }
-
860
-
861 CLI::Option* Config::add_string_option(const std::string& name,
-
862 const std::string& description,
-
863 const std::string& typeName,
-
864 const std::string& defaultValue) {
-
865 add_string_option(name, description, typeName);
-
866
-
867 applicationOptions[name] //
-
868 ->required(false)
-
869 ->default_val(defaultValue);
-
870
-
871 app->remove_needs(applicationOptions[name]);
-
872
-
873 return applicationOptions[name];
-
874 }
-
875
-
876 CLI::Option* Config::add_string_option(const std::string& name,
-
877 const std::string& description,
-
878 const std::string& typeName,
-
879 const std::string& defaultValue,
-
880 bool configurable) {
-
881 add_string_option(name, description, typeName, defaultValue);
-
882 return applicationOptions[name] //
-
883 ->configurable(configurable);
-
884 }
-
885
-
886 CLI::Option* Config::add_string_option(const std::string& name,
-
887 const std::string& description,
-
888 const std::string& typeName,
-
889 const char* defaultValue) {
-
890 return add_string_option(name, description, typeName, std::string(defaultValue));
-
891 }
-
892
- -
894 const std::string& name, const std::string& description, const std::string& typeName, const char* defaultValue, bool configurable) {
-
895 return add_string_option(name, description, typeName, std::string(defaultValue), configurable);
-
896 }
-
897
-
898 std::string Config::get_string_option_value(const std::string& name) {
-
899 if (app->get_option(name) == nullptr) {
-
900 throw CLI::OptionNotFound(name);
-
901 }
-
902
-
903 return (*app)[name]->as<std::string>();
-
904 }
-
905
-
906 void Config::add_flag(const std::string& name,
-
907 bool& variable,
-
908 const std::string& description,
-
909 bool required,
-
910 bool configurable,
-
911 const std::string& groupName) {
-
912 app->add_flag(name, variable, description) //
-
913 ->required(required) //
-
914 ->configurable(configurable) //
-
915 ->group(groupName);
-
916 }
-
917
-
918 std::string Config::getApplicationName() {
-
919 return applicationName;
-
920 }
-
921
- -
923 return logLevelOpt->as<int>();
-
924 }
-
925
- -
927 return verboseLevelOpt->as<int>();
-
928 }
-
929
-
930 int Config::argc = 0;
-
931 char** Config::argv = nullptr;
-
932
-
933 std::string Config::applicationName;
-
934
-
935 std::string Config::configDirectory;
-
936 std::string Config::logDirectory;
-
937 std::string Config::pidDirectory;
-
938
-
939 CLI::Option* Config::daemonizeOpt = nullptr;
-
940 CLI::Option* Config::logFileOpt = nullptr;
-
941 CLI::Option* Config::userNameOpt = nullptr;
-
942 CLI::Option* Config::groupNameOpt = nullptr;
-
943 CLI::Option* Config::enforceLogFileOpt = nullptr;
-
944 CLI::Option* Config::logLevelOpt = nullptr;
-
945 CLI::Option* Config::verboseLevelOpt = nullptr;
-
946 CLI::Option* Config::quietOpt = nullptr;
-
947
-
948 std::map<std::string, std::string> Config::aliases;
-
949 std::map<std::string, CLI::Option*> Config::applicationOptions;
-
950
-
951} // namespace utils
+
333 app->set_version_flag("--version", "1.0-rc1", "Framework version");
+ +
335 }
+
336
+
337 return proceed;
+
338 }
+
339
+ +
341 aliases.clear();
+
342
+
343 app->final_callback([]() -> void {
+
344 if (daemonizeOpt->as<bool>() && (*app)["--show-config"]->count() == 0 && (*app)["--write-config"]->count() == 0 &&
+
345 (*app)["--command-line"]->count() == 0) {
+
346 std::cout << "Running as daemon (double fork)" << std::endl;
+
347
+ +
349 pidDirectory + "/" + applicationName + ".pid", userNameOpt->as<std::string>(), groupNameOpt->as<std::string>());
+
350
+ +
352
+
353 const std::string logFile = logFileOpt->as<std::string>();
+
354 if (!logFile.empty()) {
+ +
356 }
+
357 } else if ((*app)["--enforce-log-file"]->as<bool>()) {
+
358 const std::string logFile = logFileOpt->as<std::string>();
+
359 if (!logFile.empty()) {
+
360 std::cout << "Writing logs to file " << logFile << std::endl;
+
361
+ +
363 }
+
364 }
+
365 });
+
366
+
367 return parse2();
+
368 }
+
369
+
370 bool Config::parse1() {
+
371 bool proceed = true;
+
372
+
373 try {
+
374 app->parse(argc, argv);
+
375 } catch (const CLI::ParseError&) {
+
376 // Do not process ParseError here but on second parse pass
+
377 }
+
378
+
379 if ((*app)["--kill"]->count() > 0) {
+
380 try {
+
381 const pid_t daemonPid = utils::Daemon::stopDaemon(pidDirectory + "/" + applicationName + ".pid");
+
382 std::cout << "Daemon terminated: Pid = " << daemonPid << std::endl;
+
383 } catch (const DaemonError& e) {
+
384 std::cout << "DaemonError: " << e.what() << std::endl;
+
385 } catch (const DaemonFailure& e) {
+
386 std::cout << "DaemonFailure: " << e.what() << std::endl;
+
387 }
+
388
+
389 proceed = false;
+
390 } else {
+
391 if ((*app)["--show-config"]->count() == 0 && (*app)["--write-config"]->count() == 0 && (*app)["--command-line"]->count() == 0) {
+
392 app->allow_extras(false);
+
393 }
+
394
+
395 if (!quietOpt->as<bool>()) {
+ + +
398 }
+
399
+ +
401 }
+
402
+
403 return proceed;
+
404 }
+
405
+
406 static void createCommandLineOptions(std::stringstream& out, CLI::App* app, CLI::CallForCommandline::Mode mode) {
+
407 CLI::Option* disabledOpt = app->get_option_no_throw("--disabled");
+
408 const bool disabled = disabledOpt != nullptr ? disabledOpt->as<bool>() : false;
+ +
410 for (const CLI::Option* option : app->get_options()) {
+
411 if (option->get_configurable()) {
+
412 std::string value;
+
413
+
414 switch (mode) {
+ +
416 if (option->count() > 0) {
+
417 value = option->as<std::string>();
+
418 } else if (option->get_required()) {
+
419 value = "<REQUIRED>";
+
420 }
+
421 break;
+ +
423 if (option->get_required()) {
+
424 if (option->count() > 0) {
+
425 value = option->as<std::string>();
+
426 } else {
+
427 value = "<REQUIRED>";
+
428 }
+
429 }
+
430 break;
+ +
432 if (option->count() > 0) {
+
433 value = option->as<std::string>();
+
434 } else if (!option->get_default_str().empty()) {
+
435 value = option->get_default_str();
+
436 } else if (!option->get_required()) {
+
437 value = "\"\"";
+
438 } else {
+
439 value = "<REQUIRED>";
+
440 }
+
441 break;
+ +
443 if (!option->get_default_str().empty()) {
+
444 value = option->get_default_str();
+
445 } else if (!option->get_required()) {
+
446 value = "\"\"";
+
447 } else {
+
448 value = "<REQUIRED>";
+
449 }
+
450 break;
+
451 }
+
452 }
+
453
+
454 if (!value.empty()) {
+
455 out << "--" << option->get_single_name() << ((option->get_items_expected_max() == 0) ? "=" : " ") << value << " ";
+
456 }
+
457 }
+
458 }
+
459 } else if (disabledOpt->get_default_str() == "false") {
+
460 out << "--disabled=true ";
+
461 }
+
462 }
+
463
+
464 static std::string createCommandLineOptions(CLI::App* app, CLI::CallForCommandline::Mode mode) {
+
465 std::stringstream out;
+
466
+ +
468
+
469 std::string optionString = out.str();
+
470 if (optionString.back() == ' ') {
+
471 optionString.pop_back();
+
472 }
+
473
+
474 return optionString;
+
475 }
+
476
+
477 static void createCommandLineTemplate(std::stringstream& out, CLI::App* app, CLI::CallForCommandline::Mode mode);
+
478
+
479 static std::string createCommandLineSubcommands(CLI::App* app, CLI::CallForCommandline::Mode mode) {
+
480 std::stringstream out;
+
481
+
482 CLI::Option* disabledOpt = app->get_option_no_throw("--disabled");
+
483 if (disabledOpt == nullptr || !disabledOpt->as<bool>() || mode == CLI::CallForCommandline::Mode::DEFAULT) {
+
484 for (CLI::App* subcommand : app->get_subcommands({})) {
+
485 if (!subcommand->get_name().empty()) {
+
486 createCommandLineTemplate(out, subcommand, mode);
+
487 }
+
488 }
+
489 }
+
490
+
491 return out.str();
+
492 }
+
493
+
494 static void createCommandLineTemplate(std::stringstream& out, CLI::App* app, CLI::CallForCommandline::Mode mode) {
+
495 std::string outString;
+
496
+
497 outString = createCommandLineOptions(app, mode);
+
498 if (!outString.empty()) {
+
499 outString += " ";
+
500 }
+
501
+
502 outString += createCommandLineSubcommands(app, mode);
+
503
+
504 if (!outString.empty()) {
+
505 out << app->get_name() << " " << outString;
+
506 }
+
507 }
+
508
+
509 static std::string createCommandLineTemplate(CLI::App* app, CLI::CallForCommandline::Mode mode) {
+
510 std::stringstream out;
+
511
+ +
513
+
514 std::string outString = out.str();
+
515 while (app->get_parent() != nullptr) {
+
516 app = app->get_parent();
+
517 const std::string parentOptions = createCommandLineOptions(app, mode);
+
518 outString = std::string(app->get_name())
+
519 .append(" ")
+
520 .append(!parentOptions.empty() ? std::string(parentOptions).append(" ") : "")
+
521 .append(outString);
+
522 }
+
523
+
524 if (outString.empty()) {
+ +
526 }
+
527
+
528 return outString;
+
529 }
+
530
+
531 bool Config::parse2() {
+
532 bool success = false;
+
533
+
534 try {
+
535 try {
+
536 app->parse(argc, argv);
+
537
+
538 if ((*app)["--write-config"]->count() > 0) {
+
539 throw CLI::CallForWriteConfig((*app)["--write-config"]->as<std::string>());
+
540 }
+
541
+
542 success = true;
+
543 } catch (const DaemonError& e) {
+
544 std::cout << "Daemon error: " << e.what() << " ... exiting" << std::endl;
+
545 } catch (const DaemonFailure& e) {
+
546 std::cout << "Daemon failure: " << e.what() << " ... exiting" << std::endl;
+
547 } catch (const DaemonSignaled& e) {
+
548 std::cout << "Pid: " << getpid() << ", child pid: " << e.getPid() << ": " << e.what() << std::endl;
+
549 } catch (const CLI::CallForHelp&) {
+
550 std::cout << app->help() << std::endl;
+
551 } catch (const CLI::CallForAllHelp&) {
+
552 std::cout << app->help("", CLI::AppFormatMode::All) << std::endl;
+
553 } catch (const CLI::CallForVersion&) {
+
554 std::cout << app->version() << std::endl << std::endl;
+
555 } catch (const CLI::CallForCommandline& e) {
+
556 std::cout << e.what() << ":" << std::endl;
+
557 std::cout << std::endl
+
558 << Color::Code::FG_GREEN << "command@line" << Color::Code::FG_DEFAULT << ":" << Color::Code::FG_BLUE << "~/> "
+ +
560 << std::endl;
+
561 std::cout << "* Options show either their configured or default value" << std::endl;
+
562 std::cout << "* Required but not yet configured options show <REQUIRED> as value" << std::endl;
+
563 std::cout << "* Options marked as <REQUIRED> need to be configured for a successful bootstrap" << std::endl;
+
564 } catch (const CLI::CallForShowConfig& e) {
+
565 try {
+
566 std::cout << e.getApp()->config_to_str(true, true);
+
567 } catch (const CLI::ParseError& e1) {
+
568 std::cout << "Error showing config file: " << e.getApp() << " " << e1.get_name() << " " << e1.what() << std::endl;
+
569 throw;
+
570 }
+
571 } catch (const CLI::CallForWriteConfig& e) {
+
572 std::cout << e.what() << std::endl;
+
573 std::ofstream confFile(e.getConfigFile());
+
574 if (confFile.is_open()) {
+
575 try {
+
576 confFile << app->config_to_str(true, true);
+
577 confFile.close();
+
578 } catch (const CLI::ParseError& e1) {
+
579 confFile.close();
+
580 std::cout << "Error writing config file: " << e1.get_name() << " " << e1.what() << std::endl;
+
581 throw;
+
582 }
+
583 } else {
+
584 std::cout << "Error writing config file: " << std::strerror(errno) << std::endl;
+
585 }
+
586 } catch (const CLI::ConversionError& e) {
+
587 std::cout << "[" << Color::Code::FG_RED << e.get_name() << Color::Code::FG_DEFAULT << "] " << e.what() << std::endl;
+
588 throw;
+
589 } catch (const CLI::ArgumentMismatch& e) {
+
590 std::cout << "[" << Color::Code::FG_RED << e.get_name() << Color::Code::FG_DEFAULT << "] " << e.what() << std::endl;
+
591 throw;
+
592 } catch (const CLI::ConfigError& e) {
+
593 std::cout << "[" << Color::Code::FG_RED << e.get_name() << Color::Code::FG_DEFAULT << "] " << e.what() << std::endl;
+
594 std::cout << " Adding '-w' on the command line may solve this problem" << std::endl;
+
595 throw;
+
596 } catch (const CLI::ParseError& e) {
+
597 const std::string what = e.what();
+
598 if (what.find("[Option Group: ") != std::string::npos) { // If CLI11 throws that error it means for us there are
+
599 // unconfigured anonymous instances
+
600 std::cout << Color::Code::FG_RED << "[BootstrapError]" << Color::Code::FG_DEFAULT
+
601 << " Anonymous instance(s) not configured in source code " << std::endl;
+
602 } else {
+
603 std::cout << "[" << Color::Code::FG_RED << e.get_name() << Color::Code::FG_DEFAULT << "] " << what << std::endl;
+
604 }
+
605 throw;
+
606 }
+
607 } catch (const CLI::ParseError&) {
+
608 std::cout << std::endl << "Append -h or --help to your command line for more information." << std::endl;
+
609 } catch (const CLI::Error& e) {
+
610 std::cout << "Error: " << e.get_name() << " " << e.what() << std::endl;
+
611 std::cout << "Append -h or --help to your command line for more information." << std::endl;
+
612 }
+
613
+
614 if (!success) {
+ +
616 }
+
617
+
618 return success;
+
619 }
+
620
+ +
622 if ((*app)["--daemonize"]->as<bool>()) {
+
623 std::ifstream pidFile(pidDirectory + "/" + applicationName + ".pid", std::ifstream::in);
+
624
+
625 if (pidFile.good()) {
+
626 pid_t pid = 0;
+
627 pidFile >> pid;
+
628
+
629 if (getpid() == pid) {
+ +
631 }
+
632 }
+
633 } else if (fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK) >= 0) {
+
634 char buf[1024];
+
635 while (read(STDIN_FILENO, buf, 1024) > 0) {
+
636 }
+
637 }
+
638 }
+
639
+
640 static std::shared_ptr<CLI::HelpFormatter> makeSectionFormatter() {
+
641 std::shared_ptr<CLI::HelpFormatter> sectionFormatter = std::make_shared<CLI::HelpFormatter>();
+
642
+
643 sectionFormatter->label("SUBCOMMAND", "SECTION");
+
644 sectionFormatter->label("SUBCOMMANDS", "SECTIONS");
+
645 sectionFormatter->label("PERSISTENT", "");
+
646 sectionFormatter->label("Persistent Options", "Options (persistent)");
+
647 sectionFormatter->label("Nonpersistent Options", "Options (nonpersistent)");
+
648 sectionFormatter->label("Usage", "\nUsage");
+
649 sectionFormatter->label("bool:{true,false}", "{true,false}");
+
650 sectionFormatter->label(":{standard,required,full,default}", "{standard,required,full,default}");
+
651 sectionFormatter->label(":{standard,expanded}", "{standard,expanded}");
+
652 sectionFormatter->column_width(7);
+
653
+
654 return sectionFormatter;
+
655 }
+
656
+
657 std::shared_ptr<CLI::Formatter> Config::sectionFormatter = makeSectionFormatter();
+
658
+
659 CLI::App* Config::add_instance(const std::string& name, const std::string& description, const std::string& group) {
+
660 CLI::App* instance = app->add_subcommand(name, description) //
+
661 ->group(group)
+
662 ->fallthrough()
+
663 ->formatter(sectionFormatter)
+
664 ->configurable(false)
+
665 ->allow_extras(false)
+
666 ->disabled(name.empty());
+
667
+
668 instance //
+
669 ->option_defaults()
+
670 ->configurable(!instance->get_disabled());
+
671
+
672 if (!instance->get_disabled() && !aliases.empty()) {
+
673 if (aliases.contains(name)) {
+
674 instance //
+
675 ->alias(aliases[name]);
+
676 } else {
+
677 instance //
+
678 ->option_defaults()
+
679 ->take_first();
+
680 }
+
681 }
+
682
+
683 return instance;
+
684 }
+
685
+
686 CLI::App* Config::add_standard_flags(CLI::App* app) {
+
687 app->add_flag_callback( //
+
688 "-s,--show-config",
+
689 [app]() {
+
690 throw CLI::CallForShowConfig(app);
+
691 },
+
692 "Show current configuration and exit") //
+
693 ->configurable(false)
+
694 ->disable_flag_override();
+
695
+
696 app //
+
697 ->add_flag_function(
+
698 "--command-line{standard}",
+
699 [app]([[maybe_unused]] std::int64_t count) {
+
700 const std::string& result = app->get_option("--command-line")->as<std::string>();
+
701 if (result == "standard") {
+ +
703 "Below is a command line viewing all non-default and required options",
+ +
705 }
+
706 if (result == "required") {
+ +
708 app, "Below is a command line viewing required options only", CLI::CallForCommandline::Mode::REQUIRED);
+
709 }
+
710 if (result == "full") {
+ +
712 app,
+
713 "Below is a command line viewing the full set of options with their default or configured values",
+ +
715 }
+
716 if (result == "default") {
+ +
718 "Below is a command line viewing the full set of options with their default values",
+ +
720 }
+
721 },
+
722 "Print a command line\n"
+
723 " standard (default): View all non-default and required options\n"
+
724 " required: View required options only\n"
+
725 " full: View the full set of options with their default or configured values\n"
+
726 " default: View the full set of options with their default values")
+
727 ->take_last()
+
728 ->configurable(false)
+
729 ->check(CLI::IsMember({"standard", "required", "full", "default"}));
+
730
+
731 return app;
+
732 }
+
733
+
734 CLI::App* Config::add_help_flags(CLI::App* app) {
+
735 app //
+
736 ->set_help_flag();
+
737
+
738 app //
+
739 ->add_flag_function(
+
740 "-h{standard},--help{standard}",
+
741 [app]([[maybe_unused]] std::int64_t count) {
+
742 const std::string& result = app->get_option("--help")->as<std::string>();
+
743
+
744 if (result == "standard") {
+
745 throw CLI::CallForHelp();
+
746 }
+
747 if (result == "expanded") {
+
748 throw CLI::CallForAllHelp();
+
749 }
+
750 },
+
751 "Print help message")
+
752 ->take_last()
+
753 ->configurable(false)
+
754 ->check(CLI::IsMember({"standard", "expanded"}))
+
755 ->trigger_on_parse();
+
756
+
757 return app;
+
758 }
+
759
+
760 CLI::App* Config::add_help_flag(CLI::App* app) {
+
761 app //
+
762 ->set_help_flag();
+
763
+
764 app //
+
765 ->add_flag_function(
+
766 "-h,--help",
+
767 [app]([[maybe_unused]] std::int64_t count) {
+
768 const std::string& result = app->get_option("--help")->as<std::string>();
+
769
+
770 if (result != "1") {
+
771 std::cout << "Help: Ignoring mode '" << result << "'" << std::endl;
+
772 }
+
773
+
774 throw CLI::CallForHelp();
+
775 },
+
776 "Print help message")
+
777 ->configurable(false)
+
778 ->trigger_on_parse();
+
779
+
780 return app;
+
781 }
+
782
+
783 void Config::required(CLI::App* instance, bool reqired) {
+
784 if (reqired) {
+
785 app->needs(instance);
+
786
+
787 for (const auto& sub : instance->get_subcommands([](CLI::App* sc) -> bool {
+
788 return sc->get_required();
+
789 })) {
+
790 instance->needs(sub);
+
791 }
+
792 } else {
+
793 app->remove_needs(instance);
+
794
+
795 for (const auto& sub : instance->get_subcommands([](CLI::App* sc) -> bool {
+
796 return sc->get_required();
+
797 })) {
+
798 instance->remove_needs(sub);
+
799 }
+
800 }
+
801
+
802 instance->required(reqired);
+
803 }
+
804
+
805 void Config::disabled(CLI::App* instance, bool disabled) {
+
806 if (disabled) {
+
807 app->remove_needs(instance);
+
808
+
809 for (const auto& sub : instance->get_subcommands([](CLI::App* sc) -> bool {
+
810 return !sc->get_disabled();
+
811 })) {
+
812 sub->disabled();
+
813
+
814 if (sub->get_required()) {
+
815 instance->remove_needs(sub);
+
816 }
+
817 }
+
818 } else {
+
819 app->needs(instance);
+
820
+
821 for (const auto& sub : instance->get_subcommands([](CLI::App* sc) -> bool {
+
822 return sc->get_disabled();
+
823 })) {
+
824 sub->disabled(false);
+
825
+
826 if (sub->get_required()) {
+
827 instance->needs(sub);
+
828 }
+
829 }
+
830 }
+
831
+
832 instance->required(!disabled);
+
833 }
+
834
+
835 bool Config::remove_instance(CLI::App* instance) {
+
836 Config::required(instance, false);
+
837
+
838 return app->remove_subcommand(instance);
+
839 }
+
840
+
841 CLI::Option* Config::add_string_option(const std::string& name, const std::string& description, const std::string& typeName) {
+
842 applicationOptions[name] = app //
+
843 ->add_option(name, description)
+
844 ->take_last()
+
845 ->type_name(typeName)
+
846 ->configurable()
+
847 ->required()
+
848 ->group("Application Options");
+
849
+
850 app->needs(applicationOptions[name]);
+
851
+
852 return applicationOptions[name];
+
853 }
+
854
+
855 CLI::Option*
+
856 Config::add_string_option(const std::string& name, const std::string& description, const std::string& typeName, bool configurable) {
+
857 add_string_option(name, description, typeName);
+
858 return applicationOptions[name] //
+
859 ->configurable(configurable);
+
860 }
+
861
+
862 CLI::Option* Config::add_string_option(const std::string& name,
+
863 const std::string& description,
+
864 const std::string& typeName,
+
865 const std::string& defaultValue) {
+
866 add_string_option(name, description, typeName);
+
867
+
868 applicationOptions[name] //
+
869 ->required(false)
+
870 ->default_val(defaultValue);
+
871
+
872 app->remove_needs(applicationOptions[name]);
+
873
+
874 return applicationOptions[name];
+
875 }
+
876
+
877 CLI::Option* Config::add_string_option(const std::string& name,
+
878 const std::string& description,
+
879 const std::string& typeName,
+
880 const std::string& defaultValue,
+
881 bool configurable) {
+
882 add_string_option(name, description, typeName, defaultValue);
+
883 return applicationOptions[name] //
+
884 ->configurable(configurable);
+
885 }
+
886
+
887 CLI::Option* Config::add_string_option(const std::string& name,
+
888 const std::string& description,
+
889 const std::string& typeName,
+
890 const char* defaultValue) {
+
891 return add_string_option(name, description, typeName, std::string(defaultValue));
+
892 }
+
893
+ +
895 const std::string& name, const std::string& description, const std::string& typeName, const char* defaultValue, bool configurable) {
+
896 return add_string_option(name, description, typeName, std::string(defaultValue), configurable);
+
897 }
+
898
+
899 std::string Config::get_string_option_value(const std::string& name) {
+
900 if (app->get_option(name) == nullptr) {
+
901 throw CLI::OptionNotFound(name);
+
902 }
+
903
+
904 return (*app)[name]->as<std::string>();
+
905 }
+
906
+
907 void Config::add_flag(const std::string& name,
+
908 bool& variable,
+
909 const std::string& description,
+
910 bool required,
+
911 bool configurable,
+
912 const std::string& groupName) {
+
913 app->add_flag(name, variable, description) //
+
914 ->required(required) //
+
915 ->configurable(configurable) //
+
916 ->group(groupName);
+
917 }
+
918
+
919 std::string Config::getApplicationName() {
+
920 return applicationName;
+
921 }
+
922
+ +
924 return logLevelOpt->as<int>();
+
925 }
+
926
+ +
928 return verboseLevelOpt->as<int>();
+
929 }
+
930
+
931 int Config::argc = 0;
+
932 char** Config::argv = nullptr;
+
933
+
934 std::string Config::applicationName;
+
935
+
936 std::string Config::configDirectory;
+
937 std::string Config::logDirectory;
+
938 std::string Config::pidDirectory;
+
939
+
940 CLI::Option* Config::daemonizeOpt = nullptr;
+
941 CLI::Option* Config::logFileOpt = nullptr;
+
942 CLI::Option* Config::userNameOpt = nullptr;
+
943 CLI::Option* Config::groupNameOpt = nullptr;
+
944 CLI::Option* Config::enforceLogFileOpt = nullptr;
+
945 CLI::Option* Config::logLevelOpt = nullptr;
+
946 CLI::Option* Config::verboseLevelOpt = nullptr;
+
947 CLI::Option* Config::quietOpt = nullptr;
+
948
+
949 std::map<std::string, std::string> Config::aliases;
+
950 std::map<std::string, CLI::Option*> Config::applicationOptions;
+
951
+
952} // namespace utils
#define XSTR(s)
#define STR(s)
@@ -1074,45 +1075,45 @@
static void init()
Definition Logger.cpp:32
static void setQuiet(bool quiet=true)
Definition Logger.cpp:114
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const char *defaultValue)
Definition Config.cpp:886
-
static std::string get_string_option_value(const std::string &name)
Definition Config.cpp:898
-
static CLI::App * add_standard_flags(CLI::App *app)
Definition Config.cpp:685
-
static bool parse1()
Definition Config.cpp:369
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const char *defaultValue)
Definition Config.cpp:887
+
static std::string get_string_option_value(const std::string &name)
Definition Config.cpp:899
+
static CLI::App * add_standard_flags(CLI::App *app)
Definition Config.cpp:686
+
static bool parse1()
Definition Config.cpp:370
static char ** argv
Definition Config.h:107
-
static CLI::App * add_instance(const std::string &name, const std::string &description, const std::string &group)
Definition Config.cpp:658
+
static CLI::App * add_instance(const std::string &name, const std::string &description, const std::string &group)
Definition Config.cpp:659
static CLI::Option * logLevelOpt
Definition Config.h:120
-
static void disabled(CLI::App *instance, bool disabled=true)
Definition Config.cpp:804
+
static void disabled(CLI::App *instance, bool disabled=true)
Definition Config.cpp:805
static std::map< std::string, CLI::Option * > applicationOptions
Definition Config.h:125
-
static int getVerboseLevel()
Definition Config.cpp:926
-
static bool parse2()
Definition Config.cpp:530
+
static int getVerboseLevel()
Definition Config.cpp:927
+
static bool parse2()
Definition Config.cpp:531
static std::string configDirectory
Definition Config.h:111
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName)
Definition Config.cpp:840
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName)
Definition Config.cpp:841
static std::shared_ptr< CLI::App > app
Definition Config.h:103
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const std::string &defaultValue)
Definition Config.cpp:861
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const std::string &defaultValue)
Definition Config.cpp:862
static CLI::Option * groupNameOpt
Definition Config.h:118
-
static bool remove_instance(CLI::App *instance)
Definition Config.cpp:834
-
static CLI::App * add_help_flags(CLI::App *app)
Definition Config.cpp:733
+
static bool remove_instance(CLI::App *instance)
Definition Config.cpp:835
+
static CLI::App * add_help_flags(CLI::App *app)
Definition Config.cpp:734
static CLI::Option * verboseLevelOpt
Definition Config.h:121
-
static void add_flag(const std::string &name, bool &variable, const std::string &description, bool required, bool configurable=true, const std::string &groupName="Application Options")
Definition Config.cpp:906
+
static void add_flag(const std::string &name, bool &variable, const std::string &description, bool required, bool configurable=true, const std::string &groupName="Application Options")
Definition Config.cpp:907
static CLI::Option * quietOpt
Definition Config.h:122
static bool init(int argc, char *argv[])
Definition Config.cpp:104
static int argc
Definition Config.h:106
static std::string pidDirectory
Definition Config.h:113
static std::shared_ptr< CLI::Formatter > sectionFormatter
Definition Config.h:104
static std::map< std::string, std::string > aliases
Definition Config.h:124
-
static std::string getApplicationName()
Definition Config.cpp:918
-
static void required(CLI::App *instance, bool reqired=true)
Definition Config.cpp:782
+
static std::string getApplicationName()
Definition Config.cpp:919
+
static void required(CLI::App *instance, bool reqired=true)
Definition Config.cpp:783
static CLI::Option * logFileOpt
Definition Config.h:116
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const char *defaultValue, bool configurable)
Definition Config.cpp:893
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const char *defaultValue, bool configurable)
Definition Config.cpp:894
static CLI::Option * enforceLogFileOpt
Definition Config.h:119
-
static bool bootstrap()
Definition Config.cpp:339
-
static int getLogLevel()
Definition Config.cpp:922
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const std::string &defaultValue, bool configurable)
Definition Config.cpp:876
+
static bool bootstrap()
Definition Config.cpp:340
+
static int getLogLevel()
Definition Config.cpp:923
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const std::string &defaultValue, bool configurable)
Definition Config.cpp:877
static std::string applicationName
Definition Config.h:109
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, bool configurable)
Definition Config.cpp:855
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, bool configurable)
Definition Config.cpp:856
static std::string logDirectory
Definition Config.h:112
-
static void terminate()
Definition Config.cpp:620
-
static CLI::App * add_help_flag(CLI::App *app)
Definition Config.cpp:759
+
static void terminate()
Definition Config.cpp:621
+
static CLI::App * add_help_flag(CLI::App *app)
Definition Config.cpp:760
static CLI::Option * userNameOpt
Definition Config.h:117
static CLI::Option * daemonizeOpt
Definition Config.h:115
@@ -1132,20 +1133,20 @@ -
static std::string createCommandLineTemplate(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:508
-
static void createCommandLineTemplate(std::stringstream &out, CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:493
-
static void createCommandLineOptions(std::stringstream &out, CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:405
+
static std::string createCommandLineTemplate(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:509
+
static void createCommandLineTemplate(std::stringstream &out, CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:494
+
static void createCommandLineOptions(std::stringstream &out, CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:406
static std::shared_ptr< CLI::App > makeApp()
Definition Config.cpp:70
-
static std::string createCommandLineOptions(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:463
-
static std::shared_ptr< CLI::HelpFormatter > makeSectionFormatter()
Definition Config.cpp:639
-
static std::string createCommandLineSubcommands(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:478
+
static std::string createCommandLineOptions(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:464
+
static std::shared_ptr< CLI::HelpFormatter > makeSectionFormatter()
Definition Config.cpp:640
+
static std::string createCommandLineSubcommands(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:479
diff --git a/html/Config_8h.html b/html/Config_8h.html index 32a7731eca..f7fd44b1b4 100644 --- a/html/Config_8h.html +++ b/html/Config_8h.html @@ -119,7 +119,7 @@ diff --git a/html/Config_8h_source.html b/html/Config_8h_source.html index 41f7883d78..fcfd9ad1e8 100644 --- a/html/Config_8h_source.html +++ b/html/Config_8h_source.html @@ -253,49 +253,49 @@
static void init()
Definition Logger.cpp:32
static void setQuiet(bool quiet=true)
Definition Logger.cpp:114
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const char *defaultValue)
Definition Config.cpp:886
-
static std::string get_string_option_value(const std::string &name)
Definition Config.cpp:898
-
static CLI::App * add_standard_flags(CLI::App *app)
Definition Config.cpp:685
-
static bool parse1()
Definition Config.cpp:369
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const char *defaultValue)
Definition Config.cpp:887
+
static std::string get_string_option_value(const std::string &name)
Definition Config.cpp:899
+
static CLI::App * add_standard_flags(CLI::App *app)
Definition Config.cpp:686
+
static bool parse1()
Definition Config.cpp:370
Config(const Config &)=delete
static char ** argv
Definition Config.h:107
-
static CLI::App * add_instance(const std::string &name, const std::string &description, const std::string &group)
Definition Config.cpp:658
+
static CLI::App * add_instance(const std::string &name, const std::string &description, const std::string &group)
Definition Config.cpp:659
static CLI::Option * logLevelOpt
Definition Config.h:120
-
static void disabled(CLI::App *instance, bool disabled=true)
Definition Config.cpp:804
+
static void disabled(CLI::App *instance, bool disabled=true)
Definition Config.cpp:805
static std::map< std::string, CLI::Option * > applicationOptions
Definition Config.h:125
-
static int getVerboseLevel()
Definition Config.cpp:926
-
static bool parse2()
Definition Config.cpp:530
+
static int getVerboseLevel()
Definition Config.cpp:927
+
static bool parse2()
Definition Config.cpp:531
static std::string configDirectory
Definition Config.h:111
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName)
Definition Config.cpp:840
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName)
Definition Config.cpp:841
static std::shared_ptr< CLI::App > app
Definition Config.h:103
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const std::string &defaultValue)
Definition Config.cpp:861
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const std::string &defaultValue)
Definition Config.cpp:862
~Config()=delete
static CLI::Option * groupNameOpt
Definition Config.h:118
-
static bool remove_instance(CLI::App *instance)
Definition Config.cpp:834
-
static CLI::App * add_help_flags(CLI::App *app)
Definition Config.cpp:733
+
static bool remove_instance(CLI::App *instance)
Definition Config.cpp:835
+
static CLI::App * add_help_flags(CLI::App *app)
Definition Config.cpp:734
static CLI::Option * verboseLevelOpt
Definition Config.h:121
-
static void add_flag(const std::string &name, bool &variable, const std::string &description, bool required, bool configurable=true, const std::string &groupName="Application Options")
Definition Config.cpp:906
+
static void add_flag(const std::string &name, bool &variable, const std::string &description, bool required, bool configurable=true, const std::string &groupName="Application Options")
Definition Config.cpp:907
static CLI::Option * quietOpt
Definition Config.h:122
static bool init(int argc, char *argv[])
Definition Config.cpp:104
static int argc
Definition Config.h:106
static std::string pidDirectory
Definition Config.h:113
static std::shared_ptr< CLI::Formatter > sectionFormatter
Definition Config.h:104
static std::map< std::string, std::string > aliases
Definition Config.h:124
-
static std::string getApplicationName()
Definition Config.cpp:918
+
static std::string getApplicationName()
Definition Config.cpp:919
Config & operator=(const Config &)=delete
-
static void required(CLI::App *instance, bool reqired=true)
Definition Config.cpp:782
+
static void required(CLI::App *instance, bool reqired=true)
Definition Config.cpp:783
static CLI::Option * logFileOpt
Definition Config.h:116
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const char *defaultValue, bool configurable)
Definition Config.cpp:893
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const char *defaultValue, bool configurable)
Definition Config.cpp:894
Config()=delete
static CLI::Option * enforceLogFileOpt
Definition Config.h:119
-
static bool bootstrap()
Definition Config.cpp:339
-
static int getLogLevel()
Definition Config.cpp:922
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const std::string &defaultValue, bool configurable)
Definition Config.cpp:876
+
static bool bootstrap()
Definition Config.cpp:340
+
static int getLogLevel()
Definition Config.cpp:923
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const std::string &defaultValue, bool configurable)
Definition Config.cpp:877
static std::string applicationName
Definition Config.h:109
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, bool configurable)
Definition Config.cpp:855
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, bool configurable)
Definition Config.cpp:856
static std::string logDirectory
Definition Config.h:112
-
static void terminate()
Definition Config.cpp:620
-
static CLI::App * add_help_flag(CLI::App *app)
Definition Config.cpp:759
+
static void terminate()
Definition Config.cpp:621
+
static CLI::App * add_help_flag(CLI::App *app)
Definition Config.cpp:760
static CLI::Option * userNameOpt
Definition Config.h:117
static CLI::Option * daemonizeOpt
Definition Config.h:115
@@ -315,20 +315,20 @@ -
static std::string createCommandLineTemplate(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:508
-
static void createCommandLineTemplate(std::stringstream &out, CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:493
-
static void createCommandLineOptions(std::stringstream &out, CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:405
+
static std::string createCommandLineTemplate(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:509
+
static void createCommandLineTemplate(std::stringstream &out, CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:494
+
static void createCommandLineOptions(std::stringstream &out, CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:406
static std::shared_ptr< CLI::App > makeApp()
Definition Config.cpp:70
-
static std::string createCommandLineOptions(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:463
-
static std::shared_ptr< CLI::HelpFormatter > makeSectionFormatter()
Definition Config.cpp:639
-
static std::string createCommandLineSubcommands(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:478
+
static std::string createCommandLineOptions(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:464
+
static std::shared_ptr< CLI::HelpFormatter > makeSectionFormatter()
Definition Config.cpp:640
+
static std::string createCommandLineSubcommands(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:479
diff --git a/html/ConnectEventReceiver_8cpp.html b/html/ConnectEventReceiver_8cpp.html index e88cfed72e..a1bde54523 100644 --- a/html/ConnectEventReceiver_8cpp.html +++ b/html/ConnectEventReceiver_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/ConnectEventReceiver_8cpp_source.html b/html/ConnectEventReceiver_8cpp_source.html index 3020a1c2f1..f0eaf1ca5b 100644 --- a/html/ConnectEventReceiver_8cpp_source.html +++ b/html/ConnectEventReceiver_8cpp_source.html @@ -129,7 +129,7 @@
30
31 ConnectEventReceiver::ConnectEventReceiver(const std::string& name, const utils::Timeval& timeout)
-
33 name + " connect",
+
33 name + " Connect",
35 timeout) {
36 }
@@ -151,9 +151,9 @@
52 }
53
54} // namespace core::eventreceiver
- -
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
- + +
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
+
EventMultiplexer & getEventMultiplexer()
Definition EventLoop.cpp:69
static EventLoop & instance()
Definition EventLoop.cpp:59
@@ -178,7 +178,7 @@ diff --git a/html/ConnectEventReceiver_8h.html b/html/ConnectEventReceiver_8h.html index ac3a7b55d3..f96cb44864 100644 --- a/html/ConnectEventReceiver_8h.html +++ b/html/ConnectEventReceiver_8h.html @@ -127,7 +127,7 @@ diff --git a/html/ConnectEventReceiver_8h_source.html b/html/ConnectEventReceiver_8h_source.html index 28ce66c989..c4ce638b16 100644 --- a/html/ConnectEventReceiver_8h_source.html +++ b/html/ConnectEventReceiver_8h_source.html @@ -147,9 +147,9 @@
48} // namespace core::eventreceiver
49
50#endif // CORE_EVENTRECEIVER_CONNECTEVENTRECEIVER_H
- -
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
- + +
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
+
EventMultiplexer & getEventMultiplexer()
Definition EventLoop.cpp:69
static EventLoop & instance()
Definition EventLoop.cpp:59
@@ -174,7 +174,7 @@ diff --git a/html/ConnectionState_8h.html b/html/ConnectionState_8h.html index b920eed1d0..3a3b2d27ba 100644 --- a/html/ConnectionState_8h.html +++ b/html/ConnectionState_8h.html @@ -124,7 +124,7 @@ diff --git a/html/ConnectionState_8h_source.html b/html/ConnectionState_8h_source.html index fb5b2be32e..715c6c37b8 100644 --- a/html/ConnectionState_8h_source.html +++ b/html/ConnectionState_8h_source.html @@ -175,7 +175,7 @@ diff --git a/html/ContentDecoder_8cpp.html b/html/ContentDecoder_8cpp.html index dc66ed1149..824e23f5d5 100644 --- a/html/ContentDecoder_8cpp.html +++ b/html/ContentDecoder_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/ContentDecoder_8cpp_source.html b/html/ContentDecoder_8cpp_source.html index 96832ad869..6506440a4d 100644 --- a/html/ContentDecoder_8cpp_source.html +++ b/html/ContentDecoder_8cpp_source.html @@ -156,7 +156,7 @@ diff --git a/html/ContentDecoder_8h.html b/html/ContentDecoder_8h.html index a9e297e21e..f5f528fe7f 100644 --- a/html/ContentDecoder_8h.html +++ b/html/ContentDecoder_8h.html @@ -121,7 +121,7 @@ diff --git a/html/ContentDecoder_8h_source.html b/html/ContentDecoder_8h_source.html index bd6707ea17..a41e9d5142 100644 --- a/html/ContentDecoder_8h_source.html +++ b/html/ContentDecoder_8h_source.html @@ -249,7 +249,7 @@ diff --git a/html/ControlPacketDeserializer_8cpp.html b/html/ControlPacketDeserializer_8cpp.html index 30e0b473e5..019f3eac5c 100644 --- a/html/ControlPacketDeserializer_8cpp.html +++ b/html/ControlPacketDeserializer_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/ControlPacketDeserializer_8cpp_source.html b/html/ControlPacketDeserializer_8cpp_source.html index 5cb1b8225d..5a47ea899c 100644 --- a/html/ControlPacketDeserializer_8cpp_source.html +++ b/html/ControlPacketDeserializer_8cpp_source.html @@ -178,7 +178,7 @@ diff --git a/html/ControlPacketDeserializer_8h.html b/html/ControlPacketDeserializer_8h.html index 7cb6c6ae01..7bb851e6e4 100644 --- a/html/ControlPacketDeserializer_8h.html +++ b/html/ControlPacketDeserializer_8h.html @@ -121,7 +121,7 @@ diff --git a/html/ControlPacketDeserializer_8h_source.html b/html/ControlPacketDeserializer_8h_source.html index 93b75f7aa7..0cefa4400b 100644 --- a/html/ControlPacketDeserializer_8h_source.html +++ b/html/ControlPacketDeserializer_8h_source.html @@ -211,7 +211,7 @@ diff --git a/html/ControlPacketFactory_8cpp.html b/html/ControlPacketFactory_8cpp.html index 7fd08c7fd1..ab8aa483ac 100644 --- a/html/ControlPacketFactory_8cpp.html +++ b/html/ControlPacketFactory_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/ControlPacketFactory_8cpp_source.html b/html/ControlPacketFactory_8cpp_source.html index b9fe337753..833ec8d01b 100644 --- a/html/ControlPacketFactory_8cpp_source.html +++ b/html/ControlPacketFactory_8cpp_source.html @@ -246,7 +246,7 @@ diff --git a/html/ControlPacketFactory_8h.html b/html/ControlPacketFactory_8h.html index 1c8309b7e7..1d7db0ddc4 100644 --- a/html/ControlPacketFactory_8h.html +++ b/html/ControlPacketFactory_8h.html @@ -133,7 +133,7 @@ diff --git a/html/ControlPacketFactory_8h_source.html b/html/ControlPacketFactory_8h_source.html index 7336b5b1db..6ff8868e7a 100644 --- a/html/ControlPacketFactory_8h_source.html +++ b/html/ControlPacketFactory_8h_source.html @@ -208,7 +208,7 @@ diff --git a/html/Controller_8cpp.html b/html/Controller_8cpp.html index 9701bfbc0c..7dd51df1a9 100644 --- a/html/Controller_8cpp.html +++ b/html/Controller_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/Controller_8cpp_source.html b/html/Controller_8cpp_source.html index 03760f652d..32f190b948 100644 --- a/html/Controller_8cpp_source.html +++ b/html/Controller_8cpp_source.html @@ -281,7 +281,7 @@ diff --git a/html/Controller_8h.html b/html/Controller_8h.html index 28151ab828..57125c3cba 100644 --- a/html/Controller_8h.html +++ b/html/Controller_8h.html @@ -125,7 +125,7 @@ diff --git a/html/Controller_8h_source.html b/html/Controller_8h_source.html index 0971bf8f49..c4e7ffcde5 100644 --- a/html/Controller_8h_source.html +++ b/html/Controller_8h_source.html @@ -226,7 +226,7 @@ diff --git a/html/CookieOptions_8h.html b/html/CookieOptions_8h.html index 8065b394a4..cf747bd4a0 100644 --- a/html/CookieOptions_8h.html +++ b/html/CookieOptions_8h.html @@ -121,7 +121,7 @@ diff --git a/html/CookieOptions_8h_source.html b/html/CookieOptions_8h_source.html index 973a483129..9eeb0e170a 100644 --- a/html/CookieOptions_8h_source.html +++ b/html/CookieOptions_8h_source.html @@ -208,7 +208,7 @@ diff --git a/html/Daemon_8cpp.html b/html/Daemon_8cpp.html index 74c0034920..20c57ef202 100644 --- a/html/Daemon_8cpp.html +++ b/html/Daemon_8cpp.html @@ -114,7 +114,7 @@ diff --git a/html/Daemon_8cpp_source.html b/html/Daemon_8cpp_source.html index 5d14f5d666..62975590c1 100644 --- a/html/Daemon_8cpp_source.html +++ b/html/Daemon_8cpp_source.html @@ -315,7 +315,7 @@ diff --git a/html/Daemon_8h.html b/html/Daemon_8h.html index b662d82691..d0579318e0 100644 --- a/html/Daemon_8h.html +++ b/html/Daemon_8h.html @@ -125,7 +125,7 @@ diff --git a/html/Daemon_8h_source.html b/html/Daemon_8h_source.html index 52fcba8be0..a2d916d5fe 100644 --- a/html/Daemon_8h_source.html +++ b/html/Daemon_8h_source.html @@ -195,49 +195,49 @@
static void init()
Definition Logger.cpp:32
static void setQuiet(bool quiet=true)
Definition Logger.cpp:114
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const char *defaultValue)
Definition Config.cpp:886
-
static std::string get_string_option_value(const std::string &name)
Definition Config.cpp:898
-
static CLI::App * add_standard_flags(CLI::App *app)
Definition Config.cpp:685
-
static bool parse1()
Definition Config.cpp:369
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const char *defaultValue)
Definition Config.cpp:887
+
static std::string get_string_option_value(const std::string &name)
Definition Config.cpp:899
+
static CLI::App * add_standard_flags(CLI::App *app)
Definition Config.cpp:686
+
static bool parse1()
Definition Config.cpp:370
Config(const Config &)=delete
static char ** argv
Definition Config.h:107
-
static CLI::App * add_instance(const std::string &name, const std::string &description, const std::string &group)
Definition Config.cpp:658
+
static CLI::App * add_instance(const std::string &name, const std::string &description, const std::string &group)
Definition Config.cpp:659
static CLI::Option * logLevelOpt
Definition Config.h:120
-
static void disabled(CLI::App *instance, bool disabled=true)
Definition Config.cpp:804
+
static void disabled(CLI::App *instance, bool disabled=true)
Definition Config.cpp:805
static std::map< std::string, CLI::Option * > applicationOptions
Definition Config.h:125
-
static int getVerboseLevel()
Definition Config.cpp:926
-
static bool parse2()
Definition Config.cpp:530
+
static int getVerboseLevel()
Definition Config.cpp:927
+
static bool parse2()
Definition Config.cpp:531
static std::string configDirectory
Definition Config.h:111
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName)
Definition Config.cpp:840
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName)
Definition Config.cpp:841
static std::shared_ptr< CLI::App > app
Definition Config.h:103
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const std::string &defaultValue)
Definition Config.cpp:861
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const std::string &defaultValue)
Definition Config.cpp:862
~Config()=delete
static CLI::Option * groupNameOpt
Definition Config.h:118
-
static bool remove_instance(CLI::App *instance)
Definition Config.cpp:834
-
static CLI::App * add_help_flags(CLI::App *app)
Definition Config.cpp:733
+
static bool remove_instance(CLI::App *instance)
Definition Config.cpp:835
+
static CLI::App * add_help_flags(CLI::App *app)
Definition Config.cpp:734
static CLI::Option * verboseLevelOpt
Definition Config.h:121
-
static void add_flag(const std::string &name, bool &variable, const std::string &description, bool required, bool configurable=true, const std::string &groupName="Application Options")
Definition Config.cpp:906
+
static void add_flag(const std::string &name, bool &variable, const std::string &description, bool required, bool configurable=true, const std::string &groupName="Application Options")
Definition Config.cpp:907
static CLI::Option * quietOpt
Definition Config.h:122
static bool init(int argc, char *argv[])
Definition Config.cpp:104
static int argc
Definition Config.h:106
static std::string pidDirectory
Definition Config.h:113
static std::shared_ptr< CLI::Formatter > sectionFormatter
Definition Config.h:104
static std::map< std::string, std::string > aliases
Definition Config.h:124
-
static std::string getApplicationName()
Definition Config.cpp:918
+
static std::string getApplicationName()
Definition Config.cpp:919
Config & operator=(const Config &)=delete
-
static void required(CLI::App *instance, bool reqired=true)
Definition Config.cpp:782
+
static void required(CLI::App *instance, bool reqired=true)
Definition Config.cpp:783
static CLI::Option * logFileOpt
Definition Config.h:116
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const char *defaultValue, bool configurable)
Definition Config.cpp:893
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const char *defaultValue, bool configurable)
Definition Config.cpp:894
Config()=delete
static CLI::Option * enforceLogFileOpt
Definition Config.h:119
-
static bool bootstrap()
Definition Config.cpp:339
-
static int getLogLevel()
Definition Config.cpp:922
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const std::string &defaultValue, bool configurable)
Definition Config.cpp:876
+
static bool bootstrap()
Definition Config.cpp:340
+
static int getLogLevel()
Definition Config.cpp:923
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const std::string &defaultValue, bool configurable)
Definition Config.cpp:877
static std::string applicationName
Definition Config.h:109
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, bool configurable)
Definition Config.cpp:855
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, bool configurable)
Definition Config.cpp:856
static std::string logDirectory
Definition Config.h:112
-
static void terminate()
Definition Config.cpp:620
-
static CLI::App * add_help_flag(CLI::App *app)
Definition Config.cpp:759
+
static void terminate()
Definition Config.cpp:621
+
static CLI::App * add_help_flag(CLI::App *app)
Definition Config.cpp:760
static CLI::Option * userNameOpt
Definition Config.h:117
static CLI::Option * daemonizeOpt
Definition Config.h:115
@@ -266,20 +266,20 @@ -
static std::string createCommandLineTemplate(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:508
-
static void createCommandLineTemplate(std::stringstream &out, CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:493
-
static void createCommandLineOptions(std::stringstream &out, CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:405
+
static std::string createCommandLineTemplate(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:509
+
static void createCommandLineTemplate(std::stringstream &out, CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:494
+
static void createCommandLineOptions(std::stringstream &out, CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:406
static std::shared_ptr< CLI::App > makeApp()
Definition Config.cpp:70
-
static std::string createCommandLineOptions(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:463
-
static std::shared_ptr< CLI::HelpFormatter > makeSectionFormatter()
Definition Config.cpp:639
-
static std::string createCommandLineSubcommands(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:478
+
static std::string createCommandLineOptions(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:464
+
static std::shared_ptr< CLI::HelpFormatter > makeSectionFormatter()
Definition Config.cpp:640
+
static std::string createCommandLineSubcommands(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:479
diff --git a/html/DescriptorEventPublisher_8cpp.html b/html/DescriptorEventPublisher_8cpp.html index 09b98e7bbf..2b6d19ddfa 100644 --- a/html/DescriptorEventPublisher_8cpp.html +++ b/html/DescriptorEventPublisher_8cpp.html @@ -115,7 +115,7 @@ diff --git a/html/DescriptorEventPublisher_8cpp_source.html b/html/DescriptorEventPublisher_8cpp_source.html index 2f875cf73b..016aa44380 100644 --- a/html/DescriptorEventPublisher_8cpp_source.html +++ b/html/DescriptorEventPublisher_8cpp_source.html @@ -270,29 +270,29 @@
void resume(DescriptorEventReceiver *descriptorEventReceiver)
- - - -
void triggered(const utils::Timeval &currentTime)
- -
void setEnabled(const utils::Timeval &currentTime)
- -
void checkTimeout(const utils::Timeval &currentTime)
-
utils::Timeval getTimeout(const utils::Timeval &currentTime) const
+ + + +
void triggered(const utils::Timeval &currentTime)
+ +
void setEnabled(const utils::Timeval &currentTime)
+ +
void checkTimeout(const utils::Timeval &currentTime)
+
utils::Timeval getTimeout(const utils::Timeval &currentTime) const
static Timeval currentTime()
Definition Timeval.cpp:54
Timeval & operator=(const Timeval &timeVal)
Definition Timeval.cpp:61
- - + + diff --git a/html/DescriptorEventPublisher_8h.html b/html/DescriptorEventPublisher_8h.html index 6cd744f81b..98763b8ff3 100644 --- a/html/DescriptorEventPublisher_8h.html +++ b/html/DescriptorEventPublisher_8h.html @@ -121,7 +121,7 @@ diff --git a/html/DescriptorEventPublisher_8h_source.html b/html/DescriptorEventPublisher_8h_source.html index b3d42ec399..44edfd1c27 100644 --- a/html/DescriptorEventPublisher_8h_source.html +++ b/html/DescriptorEventPublisher_8h_source.html @@ -215,29 +215,29 @@
void resume(DescriptorEventReceiver *descriptorEventReceiver)
- - - -
void triggered(const utils::Timeval &currentTime)
- -
void setEnabled(const utils::Timeval &currentTime)
- -
void checkTimeout(const utils::Timeval &currentTime)
-
utils::Timeval getTimeout(const utils::Timeval &currentTime) const
+ + + +
void triggered(const utils::Timeval &currentTime)
+ +
void setEnabled(const utils::Timeval &currentTime)
+ +
void checkTimeout(const utils::Timeval &currentTime)
+
utils::Timeval getTimeout(const utils::Timeval &currentTime) const
static Timeval currentTime()
Definition Timeval.cpp:54
Timeval & operator=(const Timeval &timeVal)
Definition Timeval.cpp:61
- - + + diff --git a/html/DescriptorEventReceiver_8cpp.html b/html/DescriptorEventReceiver_8cpp.html index edc0323d69..455c35be85 100644 --- a/html/DescriptorEventReceiver_8cpp.html +++ b/html/DescriptorEventReceiver_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/DescriptorEventReceiver_8cpp_source.html b/html/DescriptorEventReceiver_8cpp_source.html index 51bc51fba6..fb2310adfb 100644 --- a/html/DescriptorEventReceiver_8cpp_source.html +++ b/html/DescriptorEventReceiver_8cpp_source.html @@ -131,192 +131,188 @@
32
33namespace core {
34
-
35 Observer::Observer([[maybe_unused]] const Observer& observer) { // Do not copy observationCounter
+
36 }
37
- -
39 }
-
40
- - -
43 }
+ + +
40 }
+
41
+ +
44
- - -
47
-
48 if (observationCounter == 0) {
- -
50 }
-
51 }
-
52
- - -
55 const utils::Timeval DescriptorEventReceiver::TIMEOUT::MAX = {LONG_MAX, 0};
-
56
- -
58 DescriptorEventPublisher& descriptorEventPublisher,
-
59 const utils::Timeval& timeout)
-
60 : EventReceiver(name)
-
61 , descriptorEventPublisher(descriptorEventPublisher)
-
62 , maxInactivity(timeout)
-
63 , initialTimeout(timeout) {
-
64 }
-
65
- -
67 return observedFd;
-
68 }
-
69
- - -
72 if (!enabled) {
-
73 observedFd = fd;
-
74
-
75 enabled = true;
- -
77 } else {
-
78 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
-
79 }
-
80 } else {
-
81 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
-
82 }
+
45 if (observationCounter == 0) {
+ +
47 }
+
48 }
+
49
+ + +
52 const utils::Timeval DescriptorEventReceiver::TIMEOUT::MAX = {LONG_MAX, 0};
+
53
+ +
55 DescriptorEventPublisher& descriptorEventPublisher,
+
56 const utils::Timeval& timeout)
+
57 : EventReceiver(name)
+
58 , descriptorEventPublisher(descriptorEventPublisher)
+
59 , maxInactivity(timeout)
+
60 , initialTimeout(timeout) {
+
61 }
+
62
+ +
64 return observedFd;
+
65 }
+
66
+ + +
69 if (!enabled) {
+
70 observedFd = fd;
+
71
+
72 enabled = true;
+ +
74 } else {
+
75 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
+
76 }
+
77 } else {
+
78 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
+
79 }
+
80
+
81 return enabled;
+
82 }
83
-
84 return enabled;
-
85 }
+
84 void DescriptorEventReceiver::setEnabled(const utils::Timeval& currentTime) {
+
85 lastTriggered = currentTime;
86
-
87 void DescriptorEventReceiver::setEnabled(const utils::Timeval& currentTime) {
-
88 lastTriggered = currentTime;
+ +
88 }
89
- -
91 }
-
92
- -
94 if (enabled) {
-
95 enabled = false;
- -
97 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
-
98 } else {
-
99 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
-
100 }
-
101 }
-
102
- - -
105 }
-
106
- -
108 return enabled;
-
109 }
-
110
- -
112 if (enabled) {
-
113 if (!suspended) {
-
114 suspended = true;
- -
116 } else {
-
117 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
-
118 }
-
119 } else {
-
120 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
-
121 }
-
122 }
-
123
- -
125 if (enabled) {
-
126 if (suspended) {
-
127 suspended = false;
- - -
130 } else {
-
131 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
-
132 }
-
133 } else {
-
134 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
-
135 }
-
136 }
-
137
- -
139 return suspended;
-
140 }
-
141
- -
143 if (timeout == TIMEOUT::DEFAULT) {
- -
145 } else {
-
146 this->maxInactivity = timeout;
-
147 }
+ +
91 if (enabled) {
+
92 enabled = false;
+ +
94 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
+
95 } else {
+
96 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
+
97 }
+
98 }
+
99
+ + +
102 }
+
103
+ +
105 return enabled;
+
106 }
+
107
+ +
109 if (enabled) {
+
110 if (!suspended) {
+
111 suspended = true;
+ +
113 } else {
+
114 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
+
115 }
+
116 } else {
+
117 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
+
118 }
+
119 }
+
120
+ +
122 if (enabled) {
+
123 if (suspended) {
+
124 suspended = false;
+ + +
127 } else {
+
128 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
+
129 }
+
130 } else {
+
131 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
+
132 }
+
133 }
+
134
+ +
136 return suspended;
+
137 }
+
138
+ +
140 if (timeout == TIMEOUT::DEFAULT) {
+ +
142 } else {
+
143 this->maxInactivity = timeout;
+
144 }
+
145
+ +
147 }
148
- -
150 }
-
151
- -
153 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
-
154 }
-
155
-
156 void DescriptorEventReceiver::onEvent(const utils::Timeval& currentTime) {
-
157 eventCounter++;
-
158 triggered(currentTime);
+ +
150 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
+
151 }
+
152
+
153 void DescriptorEventReceiver::onEvent(const utils::Timeval& currentTime) {
+
154 eventCounter++;
+
155 triggered(currentTime);
+
156
+ +
158 }
159
- -
161 }
-
162
- -
164 signalEvent(signum);
-
165 }
-
166
-
167 void DescriptorEventReceiver::triggered(const utils::Timeval& currentTime) {
-
168 lastTriggered = currentTime;
-
169 }
-
170
- -
172 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
- -
174 }
-
175 }
-
176
-
177} // namespace core
+ +
161 signalEvent(signum);
+
162 }
+
163
+
164 void DescriptorEventReceiver::triggered(const utils::Timeval& currentTime) {
+
165 lastTriggered = currentTime;
+
166 }
+
167
+ +
169 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
+ +
171 }
+
172 }
+
173
+
174} // namespace core
void disable(DescriptorEventReceiver *descriptorEventReceiver)
void enable(DescriptorEventReceiver *descriptorEventReceiver)
void suspend(DescriptorEventReceiver *descriptorEventReceiver)
void resume(DescriptorEventReceiver *descriptorEventReceiver)
- - + +
virtual void timeoutEvent()=0
- -
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
- - - - - - - -
void triggered(const utils::Timeval &currentTime)
+ +
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
+ + + + + + + +
void triggered(const utils::Timeval &currentTime)
virtual void dispatchEvent()=0
-
DescriptorEventPublisher & descriptorEventPublisher
- -
void setEnabled(const utils::Timeval &currentTime)
-
void onEvent(const utils::Timeval &currentTime) final
- -
void setTimeout(const utils::Timeval &timeout)
- - +
DescriptorEventPublisher & descriptorEventPublisher
+ +
void setEnabled(const utils::Timeval &currentTime)
+
void onEvent(const utils::Timeval &currentTime) final
+ +
void setTimeout(const utils::Timeval &timeout)
+ +
virtual void signalEvent(int signum)=0
- - -
void checkTimeout(const utils::Timeval &currentTime)
-
utils::Timeval getTimeout(const utils::Timeval &currentTime) const
- + + +
void checkTimeout(const utils::Timeval &currentTime)
+
utils::Timeval getTimeout(const utils::Timeval &currentTime) const
+
const std::string & getName() const
EventReceiver(const std::string &name)
- - - + + +
virtual void unobservedEvent()=0
-
Observer(const Observer &observer)
- +
bool operator>(const Timeval &timeVal) const
Definition Timeval.cpp:127
static Timeval currentTime()
Definition Timeval.cpp:54
@@ -330,17 +326,17 @@
State eventLoopState()
Definition State.cpp:30
- - - - + + + + diff --git a/html/DescriptorEventReceiver_8h.html b/html/DescriptorEventReceiver_8h.html index f4d45d67b2..3ef0dcf424 100644 --- a/html/DescriptorEventReceiver_8h.html +++ b/html/DescriptorEventReceiver_8h.html @@ -129,7 +129,7 @@ diff --git a/html/DescriptorEventReceiver_8h_source.html b/html/DescriptorEventReceiver_8h_source.html index df85adab3e..c1167fb86c 100644 --- a/html/DescriptorEventReceiver_8h_source.html +++ b/html/DescriptorEventReceiver_8h_source.html @@ -138,87 +138,84 @@
39 class Observer {
40 public:
41 Observer() = default;
-
42 Observer(const Observer& observer);
-
43
-
44 virtual ~Observer();
-
45
-
46 protected:
-
47 void observed();
-
48 void unObserved();
-
49
-
50 virtual void unobservedEvent() = 0;
-
51
-
52 private:
- -
54 };
-
55
- -
57 : virtual protected Observer
-
58 , public EventReceiver {
-
59 public:
- -
61
- -
63
-
64 struct TIMEOUT {
-
65 static const utils::Timeval DEFAULT;
-
66 static const utils::Timeval DISABLE;
-
67 static const utils::Timeval MAX;
-
68 };
-
69
-
70 DescriptorEventReceiver(const std::string& name,
-
71 DescriptorEventPublisher& descriptorEventPublisher,
-
72 const utils::Timeval& timeout = TIMEOUT::DISABLE);
-
73
-
74 int getRegisteredFd() const;
-
75
-
76 protected:
-
77 bool enable(int fd);
-
78 void disable();
+
42 Observer(Observer&) = delete;
+
43 Observer(Observer&&) = delete;
+
44
+
45 virtual ~Observer();
+
46
+
47 protected:
+
48 void observed();
+
49 void unObserved();
+
50
+
51 virtual void unobservedEvent() = 0;
+
52
+
53 private:
+ +
55 };
+
56
+ +
58 : virtual protected Observer
+
59 , public EventReceiver {
+
60 public:
+
61 struct TIMEOUT {
+
62 static const utils::Timeval DEFAULT;
+
63 static const utils::Timeval DISABLE;
+
64 static const utils::Timeval MAX;
+
65 };
+
66
+
67 DescriptorEventReceiver(const std::string& name,
+
68 DescriptorEventPublisher& descriptorEventPublisher,
+
69 const utils::Timeval& timeout = TIMEOUT::DISABLE);
+
70
+
71 int getRegisteredFd() const;
+
72
+
73 protected:
+
74 bool enable(int fd);
+
75 void disable();
+
76
+
77 void suspend();
+
78 void resume();
79
-
80 void suspend();
-
81 void resume();
-
82
-
83 public:
-
84 bool isEnabled() const;
-
85 bool isSuspended() const;
+
80 public:
+
81 bool isEnabled() const;
+
82 bool isSuspended() const;
+
83
+
84 void setTimeout(const utils::Timeval& timeout);
+
85 utils::Timeval getTimeout(const utils::Timeval& currentTime) const;
86
-
87 void setTimeout(const utils::Timeval& timeout);
-
88 utils::Timeval getTimeout(const utils::Timeval& currentTime) const;
-
89
-
90 void checkTimeout(const utils::Timeval& currentTime);
-
91
-
92 private:
-
93 void onEvent(const utils::Timeval& currentTime) final;
-
94 void onSignal(int signum);
-
95
-
96 void triggered(const utils::Timeval& currentTime);
-
97 void setEnabled(const utils::Timeval& currentTime);
-
98 void setDisabled();
-
99
-
100 virtual void dispatchEvent() = 0;
-
101 virtual void timeoutEvent() = 0;
-
102 virtual void signalEvent([[maybe_unused]] int signum) = 0;
-
103
- -
105
-
106 int observedFd = -1;
+
87 void checkTimeout(const utils::Timeval& currentTime);
+
88
+
89 private:
+
90 void onEvent(const utils::Timeval& currentTime) final;
+
91 void onSignal(int signum);
+
92
+
93 void triggered(const utils::Timeval& currentTime);
+
94 void setEnabled(const utils::Timeval& currentTime);
+
95 void setDisabled();
+
96
+
97 virtual void dispatchEvent() = 0;
+
98 virtual void timeoutEvent() = 0;
+
99 virtual void signalEvent([[maybe_unused]] int signum) = 0;
+
100
+ +
102
+
103 int observedFd = -1;
+
104
+
105 bool enabled = false;
+
106 bool suspended = false;
107
-
108 bool enabled = false;
-
109 bool suspended = false;
-
110
- - - -
114
- + + + +
111
+ +
113
+ +
115 };
116
- -
118 };
-
119
-
120} // namespace core
-
121
-
122#endif // CORE_DESCRIPTOREVENTRECEIVER_H
+
117} // namespace core
+
118
+
119#endif // CORE_DESCRIPTOREVENTRECEIVER_H
virtual void muxAdd(DescriptorEventReceiver *descriptorEventReceiver)=0
utils::Timeval getNextTimeout(const utils::Timeval &currentTime) const
@@ -246,61 +243,60 @@
void resume(DescriptorEventReceiver *descriptorEventReceiver)
- - + +
virtual void timeoutEvent()=0
- -
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
- - - - - - -
DescriptorEventReceiver & operator=(const DescriptorEventReceiver &)=delete
- -
void triggered(const utils::Timeval &currentTime)
+ +
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
+ + + + + + + +
void triggered(const utils::Timeval &currentTime)
virtual void dispatchEvent()=0
-
DescriptorEventPublisher & descriptorEventPublisher
- -
void setEnabled(const utils::Timeval &currentTime)
-
void onEvent(const utils::Timeval &currentTime) final
- -
void setTimeout(const utils::Timeval &timeout)
- - +
DescriptorEventPublisher & descriptorEventPublisher
+ +
void setEnabled(const utils::Timeval &currentTime)
+
void onEvent(const utils::Timeval &currentTime) final
+ +
void setTimeout(const utils::Timeval &timeout)
+ +
virtual void signalEvent(int signum)=0
- -
DescriptorEventReceiver(const DescriptorEventReceiver &)=delete
- -
void checkTimeout(const utils::Timeval &currentTime)
-
utils::Timeval getTimeout(const utils::Timeval &currentTime) const
- + + +
void checkTimeout(const utils::Timeval &currentTime)
+
utils::Timeval getTimeout(const utils::Timeval &currentTime) const
+ - - + +
Observer(Observer &&)=delete
+
Observer()=default
- +
Observer(Observer &)=delete
+
virtual void unobservedEvent()=0
-
Observer(const Observer &observer)
- +
static Timeval currentTime()
Definition Timeval.cpp:54
Timeval & operator=(const Timeval &timeVal)
Definition Timeval.cpp:61
- - - - + + + + diff --git a/html/Descriptor_8cpp.html b/html/Descriptor_8cpp.html index b175ab9871..273125b10c 100644 --- a/html/Descriptor_8cpp.html +++ b/html/Descriptor_8cpp.html @@ -114,7 +114,7 @@ diff --git a/html/Descriptor_8cpp_source.html b/html/Descriptor_8cpp_source.html index 7f9ab1ff9a..9ff998b500 100644 --- a/html/Descriptor_8cpp_source.html +++ b/html/Descriptor_8cpp_source.html @@ -177,7 +177,7 @@ diff --git a/html/Descriptor_8h.html b/html/Descriptor_8h.html index 295bedf316..bd6f49ba15 100644 --- a/html/Descriptor_8h.html +++ b/html/Descriptor_8h.html @@ -119,7 +119,7 @@ diff --git a/html/Descriptor_8h_source.html b/html/Descriptor_8h_source.html index 5e21d45bdc..0364e7e345 100644 --- a/html/Descriptor_8h_source.html +++ b/html/Descriptor_8h_source.html @@ -170,7 +170,7 @@ diff --git a/html/Dispatcher_8cpp.html b/html/Dispatcher_8cpp.html index e567db1e02..c93c586334 100644 --- a/html/Dispatcher_8cpp.html +++ b/html/Dispatcher_8cpp.html @@ -115,7 +115,7 @@ diff --git a/html/Dispatcher_8cpp_source.html b/html/Dispatcher_8cpp_source.html index e41ecc7152..363f2082fc 100644 --- a/html/Dispatcher_8cpp_source.html +++ b/html/Dispatcher_8cpp_source.html @@ -153,7 +153,7 @@ diff --git a/html/Dispatcher_8h.html b/html/Dispatcher_8h.html index 2681b2e789..ef024ccdc6 100644 --- a/html/Dispatcher_8h.html +++ b/html/Dispatcher_8h.html @@ -119,7 +119,7 @@ diff --git a/html/Dispatcher_8h_source.html b/html/Dispatcher_8h_source.html index 00e7fa87d8..b2dce2ef03 100644 --- a/html/Dispatcher_8h_source.html +++ b/html/Dispatcher_8h_source.html @@ -175,7 +175,7 @@ diff --git a/html/DynamicLoader_8cpp.html b/html/DynamicLoader_8cpp.html index 150636b396..63cf4b4774 100644 --- a/html/DynamicLoader_8cpp.html +++ b/html/DynamicLoader_8cpp.html @@ -114,7 +114,7 @@ diff --git a/html/DynamicLoader_8cpp_source.html b/html/DynamicLoader_8cpp_source.html index e913585c5d..7d223eb5b9 100644 --- a/html/DynamicLoader_8cpp_source.html +++ b/html/DynamicLoader_8cpp_source.html @@ -269,7 +269,7 @@ diff --git a/html/DynamicLoader_8h.html b/html/DynamicLoader_8h.html index d6a190ed7e..7558665757 100644 --- a/html/DynamicLoader_8h.html +++ b/html/DynamicLoader_8h.html @@ -158,7 +158,7 @@

    - +
diff --git a/html/DynamicLoader_8h_source.html b/html/DynamicLoader_8h_source.html index 32bc5f24ba..0eb5033585 100644 --- a/html/DynamicLoader_8h_source.html +++ b/html/DynamicLoader_8h_source.html @@ -197,7 +197,7 @@ diff --git a/html/EndCommand_8cpp.html b/html/EndCommand_8cpp.html index f989530da9..2582925b11 100644 --- a/html/EndCommand_8cpp.html +++ b/html/EndCommand_8cpp.html @@ -121,7 +121,7 @@ diff --git a/html/EndCommand_8cpp_source.html b/html/EndCommand_8cpp_source.html index 1881582941..464d751c7e 100644 --- a/html/EndCommand_8cpp_source.html +++ b/html/EndCommand_8cpp_source.html @@ -132,7 +132,7 @@
33
34} // namespace web::http::client::commands
- +
bool execute(Request *request) override
@@ -142,7 +142,7 @@ diff --git a/html/EndCommand_8h.html b/html/EndCommand_8h.html index 5e04473667..b3300fdb86 100644 --- a/html/EndCommand_8h.html +++ b/html/EndCommand_8h.html @@ -131,7 +131,7 @@ diff --git a/html/EndCommand_8h_source.html b/html/EndCommand_8h_source.html index 9be7d3ede1..9b8db6e99c 100644 --- a/html/EndCommand_8h_source.html +++ b/html/EndCommand_8h_source.html @@ -142,7 +142,7 @@
43#endif // WEB_HTTP_CLIENT_ENDCOMMAND_H
- + @@ -154,7 +154,7 @@ diff --git a/html/EventLoop_8cpp.html b/html/EventLoop_8cpp.html index aa60e26d45..d830ca8ff5 100644 --- a/html/EventLoop_8cpp.html +++ b/html/EventLoop_8cpp.html @@ -122,7 +122,7 @@ diff --git a/html/EventLoop_8cpp_source.html b/html/EventLoop_8cpp_source.html index bd7489e5df..7cee353e92 100644 --- a/html/EventLoop_8cpp_source.html +++ b/html/EventLoop_8cpp_source.html @@ -357,15 +357,15 @@
258 timeout -= seconds.count();
259 } while (timeout > 0 && (tickStatus == TickStatus::SUCCESS || tickStatus == TickStatus::INTERRUPTED));
260
-
261 LOG(TRACE) << "Core: Terminating all stalled DescriptorEventReceivers";
+
261 LOG(TRACE) << "Core: Terminate all stalled DescriptorEventReceivers";
262
264
-
265 LOG(TRACE) << "Core: Closing all libraries opened during runtime";
+
265 LOG(TRACE) << "Core: Close all libraries opened during runtime";
266
268
-
269 LOG(TRACE) << "Core:: Cleaning up filesystem";
+
269 LOG(TRACE) << "Core:: Clean up the filesystem";
270
272
@@ -409,8 +409,8 @@
static void setCustomFormatSpec(const char *format, const el::FormatSpecifierValueResolver &resolver)
Definition Logger.cpp:56
static bool init(int argc, char *argv[])
Definition Config.cpp:104
-
static bool bootstrap()
Definition Config.cpp:339
-
static void terminate()
Definition Config.cpp:620
+
static bool bootstrap()
Definition Config.cpp:340
+
static void terminate()
Definition Config.cpp:621
bool operator>(const Timeval &timeVal) const
Definition Timeval.cpp:127
Timeval & operator-=(const Timeval &timeVal)
Definition Timeval.cpp:108
@@ -436,7 +436,7 @@ diff --git a/html/EventLoop_8h.html b/html/EventLoop_8h.html index fd487a22a7..2f988f124c 100644 --- a/html/EventLoop_8h.html +++ b/html/EventLoop_8h.html @@ -126,7 +126,7 @@ diff --git a/html/EventLoop_8h_source.html b/html/EventLoop_8h_source.html index f6359184cd..b13cd364a9 100644 --- a/html/EventLoop_8h_source.html +++ b/html/EventLoop_8h_source.html @@ -228,7 +228,7 @@ diff --git a/html/EventMultiplexer_8cpp.html b/html/EventMultiplexer_8cpp.html index c5be77919c..b4a72ff69b 100644 --- a/html/EventMultiplexer_8cpp.html +++ b/html/EventMultiplexer_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/EventMultiplexer_8cpp_source.html b/html/EventMultiplexer_8cpp_source.html index 92bc4c2481..be3a4f01fc 100644 --- a/html/EventMultiplexer_8cpp_source.html +++ b/html/EventMultiplexer_8cpp_source.html @@ -339,7 +339,7 @@ - +
static void execDlCloseDeleyed()
@@ -399,15 +399,15 @@ - - + + diff --git a/html/EventMultiplexer_8h.html b/html/EventMultiplexer_8h.html index 7eb576b9f0..d0486c6a9c 100644 --- a/html/EventMultiplexer_8h.html +++ b/html/EventMultiplexer_8h.html @@ -179,7 +179,7 @@

    - +
diff --git a/html/EventMultiplexer_8h_source.html b/html/EventMultiplexer_8h_source.html index f6b7f8d7fd..3d042315f9 100644 --- a/html/EventMultiplexer_8h_source.html +++ b/html/EventMultiplexer_8h_source.html @@ -234,7 +234,7 @@
std::map< int, std::list< DescriptorEventReceiver * > > observedEventReceivers
- + @@ -325,7 +325,7 @@ diff --git a/html/EventReceiver_8cpp.html b/html/EventReceiver_8cpp.html index 220de9714e..8ee179050b 100644 --- a/html/EventReceiver_8cpp.html +++ b/html/EventReceiver_8cpp.html @@ -114,7 +114,7 @@ diff --git a/html/EventReceiver_8cpp_source.html b/html/EventReceiver_8cpp_source.html index 94b548081f..3c4caf2442 100644 --- a/html/EventReceiver_8cpp_source.html +++ b/html/EventReceiver_8cpp_source.html @@ -171,7 +171,7 @@
virtual void destruct()
static void atNextTick(const std::function< void(void)> &callBack)
- +
EventReceiver(const std::string &name)
void span()
Definition Event.cpp:41
@@ -187,7 +187,7 @@ diff --git a/html/EventReceiver_8h.html b/html/EventReceiver_8h.html index 878405d8e2..883c0e5bfc 100644 --- a/html/EventReceiver_8h.html +++ b/html/EventReceiver_8h.html @@ -125,7 +125,7 @@ diff --git a/html/EventReceiver_8h_source.html b/html/EventReceiver_8h_source.html index 29fcabb226..b55a86297c 100644 --- a/html/EventReceiver_8h_source.html +++ b/html/EventReceiver_8h_source.html @@ -139,28 +139,34 @@
40 public:
41 EventReceiver(const std::string& name);
42
-
43 virtual void destruct();
-
44
-
45 protected:
-
46 virtual ~EventReceiver() = default;
-
47
-
48 public:
-
49 static void atNextTick(const std::function<void(void)>& callBack);
+ + +
45
+ + +
48
+
49 virtual void destruct();
50
-
51 void span();
-
52 void relax();
+
51 protected:
+
52 virtual ~EventReceiver() = default;
53
-
54 virtual void onEvent(const utils::Timeval& currentTime) = 0;
-
55
-
56 const std::string& getName() const;
-
57
-
58 private:
- -
60 };
+
54 public:
+
55 static void atNextTick(const std::function<void(void)>& callBack);
+
56
+
57 void span();
+
58 void relax();
+
59
+
60 virtual void onEvent(const utils::Timeval& currentTime) = 0;
61
-
62} // namespace core
+
62 const std::string& getName() const;
63
-
64#endif // CORE_EVENTRECEIVER_H
+
64 private:
+ +
66 };
+
67
+
68} // namespace core
+
69
+
70#endif // CORE_EVENTRECEIVER_H
virtual void muxAdd(DescriptorEventReceiver *descriptorEventReceiver)=0
utils::Timeval getNextTimeout(const utils::Timeval &currentTime) const
@@ -188,71 +194,74 @@
void resume(DescriptorEventReceiver *descriptorEventReceiver)
- - + +
virtual void timeoutEvent()=0
- -
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
- - - - - - -
DescriptorEventReceiver & operator=(const DescriptorEventReceiver &)=delete
- -
void triggered(const utils::Timeval &currentTime)
+ +
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
+ + + + + + + +
void triggered(const utils::Timeval &currentTime)
virtual void dispatchEvent()=0
-
DescriptorEventPublisher & descriptorEventPublisher
- -
void setEnabled(const utils::Timeval &currentTime)
-
void onEvent(const utils::Timeval &currentTime) final
- -
void setTimeout(const utils::Timeval &timeout)
- - +
DescriptorEventPublisher & descriptorEventPublisher
+ +
void setEnabled(const utils::Timeval &currentTime)
+
void onEvent(const utils::Timeval &currentTime) final
+ +
void setTimeout(const utils::Timeval &timeout)
+ +
virtual void signalEvent(int signum)=0
- -
DescriptorEventReceiver(const DescriptorEventReceiver &)=delete
- -
void checkTimeout(const utils::Timeval &currentTime)
-
utils::Timeval getTimeout(const utils::Timeval &currentTime) const
- + + +
void checkTimeout(const utils::Timeval &currentTime)
+
utils::Timeval getTimeout(const utils::Timeval &currentTime) const
+
const std::string & getName() const
virtual void destruct()
static void atNextTick(const std::function< void(void)> &callBack)
virtual void onEvent(const utils::Timeval &currentTime)=0
+
EventReceiver & operator=(EventReceiver &&)=delete
virtual ~EventReceiver()=default
- + +
EventReceiver(EventReceiver &)=delete
EventReceiver(const std::string &name)
+
EventReceiver(EventReceiver &&)=delete
+
EventReceiver & operator=(EventReceiver &)=delete
- - + +
Observer(Observer &&)=delete
+
Observer()=default
- +
Observer(Observer &)=delete
+
virtual void unobservedEvent()=0
-
Observer(const Observer &observer)
- +
static Timeval currentTime()
Definition Timeval.cpp:54
Timeval & operator=(const Timeval &timeVal)
Definition Timeval.cpp:61
- - - - + + + + diff --git a/html/Event_8cpp.html b/html/Event_8cpp.html index c05cfe51dc..3b02f44824 100644 --- a/html/Event_8cpp.html +++ b/html/Event_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/Event_8cpp_source.html b/html/Event_8cpp_source.html index 4040f652a4..c7d6ac1bec 100644 --- a/html/Event_8cpp_source.html +++ b/html/Event_8cpp_source.html @@ -193,7 +193,7 @@ diff --git a/html/Event_8h.html b/html/Event_8h.html index 48b367f2fa..21ce56025b 100644 --- a/html/Event_8h.html +++ b/html/Event_8h.html @@ -119,7 +119,7 @@ diff --git a/html/Event_8h_source.html b/html/Event_8h_source.html index a947faa2e2..fceb751bc2 100644 --- a/html/Event_8h_source.html +++ b/html/Event_8h_source.html @@ -190,36 +190,34 @@
void resume(DescriptorEventReceiver *descriptorEventReceiver)
- - + +
virtual void timeoutEvent()=0
- -
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
- - - - - - -
DescriptorEventReceiver & operator=(const DescriptorEventReceiver &)=delete
- -
void triggered(const utils::Timeval &currentTime)
+ +
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
+ + + + + + + +
void triggered(const utils::Timeval &currentTime)
virtual void dispatchEvent()=0
-
DescriptorEventPublisher & descriptorEventPublisher
- -
void setEnabled(const utils::Timeval &currentTime)
-
void onEvent(const utils::Timeval &currentTime) final
- -
void setTimeout(const utils::Timeval &timeout)
- - +
DescriptorEventPublisher & descriptorEventPublisher
+ +
void setEnabled(const utils::Timeval &currentTime)
+
void onEvent(const utils::Timeval &currentTime) final
+ +
void setTimeout(const utils::Timeval &timeout)
+ +
virtual void signalEvent(int signum)=0
- -
DescriptorEventReceiver(const DescriptorEventReceiver &)=delete
- -
void checkTimeout(const utils::Timeval &currentTime)
-
utils::Timeval getTimeout(const utils::Timeval &currentTime) const
- + + +
void checkTimeout(const utils::Timeval &currentTime)
+
utils::Timeval getTimeout(const utils::Timeval &currentTime) const
+
const std::string & getName() const
@@ -227,10 +225,14 @@
static void atNextTick(const std::function< void(void)> &callBack)
virtual void onEvent(const utils::Timeval &currentTime)=0
+
EventReceiver & operator=(EventReceiver &&)=delete
virtual ~EventReceiver()=default
- + +
EventReceiver(EventReceiver &)=delete
EventReceiver(const std::string &name)
+
EventReceiver(EventReceiver &&)=delete
+
EventReceiver & operator=(EventReceiver &)=delete
bool published
Definition Event.h:61
void span()
Definition Event.cpp:41
@@ -244,29 +246,30 @@
void relax()
Definition Event.cpp:48
- - + +
Observer(Observer &&)=delete
+
Observer()=default
- +
Observer(Observer &)=delete
+
virtual void unobservedEvent()=0
-
Observer(const Observer &observer)
- +
static Timeval currentTime()
Definition Timeval.cpp:54
Timeval & operator=(const Timeval &timeVal)
Definition Timeval.cpp:61
- - - - + + + + diff --git a/html/ExceptionalConditionEventReceiver_8cpp.html b/html/ExceptionalConditionEventReceiver_8cpp.html index 66e7c89284..9321f53e6e 100644 --- a/html/ExceptionalConditionEventReceiver_8cpp.html +++ b/html/ExceptionalConditionEventReceiver_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/ExceptionalConditionEventReceiver_8cpp_source.html b/html/ExceptionalConditionEventReceiver_8cpp_source.html index 55c16cd8a9..361a90afc3 100644 --- a/html/ExceptionalConditionEventReceiver_8cpp_source.html +++ b/html/ExceptionalConditionEventReceiver_8cpp_source.html @@ -129,7 +129,7 @@
30
-
33 name + " out of band",
+
33 name + " Out of band",
35 timeout) {
36 }
@@ -151,9 +151,9 @@
52 }
53
54} // namespace core::eventreceiver
- -
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
- + +
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
+
EventMultiplexer & getEventMultiplexer()
Definition EventLoop.cpp:69
static EventLoop & instance()
Definition EventLoop.cpp:59
@@ -178,7 +178,7 @@ diff --git a/html/ExceptionalConditionEventReceiver_8h.html b/html/ExceptionalConditionEventReceiver_8h.html index 977f1c3dc7..cdd608d8dd 100644 --- a/html/ExceptionalConditionEventReceiver_8h.html +++ b/html/ExceptionalConditionEventReceiver_8h.html @@ -150,7 +150,7 @@

diff --git a/html/ExceptionalConditionEventReceiver_8h_source.html b/html/ExceptionalConditionEventReceiver_8h_source.html index e18d6fb222..9647a88b29 100644 --- a/html/ExceptionalConditionEventReceiver_8h_source.html +++ b/html/ExceptionalConditionEventReceiver_8h_source.html @@ -150,9 +150,9 @@
51
52#endif // CORE_EVENTRECEIVER_EXCEPTIONALCONDITIONEVENTRECEIVER_H
#define MAX_OUTOFBAND_INACTIVITY
- -
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
- + +
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
+
EventMultiplexer & getEventMultiplexer()
Definition EventLoop.cpp:69
static EventLoop & instance()
Definition EventLoop.cpp:59
@@ -177,7 +177,7 @@ diff --git a/html/Exceptions_8cpp.html b/html/Exceptions_8cpp.html index dc9e666cac..293717fca1 100644 --- a/html/Exceptions_8cpp.html +++ b/html/Exceptions_8cpp.html @@ -114,7 +114,7 @@ diff --git a/html/Exceptions_8cpp_source.html b/html/Exceptions_8cpp_source.html index 22e9bbc03e..0f1449fdb1 100644 --- a/html/Exceptions_8cpp_source.html +++ b/html/Exceptions_8cpp_source.html @@ -193,7 +193,7 @@ diff --git a/html/Exceptions_8h.html b/html/Exceptions_8h.html index 1b8b3e1b0f..803204b926 100644 --- a/html/Exceptions_8h.html +++ b/html/Exceptions_8h.html @@ -123,7 +123,7 @@ diff --git a/html/Exceptions_8h_source.html b/html/Exceptions_8h_source.html index a28a875426..b9deade4e6 100644 --- a/html/Exceptions_8h_source.html +++ b/html/Exceptions_8h_source.html @@ -216,7 +216,7 @@ diff --git a/html/Fields_8cpp.html b/html/Fields_8cpp.html index 0ebe078fd4..931f9343f3 100644 --- a/html/Fields_8cpp.html +++ b/html/Fields_8cpp.html @@ -142,7 +142,7 @@

    - +
diff --git a/html/Fields_8cpp_source.html b/html/Fields_8cpp_source.html index 59051a7618..5e24a56b8d 100644 --- a/html/Fields_8cpp_source.html +++ b/html/Fields_8cpp_source.html @@ -171,7 +171,7 @@
72
73 if (lastButOne == '\r' && last == '\n') {
74 line.pop_back(); // Remove \n
-
75 line.pop_back(); // Remove \r#
+
75 line.pop_back(); // Remove \r
76
77 completed = line.empty();
78 if (!completed) {
@@ -221,7 +221,7 @@
122 if (fieldsExpected.empty() || fieldsExpected.contains(headerFieldName)) {
124
-
125 if (fields.find(headerFieldName) == fields.end()) {
+
125 if (!fields.contains(headerFieldName)) {
126 fields.emplace(headerFieldName, value);
127 } else {
128 fields[headerFieldName] += "," + value;
@@ -290,7 +290,7 @@ diff --git a/html/Fields_8h.html b/html/Fields_8h.html index d2143e36fc..8015fabcbd 100644 --- a/html/Fields_8h.html +++ b/html/Fields_8h.html @@ -129,7 +129,7 @@ diff --git a/html/Fields_8h_source.html b/html/Fields_8h_source.html index c05c898cea..195abc6dbf 100644 --- a/html/Fields_8h_source.html +++ b/html/Fields_8h_source.html @@ -304,7 +304,6 @@ -
void deliverRequest(web::http::server::Request &&request)
std::shared_ptr< Response > masterResponse
std::list< Request > pendingRequests
@@ -315,6 +314,7 @@
SocketContext(core::socket::stream::SocketConnection *socketConnection, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &onRequestReady)
std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> onRequestReady
+
void deliverRequest(web::http::server::Request &request)
@@ -336,7 +336,7 @@ diff --git a/html/FileReader_8cpp.html b/html/FileReader_8cpp.html index e5ac0a849a..89b198c6ed 100644 --- a/html/FileReader_8cpp.html +++ b/html/FileReader_8cpp.html @@ -150,7 +150,7 @@

    - +
diff --git a/html/FileReader_8cpp_source.html b/html/FileReader_8cpp_source.html index 5a8c4fdeda..b24d9daee1 100644 --- a/html/FileReader_8cpp_source.html +++ b/html/FileReader_8cpp_source.html @@ -238,7 +238,7 @@ diff --git a/html/FileReader_8h.html b/html/FileReader_8h.html index 4a710505dc..71813199c8 100644 --- a/html/FileReader_8h.html +++ b/html/FileReader_8h.html @@ -129,7 +129,7 @@ diff --git a/html/FileReader_8h_source.html b/html/FileReader_8h_source.html index 11c3ea4508..064ba54db0 100644 --- a/html/FileReader_8h_source.html +++ b/html/FileReader_8h_source.html @@ -210,7 +210,7 @@ diff --git a/html/File_8cpp.html b/html/File_8cpp.html index 4afac5fd71..d0ae110679 100644 --- a/html/File_8cpp.html +++ b/html/File_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/File_8cpp_source.html b/html/File_8cpp_source.html index e2bcadc15b..218ddabaeb 100644 --- a/html/File_8cpp_source.html +++ b/html/File_8cpp_source.html @@ -145,7 +145,7 @@ diff --git a/html/File_8h.html b/html/File_8h.html index 30c712203c..1f18215894 100644 --- a/html/File_8h.html +++ b/html/File_8h.html @@ -127,7 +127,7 @@ diff --git a/html/File_8h_source.html b/html/File_8h_source.html index 26b8ba2b28..a4be05d4bb 100644 --- a/html/File_8h_source.html +++ b/html/File_8h_source.html @@ -149,7 +149,7 @@ diff --git a/html/FixedHeader_8cpp.html b/html/FixedHeader_8cpp.html index 72ed56839b..ae37c226f9 100644 --- a/html/FixedHeader_8cpp.html +++ b/html/FixedHeader_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/FixedHeader_8cpp_source.html b/html/FixedHeader_8cpp_source.html index 74c7c1a4fe..b3550ec9ef 100644 --- a/html/FixedHeader_8cpp_source.html +++ b/html/FixedHeader_8cpp_source.html @@ -237,7 +237,7 @@ diff --git a/html/FixedHeader_8h.html b/html/FixedHeader_8h.html index d4432b2f43..1423c49afd 100644 --- a/html/FixedHeader_8h.html +++ b/html/FixedHeader_8h.html @@ -128,7 +128,7 @@ diff --git a/html/FixedHeader_8h_source.html b/html/FixedHeader_8h_source.html index 5b5d5c49d0..e3fbb7f681 100644 --- a/html/FixedHeader_8h_source.html +++ b/html/FixedHeader_8h_source.html @@ -210,13 +210,14 @@
MqttContext * mqttContext
Definition Mqtt.h:135
+
static std::string toHexString(const std::string &data)
Definition Mqtt.cpp:352
virtual void onConnected()
Definition Mqtt.cpp:64
+
static std::string toHexString(const std::vector< char > &data)
Definition Mqtt.cpp:347
virtual void onPubcomp(const iot::mqtt::packets::Pubcomp &pubcomp)
Definition Mqtt.cpp:227
virtual void onPublish(const iot::mqtt::packets::Publish &publish)
Definition Mqtt.cpp:215
core::timer::Timer keepAliveTimer
Definition Mqtt.h:128
Mqtt(const std::string &clientId)
Definition Mqtt.cpp:47
iot::mqtt::FixedHeader fixedHeader
Definition Mqtt.h:123
-
static std::string stringToHexString(const std::string &data)
Definition Mqtt.cpp:367
std::size_t onReceivedFromPeer()
Definition Mqtt.cpp:68
virtual void onDisconnected()
Definition Mqtt.cpp:135
void send(const std::vector< char > &data) const
Definition Mqtt.cpp:180
@@ -226,7 +227,7 @@
void _onPubrec(const iot::mqtt::packets::Pubrec &pubrec)
Definition Mqtt.cpp:281
virtual void deliverPacket(iot::mqtt::ControlPacketDeserializer *controlPacketDeserializer)=0
void sendPubrel(uint16_t packetIdentifier) const
Definition Mqtt.cpp:207
-
uint16_t getPacketIdentifier()
Definition Mqtt.cpp:371
+
uint16_t getPacketIdentifier()
Definition Mqtt.cpp:356
bool _onPublish(const iot::mqtt::packets::Publish &publish)
Definition Mqtt.cpp:230
virtual iot::mqtt::ControlPacketDeserializer * createControlPacketDeserializer(iot::mqtt::FixedHeader &staticHeader)=0
Mqtt & operator=(Mqtt &&)=delete
@@ -237,7 +238,6 @@
Session * session
Definition Mqtt.h:132
void _onPubrel(const iot::mqtt::packets::Pubrel &pubrel)
Definition Mqtt.cpp:297
-
static std::string dataToHexString(const std::vector< char > &data)
Definition Mqtt.cpp:344
virtual void onPubrec(const iot::mqtt::packets::Pubrec &pubrec)
Definition Mqtt.cpp:221
virtual void onPubrel(const iot::mqtt::packets::Pubrel &pubrel)
Definition Mqtt.cpp:224
void send(const iot::mqtt::ControlPacket &controlPacket) const
Definition Mqtt.cpp:174
@@ -252,7 +252,7 @@
iot::mqtt::ControlPacketDeserializer * controlPacketDeserializer
Definition Mqtt.h:124
void sendPubcomp(uint16_t packetIdentifier) const
Definition Mqtt.cpp:211
void sendPubrec(uint16_t packetIdentifier) const
Definition Mqtt.cpp:203
-
static void printFixedHeader(const iot::mqtt::FixedHeader &fixedHeader)
Definition Mqtt.cpp:332
+
static void printFixedHeader(const iot::mqtt::FixedHeader &fixedHeader)
Definition Mqtt.cpp:335
void _onPubcomp(const iot::mqtt::packets::Pubcomp &pubcomp)
Definition Mqtt.cpp:312
void _onPuback(const iot::mqtt::packets::Puback &puback)
Definition Mqtt.cpp:270
@@ -344,7 +344,7 @@ diff --git a/html/Formatter_8cpp.html b/html/Formatter_8cpp.html index 5f7482489a..ff91f3003d 100644 --- a/html/Formatter_8cpp.html +++ b/html/Formatter_8cpp.html @@ -114,7 +114,7 @@ diff --git a/html/Formatter_8cpp_source.html b/html/Formatter_8cpp_source.html index abd2fa2408..7b64716359 100644 --- a/html/Formatter_8cpp_source.html +++ b/html/Formatter_8cpp_source.html @@ -496,7 +496,7 @@ diff --git a/html/Formatter_8h.html b/html/Formatter_8h.html index 07fd86b694..3a6f166861 100644 --- a/html/Formatter_8h.html +++ b/html/Formatter_8h.html @@ -121,7 +121,7 @@ diff --git a/html/Formatter_8h_source.html b/html/Formatter_8h_source.html index 6c426fd93a..c4dbd26151 100644 --- a/html/Formatter_8h_source.html +++ b/html/Formatter_8h_source.html @@ -206,49 +206,49 @@
static void init()
Definition Logger.cpp:32
static void setQuiet(bool quiet=true)
Definition Logger.cpp:114
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const char *defaultValue)
Definition Config.cpp:886
-
static std::string get_string_option_value(const std::string &name)
Definition Config.cpp:898
-
static CLI::App * add_standard_flags(CLI::App *app)
Definition Config.cpp:685
-
static bool parse1()
Definition Config.cpp:369
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const char *defaultValue)
Definition Config.cpp:887
+
static std::string get_string_option_value(const std::string &name)
Definition Config.cpp:899
+
static CLI::App * add_standard_flags(CLI::App *app)
Definition Config.cpp:686
+
static bool parse1()
Definition Config.cpp:370
Config(const Config &)=delete
static char ** argv
Definition Config.h:107
-
static CLI::App * add_instance(const std::string &name, const std::string &description, const std::string &group)
Definition Config.cpp:658
+
static CLI::App * add_instance(const std::string &name, const std::string &description, const std::string &group)
Definition Config.cpp:659
static CLI::Option * logLevelOpt
Definition Config.h:120
-
static void disabled(CLI::App *instance, bool disabled=true)
Definition Config.cpp:804
+
static void disabled(CLI::App *instance, bool disabled=true)
Definition Config.cpp:805
static std::map< std::string, CLI::Option * > applicationOptions
Definition Config.h:125
-
static int getVerboseLevel()
Definition Config.cpp:926
-
static bool parse2()
Definition Config.cpp:530
+
static int getVerboseLevel()
Definition Config.cpp:927
+
static bool parse2()
Definition Config.cpp:531
static std::string configDirectory
Definition Config.h:111
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName)
Definition Config.cpp:840
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName)
Definition Config.cpp:841
static std::shared_ptr< CLI::App > app
Definition Config.h:103
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const std::string &defaultValue)
Definition Config.cpp:861
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const std::string &defaultValue)
Definition Config.cpp:862
~Config()=delete
static CLI::Option * groupNameOpt
Definition Config.h:118
-
static bool remove_instance(CLI::App *instance)
Definition Config.cpp:834
-
static CLI::App * add_help_flags(CLI::App *app)
Definition Config.cpp:733
+
static bool remove_instance(CLI::App *instance)
Definition Config.cpp:835
+
static CLI::App * add_help_flags(CLI::App *app)
Definition Config.cpp:734
static CLI::Option * verboseLevelOpt
Definition Config.h:121
-
static void add_flag(const std::string &name, bool &variable, const std::string &description, bool required, bool configurable=true, const std::string &groupName="Application Options")
Definition Config.cpp:906
+
static void add_flag(const std::string &name, bool &variable, const std::string &description, bool required, bool configurable=true, const std::string &groupName="Application Options")
Definition Config.cpp:907
static CLI::Option * quietOpt
Definition Config.h:122
static bool init(int argc, char *argv[])
Definition Config.cpp:104
static int argc
Definition Config.h:106
static std::string pidDirectory
Definition Config.h:113
static std::shared_ptr< CLI::Formatter > sectionFormatter
Definition Config.h:104
static std::map< std::string, std::string > aliases
Definition Config.h:124
-
static std::string getApplicationName()
Definition Config.cpp:918
+
static std::string getApplicationName()
Definition Config.cpp:919
Config & operator=(const Config &)=delete
-
static void required(CLI::App *instance, bool reqired=true)
Definition Config.cpp:782
+
static void required(CLI::App *instance, bool reqired=true)
Definition Config.cpp:783
static CLI::Option * logFileOpt
Definition Config.h:116
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const char *defaultValue, bool configurable)
Definition Config.cpp:893
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const char *defaultValue, bool configurable)
Definition Config.cpp:894
Config()=delete
static CLI::Option * enforceLogFileOpt
Definition Config.h:119
-
static bool bootstrap()
Definition Config.cpp:339
-
static int getLogLevel()
Definition Config.cpp:922
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const std::string &defaultValue, bool configurable)
Definition Config.cpp:876
+
static bool bootstrap()
Definition Config.cpp:340
+
static int getLogLevel()
Definition Config.cpp:923
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, const std::string &defaultValue, bool configurable)
Definition Config.cpp:877
static std::string applicationName
Definition Config.h:109
-
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, bool configurable)
Definition Config.cpp:855
+
static CLI::Option * add_string_option(const std::string &name, const std::string &description, const std::string &typeName, bool configurable)
Definition Config.cpp:856
static std::string logDirectory
Definition Config.h:112
-
static void terminate()
Definition Config.cpp:620
-
static CLI::App * add_help_flag(CLI::App *app)
Definition Config.cpp:759
+
static void terminate()
Definition Config.cpp:621
+
static CLI::App * add_help_flag(CLI::App *app)
Definition Config.cpp:760
static CLI::Option * userNameOpt
Definition Config.h:117
static CLI::Option * daemonizeOpt
Definition Config.h:115
@@ -277,20 +277,20 @@ -
static std::string createCommandLineTemplate(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:508
-
static void createCommandLineTemplate(std::stringstream &out, CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:493
-
static void createCommandLineOptions(std::stringstream &out, CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:405
+
static std::string createCommandLineTemplate(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:509
+
static void createCommandLineTemplate(std::stringstream &out, CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:494
+
static void createCommandLineOptions(std::stringstream &out, CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:406
static std::shared_ptr< CLI::App > makeApp()
Definition Config.cpp:70
-
static std::string createCommandLineOptions(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:463
-
static std::shared_ptr< CLI::HelpFormatter > makeSectionFormatter()
Definition Config.cpp:639
-
static std::string createCommandLineSubcommands(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:478
+
static std::string createCommandLineOptions(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:464
+
static std::shared_ptr< CLI::HelpFormatter > makeSectionFormatter()
Definition Config.cpp:640
+
static std::string createCommandLineSubcommands(CLI::App *app, CLI::CallForCommandline::Mode mode)
Definition Config.cpp:479
diff --git a/html/GroupsManager_8cpp.html b/html/GroupsManager_8cpp.html index 859221adbe..1fef2852fc 100644 --- a/html/GroupsManager_8cpp.html +++ b/html/GroupsManager_8cpp.html @@ -119,7 +119,7 @@ diff --git a/html/GroupsManager_8cpp_source.html b/html/GroupsManager_8cpp_source.html index e73c952067..0591482b1a 100644 --- a/html/GroupsManager_8cpp_source.html +++ b/html/GroupsManager_8cpp_source.html @@ -287,7 +287,7 @@ diff --git a/html/GroupsManager_8h.html b/html/GroupsManager_8h.html index d8b7208135..8565e987b6 100644 --- a/html/GroupsManager_8h.html +++ b/html/GroupsManager_8h.html @@ -123,7 +123,7 @@ diff --git a/html/GroupsManager_8h_source.html b/html/GroupsManager_8h_source.html index eb1dd07918..d64ce8ce54 100644 --- a/html/GroupsManager_8h_source.html +++ b/html/GroupsManager_8h_source.html @@ -213,7 +213,7 @@ diff --git a/html/HTTP10Response_8cpp.html b/html/HTTP10Response_8cpp.html index c4fdb88f5d..1038ab9200 100644 --- a/html/HTTP10Response_8cpp.html +++ b/html/HTTP10Response_8cpp.html @@ -142,7 +142,7 @@

diff --git a/html/HTTP10Response_8cpp_source.html b/html/HTTP10Response_8cpp_source.html index 19b6ed8b8a..e2584bfeb2 100644 --- a/html/HTTP10Response_8cpp_source.html +++ b/html/HTTP10Response_8cpp_source.html @@ -175,7 +175,7 @@ diff --git a/html/HTTP10Response_8h.html b/html/HTTP10Response_8h.html index 279e91cc5d..ad889a5e16 100644 --- a/html/HTTP10Response_8h.html +++ b/html/HTTP10Response_8h.html @@ -135,7 +135,7 @@ diff --git a/html/HTTP10Response_8h_source.html b/html/HTTP10Response_8h_source.html index 32bcdda190..94357a2570 100644 --- a/html/HTTP10Response_8h_source.html +++ b/html/HTTP10Response_8h_source.html @@ -179,7 +179,7 @@ diff --git a/html/Identity_8cpp.html b/html/Identity_8cpp.html index a06f5d8c7b..4233e70f48 100644 --- a/html/Identity_8cpp.html +++ b/html/Identity_8cpp.html @@ -119,7 +119,7 @@ diff --git a/html/Identity_8cpp_source.html b/html/Identity_8cpp_source.html index 265c6cc053..f3dc38ac50 100644 --- a/html/Identity_8cpp_source.html +++ b/html/Identity_8cpp_source.html @@ -128,10 +128,10 @@
29
30namespace web::http::decoder {
31
-
32 Identity::Identity(const core::socket::stream::SocketContext* socketContext, std::size_t contentLength)
+
32 Identity::Identity(const core::socket::stream::SocketContext* socketContext, std::size_t contentLengthExpected)
33 : socketContext(socketContext)
-
34 , contentLength(contentLength) {
-
35 content.resize(contentLength);
+
34 , contentLengthExpected(contentLengthExpected) {
+
35 content.resize(contentLengthExpected);
36 }
37
@@ -139,23 +139,23 @@
40
41 std::size_t Identity::read() {
42 std::size_t consumed = 0;
-
43 std::size_t ret = 0;
-
44
-
45 switch (state) {
-
46 case -1:
-
47 content.clear();
-
48 completed = false;
-
49 error = false;
-
50
-
51 state = 0;
-
52
-
53 [[fallthrough]];
-
54 case 0:
+
43
+
44 switch (state) {
+
45 case -1:
+
46 content.clear();
+
47 completed = false;
+
48 error = false;
+
49
+
50 state = 0;
+
51
+
52 [[fallthrough]];
+
53 case 0:
+
54 std::size_t ret = 0;
55 do {
- +
57 contentLengthRead += ret;
58 consumed += ret;
- +
60 } while (ret > 0 && !completed);
61
62 if (completed) {
@@ -174,11 +174,11 @@
std::vector< char > content
-
Identity(const core::socket::stream::SocketContext *socketContext, std::size_t contentLength)
Definition Identity.cpp:32
- +
Identity(const core::socket::stream::SocketContext *socketContext, std::size_t contentLengthExpected)
Definition Identity.cpp:32
const core::socket::stream::SocketContext * socketContext
Definition Identity.h:51
std::size_t read() override
Definition Identity.cpp:41
+
std::size_t contentLengthExpected
Definition Identity.h:52
std::size_t contentLengthRead
Definition Identity.h:53
@@ -190,7 +190,7 @@ diff --git a/html/Identity_8h.html b/html/Identity_8h.html index e87234889a..e363c7ef85 100644 --- a/html/Identity_8h.html +++ b/html/Identity_8h.html @@ -135,7 +135,7 @@ diff --git a/html/Identity_8h_source.html b/html/Identity_8h_source.html index 9a9e1babde..8f5f2d98bd 100644 --- a/html/Identity_8h_source.html +++ b/html/Identity_8h_source.html @@ -135,7 +135,7 @@
36
37 class Identity : public web::http::ContentDecoder {
38 public:
-
39 Identity(const core::socket::stream::SocketContext* socketContext, std::size_t contentLength);
+
39 Identity(const core::socket::stream::SocketContext* socketContext, std::size_t contentLengthExpected);
40 Identity(const Identity&) = delete;
41 Identity(Identity&&) noexcept = default;
42
@@ -148,7 +148,7 @@
49 std::size_t read() override;
50
-
52 std::size_t contentLength = 0;
+
52 std::size_t contentLengthExpected = 0;
53 std::size_t contentLengthRead = 0;
54
55 int state = 0;
@@ -164,14 +164,14 @@
std::vector< char > content
-
Identity(const core::socket::stream::SocketContext *socketContext, std::size_t contentLength)
Definition Identity.cpp:32
Identity & operator=(Identity &&) noexcept=default
Identity(Identity &&) noexcept=default
-
Identity & operator=(const Identity &)=delete
+
Identity(const core::socket::stream::SocketContext *socketContext, std::size_t contentLengthExpected)
Definition Identity.cpp:32
const core::socket::stream::SocketContext * socketContext
Definition Identity.h:51
std::size_t read() override
Definition Identity.cpp:41
+
std::size_t contentLengthExpected
Definition Identity.h:52
std::size_t contentLengthRead
Definition Identity.h:53
Identity(const Identity &)=delete
@@ -184,7 +184,7 @@ diff --git a/html/Int__1_8cpp.html b/html/Int__1_8cpp.html index 76fdaf7696..962f4cbe37 100644 --- a/html/Int__1_8cpp.html +++ b/html/Int__1_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/Int__1_8cpp_source.html b/html/Int__1_8cpp_source.html index 9faa1a4aa0..6199d5ffe4 100644 --- a/html/Int__1_8cpp_source.html +++ b/html/Int__1_8cpp_source.html @@ -173,7 +173,7 @@ diff --git a/html/Int__1_8h.html b/html/Int__1_8h.html index 57667a56b8..dc9149d6dc 100644 --- a/html/Int__1_8h.html +++ b/html/Int__1_8h.html @@ -133,7 +133,7 @@ diff --git a/html/Int__1_8h_source.html b/html/Int__1_8h_source.html index 7345cac56b..88aaadbf30 100644 --- a/html/Int__1_8h_source.html +++ b/html/Int__1_8h_source.html @@ -235,7 +235,7 @@ diff --git a/html/Int__V_8cpp.html b/html/Int__V_8cpp.html index fd83b77ef8..77f4677ac7 100644 --- a/html/Int__V_8cpp.html +++ b/html/Int__V_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/Int__V_8cpp_source.html b/html/Int__V_8cpp_source.html index 00ee0786ef..94e51fbb3a 100644 --- a/html/Int__V_8cpp_source.html +++ b/html/Int__V_8cpp_source.html @@ -187,7 +187,7 @@ diff --git a/html/Int__V_8h.html b/html/Int__V_8h.html index 3ed54d9287..94cf50a29c 100644 --- a/html/Int__V_8h.html +++ b/html/Int__V_8h.html @@ -133,7 +133,7 @@ diff --git a/html/Int__V_8h_source.html b/html/Int__V_8h_source.html index fedcbd6129..15d4b92269 100644 --- a/html/Int__V_8h_source.html +++ b/html/Int__V_8h_source.html @@ -236,7 +236,7 @@ diff --git a/html/IntervalTimerStopable_8cpp.html b/html/IntervalTimerStopable_8cpp.html index da2c3a281b..386e99c8c0 100644 --- a/html/IntervalTimerStopable_8cpp.html +++ b/html/IntervalTimerStopable_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/IntervalTimerStopable_8cpp_source.html b/html/IntervalTimerStopable_8cpp_source.html index 3855a06063..b16480700f 100644 --- a/html/IntervalTimerStopable_8cpp_source.html +++ b/html/IntervalTimerStopable_8cpp_source.html @@ -163,7 +163,7 @@ diff --git a/html/IntervalTimerStopable_8h.html b/html/IntervalTimerStopable_8h.html index b82f3719ab..590fd0c325 100644 --- a/html/IntervalTimerStopable_8h.html +++ b/html/IntervalTimerStopable_8h.html @@ -127,7 +127,7 @@ diff --git a/html/IntervalTimerStopable_8h_source.html b/html/IntervalTimerStopable_8h_source.html index 1cc22f9df3..d2715d44cd 100644 --- a/html/IntervalTimerStopable_8h_source.html +++ b/html/IntervalTimerStopable_8h_source.html @@ -177,7 +177,7 @@ diff --git a/html/IntervalTimer_8cpp.html b/html/IntervalTimer_8cpp.html index 60e42feace..539400ad22 100644 --- a/html/IntervalTimer_8cpp.html +++ b/html/IntervalTimer_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/IntervalTimer_8cpp_source.html b/html/IntervalTimer_8cpp_source.html index 0f6a46f155..7ec2c02adc 100644 --- a/html/IntervalTimer_8cpp_source.html +++ b/html/IntervalTimer_8cpp_source.html @@ -158,7 +158,7 @@ diff --git a/html/IntervalTimer_8h.html b/html/IntervalTimer_8h.html index 39c17bd316..e4682595d7 100644 --- a/html/IntervalTimer_8h.html +++ b/html/IntervalTimer_8h.html @@ -127,7 +127,7 @@ diff --git a/html/IntervalTimer_8h_source.html b/html/IntervalTimer_8h_source.html index a42bd9f2d1..3cd1fd99cd 100644 --- a/html/IntervalTimer_8h_source.html +++ b/html/IntervalTimer_8h_source.html @@ -174,7 +174,7 @@ diff --git a/html/JsonMiddleware_8cpp.html b/html/JsonMiddleware_8cpp.html index 1e0f293572..44bc764384 100644 --- a/html/JsonMiddleware_8cpp.html +++ b/html/JsonMiddleware_8cpp.html @@ -122,7 +122,7 @@ diff --git a/html/JsonMiddleware_8cpp_source.html b/html/JsonMiddleware_8cpp_source.html index e373360618..bf4eb8bfff 100644 --- a/html/JsonMiddleware_8cpp_source.html +++ b/html/JsonMiddleware_8cpp_source.html @@ -123,58 +123,59 @@
24#ifndef DOXYGEN_SHOULD_SKIP_THIS
25
26#include <nlohmann/json.hpp>
-
27#include <vector>
-
28
-
29// IWYU pragma: no_include <nlohmann/detail/exceptions.hpp>
-
30// IWYU pragma: no_include <nlohmann/json_fwd.hpp>
-
31
-
32#endif /* DOXYGEN_SHOULD_SKIP_THIS */
-
33
-
34namespace express::middleware {
-
35
- -
37 use([] MIDDLEWARE(req, res, next) {
-
38 try {
-
39 // parse body string with json library
-
40 // store it as type json from nlohmann library
-
41 // nlohmann::json json = nlohmann::json::parse(req.body, req.body + req.contentLength);
-
42
-
43 req->body.push_back(0);
-
44 const nlohmann::json json = nlohmann::json::parse(req->body);
-
45
-
46 // set all the json data as attributes in the request object
-
47 req->setAttribute<nlohmann::json>(json);
-
48 } catch ([[maybe_unused]] const nlohmann::detail::parse_error& error) {
-
49 // silently fail if body is not json
-
50 }
-
51
-
52 next();
-
53 });
-
54 }
-
55
- -
57 // Keep the created json middleware alive
-
58 static std::shared_ptr<class JsonMiddleware> jsonMiddleware = nullptr;
-
59
-
60 if (jsonMiddleware == nullptr) {
-
61 jsonMiddleware = std::shared_ptr<JsonMiddleware>(new JsonMiddleware());
-
62 }
-
63
-
64 return *jsonMiddleware;
-
65 }
-
66
-
67 // "Constructor" of JsonMiddleware
-
68 class JsonMiddleware& JsonMiddleware() {
- -
70 }
-
71
-
72} // namespace express::middleware
+
27#include <string>
+
28#include <vector>
+
29
+
30// IWYU pragma: no_include <nlohmann/detail/exceptions.hpp>
+
31// IWYU pragma: no_include <nlohmann/json_fwd.hpp>
+
32
+
33#endif /* DOXYGEN_SHOULD_SKIP_THIS */
+
34
+
35namespace express::middleware {
+
36
+ +
38 use([] MIDDLEWARE(req, res, next) {
+
39 try {
+
40 // parse body string with json library
+
41 // store it as type json from nlohmann library
+
42 // nlohmann::json json = nlohmann::json::parse(req.body, req.body + req.contentLength);
+
43
+
44 // req->body.push_back(0);
+
45 const nlohmann::json json = nlohmann::json::parse(std::string(req->body.begin(), req->body.end()));
+
46
+
47 // set all the json data as attributes in the request object
+
48 req->setAttribute<nlohmann::json>(json);
+
49 } catch ([[maybe_unused]] const nlohmann::detail::parse_error& error) {
+
50 // silently fail if body is not json
+
51 }
+
52
+
53 next();
+
54 });
+
55 }
+
56
+ +
58 // Keep the created json middleware alive
+
59 static std::shared_ptr<class JsonMiddleware> jsonMiddleware = nullptr;
+
60
+
61 if (jsonMiddleware == nullptr) {
+
62 jsonMiddleware = std::shared_ptr<JsonMiddleware>(new JsonMiddleware());
+
63 }
+
64
+
65 return *jsonMiddleware;
+
66 }
+
67
+
68 // "Constructor" of JsonMiddleware
+
69 class JsonMiddleware& JsonMiddleware() {
+ +
71 }
+
72
+
73} // namespace express::middleware
#define MIDDLEWARE(req, res, next)
Definition Router.h:40
void operator()(const std::string &how="") const
Definition Next.cpp:34
std::vector< char > body
Definition Request.h:81
- -
static class JsonMiddleware & instance()
+ +
static class JsonMiddleware & instance()
@@ -183,7 +184,7 @@ diff --git a/html/JsonMiddleware_8h.html b/html/JsonMiddleware_8h.html index 1f77b1422e..8452f637b8 100644 --- a/html/JsonMiddleware_8h.html +++ b/html/JsonMiddleware_8h.html @@ -133,7 +133,7 @@ diff --git a/html/JsonMiddleware_8h_source.html b/html/JsonMiddleware_8h_source.html index 8885759fd4..7d128c7a6b 100644 --- a/html/JsonMiddleware_8h_source.html +++ b/html/JsonMiddleware_8h_source.html @@ -154,10 +154,10 @@
std::vector< char > body
Definition Request.h:81
- +
JsonMiddleware & operator=(const JsonMiddleware &)=delete
JsonMiddleware(const JsonMiddleware &)=delete
-
static class JsonMiddleware & instance()
+
static class JsonMiddleware & instance()
@@ -166,7 +166,7 @@ diff --git a/html/Logger_8cpp.html b/html/Logger_8cpp.html index f9fd9df5fe..ae8926540e 100644 --- a/html/Logger_8cpp.html +++ b/html/Logger_8cpp.html @@ -108,7 +108,7 @@ diff --git a/html/Logger_8cpp_source.html b/html/Logger_8cpp_source.html index c4e068f27c..9554861db9 100644 --- a/html/Logger_8cpp_source.html +++ b/html/Logger_8cpp_source.html @@ -239,7 +239,7 @@ diff --git a/html/Logger_8h.html b/html/Logger_8h.html index beaba3061c..b0cf5ec9ab 100644 --- a/html/Logger_8h.html +++ b/html/Logger_8h.html @@ -161,7 +161,7 @@ diff --git a/html/Logger_8h_source.html b/html/Logger_8h_source.html index 5b85c84e63..03ac6b2390 100644 --- a/html/Logger_8h_source.html +++ b/html/Logger_8h_source.html @@ -209,23 +209,23 @@
OnReceivedFromPeerEvent(const std::function< void(const utils::Timeval &)> &onReceivedFromPeer)
std::function< void(const utils::Timeval &)> onReceivedFromPeer
Definition SubProtocol.h:61
-
void onMessageError(uint16_t errnum) override
-
bool onSignal(int sig) override
-
void send(const char *chunk, std::size_t chunklen) override
-
void onDisconnected() override
+
void onMessageError(uint16_t errnum) override
+
bool onSignal(int sig) override
+
void send(const char *chunk, std::size_t chunklen) override
+
void onDisconnected() override
-
void onConnected() override
-
void close() override
-
void end(bool fatal=false) override
-
std::size_t recv(char *chunk, std::size_t chunklen) override
+
void onConnected() override
+
void close() override
+
void end(bool fatal=false) override
+
std::size_t recv(char *chunk, std::size_t chunklen) override
std::vector< char > buffer
Definition SubProtocol.h:95
OnReceivedFromPeerEvent onReceivedFromPeerEvent
Definition SubProtocol.h:92
-
core::socket::stream::SocketConnection * getSocketConnection() override
-
void onMessageData(const char *chunk, std::size_t chunkLen) override
-
SubProtocol(web::websocket::SubProtocolContext *subProtocolContext, const std::string &name, iot::mqtt::Mqtt *mqtt)
-
void onMessageEnd() override
-
void onMessageStart(int opCode) override
+
core::socket::stream::SocketConnection * getSocketConnection() override
+
void onMessageData(const char *chunk, std::size_t chunkLen) override
+
SubProtocol(web::websocket::SubProtocolContext *subProtocolContext, const std::string &name, iot::mqtt::Mqtt *mqtt)
+
void onMessageEnd() override
+
void onMessageStart(int opCode) override
~SubProtocol() override=default
@@ -272,6 +272,7 @@
std::string sigabbrev_np(int sig)
Definition signal.cpp:36
+
std::string hexDump(const std::vector< char > &bytes, int prefixLength)
Definition hexdump.cpp:36
@@ -280,7 +281,7 @@ diff --git a/html/MariaDBAffectedRowsCommand_8cpp.html b/html/MariaDBAffectedRowsCommand_8cpp.html index f9111f8dcc..7abeb78713 100644 --- a/html/MariaDBAffectedRowsCommand_8cpp.html +++ b/html/MariaDBAffectedRowsCommand_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/MariaDBAffectedRowsCommand_8cpp_source.html b/html/MariaDBAffectedRowsCommand_8cpp_source.html index 798f0e0391..7ac0d8dcae 100644 --- a/html/MariaDBAffectedRowsCommand_8cpp_source.html +++ b/html/MariaDBAffectedRowsCommand_8cpp_source.html @@ -161,7 +161,7 @@ diff --git a/html/MariaDBAffectedRowsCommand_8h.html b/html/MariaDBAffectedRowsCommand_8h.html index 495ce784a9..5c16f68b47 100644 --- a/html/MariaDBAffectedRowsCommand_8h.html +++ b/html/MariaDBAffectedRowsCommand_8h.html @@ -131,7 +131,7 @@ diff --git a/html/MariaDBAffectedRowsCommand_8h_source.html b/html/MariaDBAffectedRowsCommand_8h_source.html index a36d4cfe19..a34a0ca55f 100644 --- a/html/MariaDBAffectedRowsCommand_8h_source.html +++ b/html/MariaDBAffectedRowsCommand_8h_source.html @@ -161,7 +161,7 @@ diff --git a/html/MariaDBAutoCommitCommand_8cpp.html b/html/MariaDBAutoCommitCommand_8cpp.html index 22c7d6d9e5..177520c8aa 100644 --- a/html/MariaDBAutoCommitCommand_8cpp.html +++ b/html/MariaDBAutoCommitCommand_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/MariaDBAutoCommitCommand_8cpp_source.html b/html/MariaDBAutoCommitCommand_8cpp_source.html index 37b9257dff..112d6c733a 100644 --- a/html/MariaDBAutoCommitCommand_8cpp_source.html +++ b/html/MariaDBAutoCommitCommand_8cpp_source.html @@ -171,7 +171,7 @@ diff --git a/html/MariaDBAutoCommitCommand_8h.html b/html/MariaDBAutoCommitCommand_8h.html index 4b39051d53..e4f3fa6452 100644 --- a/html/MariaDBAutoCommitCommand_8h.html +++ b/html/MariaDBAutoCommitCommand_8h.html @@ -131,7 +131,7 @@ diff --git a/html/MariaDBAutoCommitCommand_8h_source.html b/html/MariaDBAutoCommitCommand_8h_source.html index 5a60cd7b10..ce702c8df4 100644 --- a/html/MariaDBAutoCommitCommand_8h_source.html +++ b/html/MariaDBAutoCommitCommand_8h_source.html @@ -168,7 +168,7 @@ diff --git a/html/MariaDBClientASyncAPI_8cpp.html b/html/MariaDBClientASyncAPI_8cpp.html index 2b946e78d9..5d17300628 100644 --- a/html/MariaDBClientASyncAPI_8cpp.html +++ b/html/MariaDBClientASyncAPI_8cpp.html @@ -125,7 +125,7 @@ diff --git a/html/MariaDBClientASyncAPI_8cpp_source.html b/html/MariaDBClientASyncAPI_8cpp_source.html index bcc2db70c4..9d78890520 100644 --- a/html/MariaDBClientASyncAPI_8cpp_source.html +++ b/html/MariaDBClientASyncAPI_8cpp_source.html @@ -209,7 +209,7 @@ diff --git a/html/MariaDBClientASyncAPI_8h.html b/html/MariaDBClientASyncAPI_8h.html index b2558537e2..68f3359a51 100644 --- a/html/MariaDBClientASyncAPI_8h.html +++ b/html/MariaDBClientASyncAPI_8h.html @@ -121,7 +121,7 @@ diff --git a/html/MariaDBClientASyncAPI_8h_source.html b/html/MariaDBClientASyncAPI_8h_source.html index 3dff43e581..80e45b8cd2 100644 --- a/html/MariaDBClientASyncAPI_8h_source.html +++ b/html/MariaDBClientASyncAPI_8h_source.html @@ -198,10 +198,10 @@ - -
MariaDBCommandSequence & execute_async(MariaDBCommandSequence &&commandSequence)
-
MariaDBConnection(MariaDBClient *mariaDBClient, const MariaDBConnectionDetails &connectionDetails)
-
void execute_sync(MariaDBCommand *mariaDBCommand)
+ +
MariaDBCommandSequence & execute_async(MariaDBCommandSequence &&commandSequence)
+
MariaDBConnection(MariaDBClient *mariaDBClient, const MariaDBConnectionDetails &connectionDetails)
+
void execute_sync(MariaDBCommand *mariaDBCommand)
@@ -209,7 +209,7 @@ diff --git a/html/MariaDBClientSyncAPI_8cpp.html b/html/MariaDBClientSyncAPI_8cpp.html index 943ef681a4..886fc89467 100644 --- a/html/MariaDBClientSyncAPI_8cpp.html +++ b/html/MariaDBClientSyncAPI_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/MariaDBClientSyncAPI_8cpp_source.html b/html/MariaDBClientSyncAPI_8cpp_source.html index eb4b6c9fd2..e66625bcbd 100644 --- a/html/MariaDBClientSyncAPI_8cpp_source.html +++ b/html/MariaDBClientSyncAPI_8cpp_source.html @@ -156,7 +156,7 @@ diff --git a/html/MariaDBClientSyncAPI_8h.html b/html/MariaDBClientSyncAPI_8h.html index 7592e93bca..a7da2c59a2 100644 --- a/html/MariaDBClientSyncAPI_8h.html +++ b/html/MariaDBClientSyncAPI_8h.html @@ -121,7 +121,7 @@ diff --git a/html/MariaDBClientSyncAPI_8h_source.html b/html/MariaDBClientSyncAPI_8h_source.html index 4d77947aad..3167cb0b68 100644 --- a/html/MariaDBClientSyncAPI_8h_source.html +++ b/html/MariaDBClientSyncAPI_8h_source.html @@ -187,10 +187,10 @@ - -
MariaDBCommandSequence & execute_async(MariaDBCommandSequence &&commandSequence)
-
MariaDBConnection(MariaDBClient *mariaDBClient, const MariaDBConnectionDetails &connectionDetails)
-
void execute_sync(MariaDBCommand *mariaDBCommand)
+ +
MariaDBCommandSequence & execute_async(MariaDBCommandSequence &&commandSequence)
+
MariaDBConnection(MariaDBClient *mariaDBClient, const MariaDBConnectionDetails &connectionDetails)
+
void execute_sync(MariaDBCommand *mariaDBCommand)
@@ -198,7 +198,7 @@ diff --git a/html/MariaDBClient_8cpp.html b/html/MariaDBClient_8cpp.html index 58f1a5ba7e..87bbf0e317 100644 --- a/html/MariaDBClient_8cpp.html +++ b/html/MariaDBClient_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/MariaDBClient_8cpp_source.html b/html/MariaDBClient_8cpp_source.html index 5c6ddcd647..c794b1367c 100644 --- a/html/MariaDBClient_8cpp_source.html +++ b/html/MariaDBClient_8cpp_source.html @@ -175,10 +175,10 @@ - -
MariaDBCommandSequence & execute_async(MariaDBCommandSequence &&commandSequence)
-
MariaDBConnection(MariaDBClient *mariaDBClient, const MariaDBConnectionDetails &connectionDetails)
-
void execute_sync(MariaDBCommand *mariaDBCommand)
+ +
MariaDBCommandSequence & execute_async(MariaDBCommandSequence &&commandSequence)
+
MariaDBConnection(MariaDBClient *mariaDBClient, const MariaDBConnectionDetails &connectionDetails)
+
void execute_sync(MariaDBCommand *mariaDBCommand)
@@ -186,7 +186,7 @@ diff --git a/html/MariaDBClient_8h.html b/html/MariaDBClient_8h.html index 4186a6f2cc..03f6c44d95 100644 --- a/html/MariaDBClient_8h.html +++ b/html/MariaDBClient_8h.html @@ -129,7 +129,7 @@ diff --git a/html/MariaDBClient_8h_source.html b/html/MariaDBClient_8h_source.html index bf82715004..bc9f6414b2 100644 --- a/html/MariaDBClient_8h_source.html +++ b/html/MariaDBClient_8h_source.html @@ -201,10 +201,10 @@ - -
MariaDBCommandSequence & execute_async(MariaDBCommandSequence &&commandSequence)
-
MariaDBConnection(MariaDBClient *mariaDBClient, const MariaDBConnectionDetails &connectionDetails)
-
void execute_sync(MariaDBCommand *mariaDBCommand)
+ +
MariaDBCommandSequence & execute_async(MariaDBCommandSequence &&commandSequence)
+
MariaDBConnection(MariaDBClient *mariaDBClient, const MariaDBConnectionDetails &connectionDetails)
+
void execute_sync(MariaDBCommand *mariaDBCommand)
@@ -212,7 +212,7 @@ diff --git a/html/MariaDBCommandASync_8cpp.html b/html/MariaDBCommandASync_8cpp.html index c0fe37e2ea..bd90d07ac1 100644 --- a/html/MariaDBCommandASync_8cpp.html +++ b/html/MariaDBCommandASync_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/MariaDBCommandASync_8cpp_source.html b/html/MariaDBCommandASync_8cpp_source.html index 295392b72c..d964eb487b 100644 --- a/html/MariaDBCommandASync_8cpp_source.html +++ b/html/MariaDBCommandASync_8cpp_source.html @@ -137,7 +137,7 @@ diff --git a/html/MariaDBCommandASync_8h.html b/html/MariaDBCommandASync_8h.html index 959fba793f..93b81ec700 100644 --- a/html/MariaDBCommandASync_8h.html +++ b/html/MariaDBCommandASync_8h.html @@ -127,7 +127,7 @@ diff --git a/html/MariaDBCommandASync_8h_source.html b/html/MariaDBCommandASync_8h_source.html index 5bc1ca8566..5a02f81f78 100644 --- a/html/MariaDBCommandASync_8h_source.html +++ b/html/MariaDBCommandASync_8h_source.html @@ -158,7 +158,7 @@ diff --git a/html/MariaDBCommandSequence_8cpp.html b/html/MariaDBCommandSequence_8cpp.html index 72acbcb16d..f3801a25ef 100644 --- a/html/MariaDBCommandSequence_8cpp.html +++ b/html/MariaDBCommandSequence_8cpp.html @@ -117,7 +117,7 @@ diff --git a/html/MariaDBCommandSequence_8cpp_source.html b/html/MariaDBCommandSequence_8cpp_source.html index 9b36726801..ebdd0a94a3 100644 --- a/html/MariaDBCommandSequence_8cpp_source.html +++ b/html/MariaDBCommandSequence_8cpp_source.html @@ -169,7 +169,7 @@ diff --git a/html/MariaDBCommandSequence_8h.html b/html/MariaDBCommandSequence_8h.html index c0ef927c1d..e4594c6b92 100644 --- a/html/MariaDBCommandSequence_8h.html +++ b/html/MariaDBCommandSequence_8h.html @@ -128,7 +128,7 @@ diff --git a/html/MariaDBCommandSequence_8h_source.html b/html/MariaDBCommandSequence_8h_source.html index 53f0e3fe68..aa2eed5611 100644 --- a/html/MariaDBCommandSequence_8h_source.html +++ b/html/MariaDBCommandSequence_8h_source.html @@ -208,37 +208,37 @@
MariaDBCommandSequence(MariaDBCommandSequence &&mariaDBCommandSequence)=default
- + -
void onEvent(const utils::Timeval &currentTime) override
-
MariaDBCommandStartEvent(const std::string &name, MariaDBConnection *mariaDBConnection)
+
void onEvent(const utils::Timeval &currentTime) override
+
MariaDBCommandStartEvent(const std::string &name, MariaDBConnection *mariaDBConnection)
- +
MariaDBCommandStartEvent commandStartEvent
- - - - + + + +
std::deque< MariaDBCommandSequence > commandSequenceQueue
- - + + -
MariaDBCommandSequence & execute_async(MariaDBCommandSequence &&commandSequence)
-
MariaDBConnection(MariaDBClient *mariaDBClient, const MariaDBConnectionDetails &connectionDetails)
- +
MariaDBCommandSequence & execute_async(MariaDBCommandSequence &&commandSequence)
+
MariaDBConnection(MariaDBClient *mariaDBClient, const MariaDBConnectionDetails &connectionDetails)
+ - - -
void commandStart(const utils::Timeval &currentTime)
-
void execute_sync(MariaDBCommand *mariaDBCommand)
+ + +
void commandStart(const utils::Timeval &currentTime)
+
void execute_sync(MariaDBCommand *mariaDBCommand)
MariaDBConnection(const MariaDBConnection &)=delete
- +
MariaDBConnection & operator=(const MariaDBConnection &)=delete
- + @@ -250,7 +250,7 @@ diff --git a/html/MariaDBCommandSync_8cpp.html b/html/MariaDBCommandSync_8cpp.html index 79c62aaa96..9133af17e0 100644 --- a/html/MariaDBCommandSync_8cpp.html +++ b/html/MariaDBCommandSync_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/MariaDBCommandSync_8cpp_source.html b/html/MariaDBCommandSync_8cpp_source.html index 96f91d1762..9a8b928a95 100644 --- a/html/MariaDBCommandSync_8cpp_source.html +++ b/html/MariaDBCommandSync_8cpp_source.html @@ -138,7 +138,7 @@ diff --git a/html/MariaDBCommandSync_8h.html b/html/MariaDBCommandSync_8h.html index b3e56146a8..4ef1e1f884 100644 --- a/html/MariaDBCommandSync_8h.html +++ b/html/MariaDBCommandSync_8h.html @@ -127,7 +127,7 @@ diff --git a/html/MariaDBCommandSync_8h_source.html b/html/MariaDBCommandSync_8h_source.html index b14ca43a55..bcc5b7ce2a 100644 --- a/html/MariaDBCommandSync_8h_source.html +++ b/html/MariaDBCommandSync_8h_source.html @@ -156,7 +156,7 @@ diff --git a/html/MariaDBCommand_8cpp.html b/html/MariaDBCommand_8cpp.html index 70500ef9d7..9b0b236717 100644 --- a/html/MariaDBCommand_8cpp.html +++ b/html/MariaDBCommand_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/MariaDBCommand_8cpp_source.html b/html/MariaDBCommand_8cpp_source.html index c7e3b7f454..69dc3a97c6 100644 --- a/html/MariaDBCommand_8cpp_source.html +++ b/html/MariaDBCommand_8cpp_source.html @@ -169,7 +169,7 @@ diff --git a/html/MariaDBCommand_8h.html b/html/MariaDBCommand_8h.html index e184bf522f..963af53d14 100644 --- a/html/MariaDBCommand_8h.html +++ b/html/MariaDBCommand_8h.html @@ -121,7 +121,7 @@ diff --git a/html/MariaDBCommand_8h_source.html b/html/MariaDBCommand_8h_source.html index d4f639c4b9..1565b55931 100644 --- a/html/MariaDBCommand_8h_source.html +++ b/html/MariaDBCommand_8h_source.html @@ -213,7 +213,7 @@ diff --git a/html/MariaDBCommitCommand_8cpp.html b/html/MariaDBCommitCommand_8cpp.html index cb6adbf7ed..a368bdcba2 100644 --- a/html/MariaDBCommitCommand_8cpp.html +++ b/html/MariaDBCommitCommand_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/MariaDBCommitCommand_8cpp_source.html b/html/MariaDBCommitCommand_8cpp_source.html index 64f55e04d7..5423f11efe 100644 --- a/html/MariaDBCommitCommand_8cpp_source.html +++ b/html/MariaDBCommitCommand_8cpp_source.html @@ -164,7 +164,7 @@ diff --git a/html/MariaDBCommitCommand_8h.html b/html/MariaDBCommitCommand_8h.html index 4c05939dc2..9459470799 100644 --- a/html/MariaDBCommitCommand_8h.html +++ b/html/MariaDBCommitCommand_8h.html @@ -131,7 +131,7 @@ diff --git a/html/MariaDBCommitCommand_8h_source.html b/html/MariaDBCommitCommand_8h_source.html index 86450cbc4e..74ed995345 100644 --- a/html/MariaDBCommitCommand_8h_source.html +++ b/html/MariaDBCommitCommand_8h_source.html @@ -163,7 +163,7 @@ diff --git a/html/MariaDBConnectCommand_8cpp.html b/html/MariaDBConnectCommand_8cpp.html index 44fa237ee5..089f8a810f 100644 --- a/html/MariaDBConnectCommand_8cpp.html +++ b/html/MariaDBConnectCommand_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/MariaDBConnectCommand_8cpp_source.html b/html/MariaDBConnectCommand_8cpp_source.html index 86ec145dbf..801468cd2a 100644 --- a/html/MariaDBConnectCommand_8cpp_source.html +++ b/html/MariaDBConnectCommand_8cpp_source.html @@ -191,7 +191,7 @@ diff --git a/html/MariaDBConnectCommand_8h.html b/html/MariaDBConnectCommand_8h.html index 121e4437b3..1f1d1b19cb 100644 --- a/html/MariaDBConnectCommand_8h.html +++ b/html/MariaDBConnectCommand_8h.html @@ -132,7 +132,7 @@ diff --git a/html/MariaDBConnectCommand_8h_source.html b/html/MariaDBConnectCommand_8h_source.html index 15e97dffd1..119a608270 100644 --- a/html/MariaDBConnectCommand_8h_source.html +++ b/html/MariaDBConnectCommand_8h_source.html @@ -177,7 +177,7 @@ diff --git a/html/MariaDBConnectionDetails_8h.html b/html/MariaDBConnectionDetails_8h.html index c71c751cc0..1314e7cbea 100644 --- a/html/MariaDBConnectionDetails_8h.html +++ b/html/MariaDBConnectionDetails_8h.html @@ -121,7 +121,7 @@ diff --git a/html/MariaDBConnectionDetails_8h_source.html b/html/MariaDBConnectionDetails_8h_source.html index 448d5eac8f..2c7ae41cd7 100644 --- a/html/MariaDBConnectionDetails_8h_source.html +++ b/html/MariaDBConnectionDetails_8h_source.html @@ -169,7 +169,7 @@ diff --git a/html/MariaDBConnection_8cpp.html b/html/MariaDBConnection_8cpp.html index 8bd857fb2d..fb600af7e2 100644 --- a/html/MariaDBConnection_8cpp.html +++ b/html/MariaDBConnection_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/MariaDBConnection_8cpp_source.html b/html/MariaDBConnection_8cpp_source.html index e98fd47c17..606d0efbe7 100644 --- a/html/MariaDBConnection_8cpp_source.html +++ b/html/MariaDBConnection_8cpp_source.html @@ -128,251 +128,250 @@
29#include "log/Logger.h"
30#include "utils/Timeval.h"
31
-
32#include <algorithm>
-
33#include <mysql.h>
-
34#include <string>
-
35#include <utility>
-
36
-
37#endif /* DOXYGEN_SHOULD_SKIP_THIS */
-
38
-
39namespace database::mariadb {
-
40
- - - - -
45 , mariaDBClient(mariaDBClient)
-
46 , mysql(mysql_init(nullptr))
-
47 , commandStartEvent("MariaDBCommandStartEvent", this) {
-
48 mysql_options(mysql, MYSQL_OPT_NONBLOCK, nullptr);
-
49
-
50 execute_async(std::move(MariaDBCommandSequence().execute_async(new database::mariadb::commands::async::MariaDBConnectCommand(
-
51 connectionDetails,
-
52 [this]() -> void {
-
53 if (mysql_errno(mysql) == 0) {
-
54 const int fd = mysql_get_socket(mysql);
-
55
-
56 LOG(DEBUG) << "MariaDB: Got valid descriptor: " << fd;
-
57
-
58 if (ReadEventReceiver::enable(fd) && WriteEventReceiver::enable(fd) && ExceptionalConditionEventReceiver::enable(fd)) {
-
59 ReadEventReceiver::suspend();
-
60 WriteEventReceiver::suspend();
-
61 ExceptionalConditionEventReceiver::suspend();
-
62
-
63 connected = true;
-
64 } else {
-
65 if (ReadEventReceiver::isEnabled()) {
-
66 ReadEventReceiver::disable();
-
67 }
-
68 if (WriteEventReceiver::isEnabled()) {
-
69 WriteEventReceiver::disable();
-
70 }
-
71 if (ExceptionalConditionEventReceiver::isEnabled()) {
-
72 ExceptionalConditionEventReceiver::disable();
-
73 }
-
74 }
-
75 } else {
-
76 LOG(WARNING) << "MariaDB: Got no valid descriptor: " << mysql_error(mysql) << ", " << mysql_errno(mysql);
-
77 }
-
78 },
-
79 []() -> void {
-
80 LOG(DEBUG) << "MariaDB: Connect success";
-
81 },
-
82 [](const std::string& errorString, unsigned int errorNumber) -> void {
-
83 LOG(WARNING) << "MariaDB: Connect error: " << errorString << " : " << errorNumber;
-
84 }))));
-
85 }
-
86
- -
88 for (MariaDBCommandSequence& mariaDBCommandSequence : commandSequenceQueue) {
-
89 for (MariaDBCommand* mariaDBCommand : mariaDBCommandSequence.sequence()) {
-
90 if (core::SNodeC::state() == core::State::RUNNING && connected) {
-
91 mariaDBCommand->commandError(mysql_error(mysql), mysql_errno(mysql));
-
92 }
-
93
-
94 delete mariaDBCommand;
-
95 }
-
96 }
-
97
-
98 if (mariaDBClient != nullptr) {
- -
100 }
-
101
-
102 mysql_close(mysql);
-
103 mysql_library_end();
-
104 }
-
105
- -
107 if (currentCommand == nullptr && commandSequenceQueue.empty()) {
- -
109 }
-
110
-
111 commandSequenceQueue.emplace_back(std::move(commandSequence));
-
112
-
113 return commandSequenceQueue.back();
-
114 }
-
115
- -
117 mariaDBCommand->commandStart(mysql, utils::Timeval::currentTime());
-
118
-
119 if (mysql_errno(mysql) == 0) {
-
120 if (mariaDBCommand->commandCompleted()) {
-
121 }
-
122 } else {
-
123 mariaDBCommand->commandError(mysql_error(mysql), mysql_errno(mysql));
-
124 }
-
125
-
126 delete mariaDBCommand;
-
127 }
-
128
-
129 void MariaDBConnection::commandStart(const utils::Timeval& currentTime) {
-
130 if (!commandSequenceQueue.empty()) {
-
131 currentCommand = commandSequenceQueue.front().nextCommand();
-
132
-
133 LOG(DEBUG) << "MariaDB: Start: " << currentCommand->commandInfo();
-
134
- -
136 checkStatus(currentCommand->commandStart(mysql, currentTime));
-
137 } else if (mariaDBClient != nullptr) {
- - -
140 }
-
141 } else {
- - - -
145 }
-
146 }
-
147
- -
149 if (currentCommand != nullptr) {
- -
151 } else if ((status & MYSQL_WAIT_READ) != 0 && commandSequenceQueue.empty()) {
- - - -
155 }
-
156 }
-
157
- -
159 LOG(DEBUG) << "MariaDB: Completed: " << currentCommand->commandInfo();
-
160 commandSequenceQueue.front().commandCompleted();
-
161
-
162 if (commandSequenceQueue.front().empty()) {
-
163 commandSequenceQueue.pop_front();
-
164 }
-
165
-
166 delete currentCommand;
-
167 currentCommand = nullptr;
-
168 }
-
169
- -
171 mariaDBClient = nullptr;
-
172 }
-
173
-
174 void MariaDBConnection::checkStatus(int status) {
-
175 if (connected) {
-
176 if ((status & MYSQL_WAIT_READ) != 0) {
- - -
179 }
-
180 } else if (!ReadEventReceiver::isSuspended()) {
- -
182 }
-
183
-
184 if ((status & MYSQL_WAIT_WRITE) != 0) {
- - -
187 }
-
188 } else if (!WriteEventReceiver::isSuspended()) {
- -
190 }
-
191
-
192 if ((status & MYSQL_WAIT_EXCEPT) != 0) {
- - -
195 }
- - -
198 }
-
199
-
200 if ((status & MYSQL_WAIT_TIMEOUT) != 0) {
-
201 ReadEventReceiver::setTimeout(mysql_get_timeout_value(mysql));
-
202 // WriteEventReceiver::setTimeout(mysql_get_timeout_value(mysql));
-
203 // ExceptionalConditionEventReceiver::setTimeout(mysql_get_timeout_value(mysql));
-
204 } else {
- -
206 // WriteEventReceiver::setTimeout(core::DescriptorEventReceiver::TIMEOUT::DEFAULT);
-
207 // ExceptionalConditionEventReceiver::setTimeout(core::DescriptorEventReceiver::TIMEOUT::DEFAULT);
-
208 }
-
209
-
210 if (status == 0) {
-
211 if (mysql_errno(mysql) == 0) {
- - -
214 }
-
215 } else {
-
216 currentCommand->commandError(mysql_error(mysql), mysql_errno(mysql));
- -
218 }
- -
220 }
-
221 } else {
-
222 currentCommand->commandError(mysql_error(mysql), mysql_errno(mysql));
- -
224 delete this;
-
225 }
-
226 }
-
227
- -
229 commandContinue(MYSQL_WAIT_READ);
-
230 }
-
231
- -
233 commandContinue(MYSQL_WAIT_WRITE);
-
234 }
-
235
- -
237 commandContinue(MYSQL_WAIT_EXCEPT);
-
238 }
-
239
- -
241 commandContinue(MYSQL_WAIT_TIMEOUT);
-
242 }
-
243
- -
245 commandContinue(MYSQL_WAIT_TIMEOUT);
-
246 }
-
247
- -
249 commandContinue(MYSQL_WAIT_TIMEOUT);
-
250 }
-
251
- -
253 delete this;
-
254 }
-
255
-
256 MariaDBCommandStartEvent::MariaDBCommandStartEvent(const std::string& name, MariaDBConnection* mariaDBConnection)
-
257 : core::EventReceiver(name)
-
258 , mariaDBConnection(mariaDBConnection) {
-
259 }
-
260
-
261 void MariaDBCommandStartEvent::onEvent(const utils::Timeval& currentTime) {
- -
263 }
-
264
- -
266 delete mariaDBConnection;
-
267 }
-
268
-
269} // namespace database::mariadb
- - - -
void setTimeout(const utils::Timeval &timeout)
- - - +
32#include <mysql.h>
+
33#include <string>
+
34#include <utility>
+
35
+
36#endif /* DOXYGEN_SHOULD_SKIP_THIS */
+
37
+
38namespace database::mariadb {
+
39
+ + + + +
44 , mariaDBClient(mariaDBClient)
+
45 , mysql(mysql_init(nullptr))
+
46 , commandStartEvent("MariaDBCommandStartEvent", this) {
+
47 mysql_options(mysql, MYSQL_OPT_NONBLOCK, nullptr);
+
48
+
49 execute_async(std::move(MariaDBCommandSequence().execute_async(new database::mariadb::commands::async::MariaDBConnectCommand(
+
50 connectionDetails,
+
51 [this]() -> void {
+
52 if (mysql_errno(mysql) == 0) {
+
53 const int fd = mysql_get_socket(mysql);
+
54
+
55 LOG(DEBUG) << "MariaDB: Got valid descriptor: " << fd;
+
56
+
57 if (ReadEventReceiver::enable(fd) && WriteEventReceiver::enable(fd) && ExceptionalConditionEventReceiver::enable(fd)) {
+
58 ReadEventReceiver::suspend();
+
59 WriteEventReceiver::suspend();
+
60 ExceptionalConditionEventReceiver::suspend();
+
61
+
62 connected = true;
+
63 } else {
+
64 if (ReadEventReceiver::isEnabled()) {
+
65 ReadEventReceiver::disable();
+
66 }
+
67 if (WriteEventReceiver::isEnabled()) {
+
68 WriteEventReceiver::disable();
+
69 }
+
70 if (ExceptionalConditionEventReceiver::isEnabled()) {
+
71 ExceptionalConditionEventReceiver::disable();
+
72 }
+
73 }
+
74 } else {
+
75 LOG(WARNING) << "MariaDB: Got no valid descriptor: " << mysql_error(mysql) << ", " << mysql_errno(mysql);
+
76 }
+
77 },
+
78 []() -> void {
+
79 LOG(DEBUG) << "MariaDB: Connect success";
+
80 },
+
81 [](const std::string& errorString, unsigned int errorNumber) -> void {
+
82 LOG(WARNING) << "MariaDB: Connect error: " << errorString << " : " << errorNumber;
+
83 }))));
+
84 }
+
85
+ +
87 for (MariaDBCommandSequence& mariaDBCommandSequence : commandSequenceQueue) {
+
88 for (MariaDBCommand* mariaDBCommand : mariaDBCommandSequence.sequence()) {
+
89 if (core::SNodeC::state() == core::State::RUNNING && connected) {
+
90 mariaDBCommand->commandError(mysql_error(mysql), mysql_errno(mysql));
+
91 }
+
92
+
93 delete mariaDBCommand;
+
94 }
+
95 }
+
96
+
97 if (mariaDBClient != nullptr) {
+ +
99 }
+
100
+
101 mysql_close(mysql);
+
102 mysql_library_end();
+
103 }
+
104
+ +
106 if (currentCommand == nullptr && commandSequenceQueue.empty()) {
+ +
108 }
+
109
+
110 commandSequenceQueue.emplace_back(std::move(commandSequence));
+
111
+
112 return commandSequenceQueue.back();
+
113 }
+
114
+ +
116 mariaDBCommand->commandStart(mysql, utils::Timeval::currentTime());
+
117
+
118 if (mysql_errno(mysql) == 0) {
+
119 if (mariaDBCommand->commandCompleted()) {
+
120 }
+
121 } else {
+
122 mariaDBCommand->commandError(mysql_error(mysql), mysql_errno(mysql));
+
123 }
+
124
+
125 delete mariaDBCommand;
+
126 }
+
127
+
128 void MariaDBConnection::commandStart(const utils::Timeval& currentTime) {
+
129 if (!commandSequenceQueue.empty()) {
+
130 currentCommand = commandSequenceQueue.front().nextCommand();
+
131
+
132 LOG(DEBUG) << "MariaDB: Start: " << currentCommand->commandInfo();
+
133
+ +
135 checkStatus(currentCommand->commandStart(mysql, currentTime));
+
136 } else if (mariaDBClient != nullptr) {
+ + +
139 }
+
140 } else {
+ + + +
144 }
+
145 }
+
146
+ +
148 if (currentCommand != nullptr) {
+ +
150 } else if ((status & MYSQL_WAIT_READ) != 0 && commandSequenceQueue.empty()) {
+ + + +
154 }
+
155 }
+
156
+ +
158 LOG(DEBUG) << "MariaDB: Completed: " << currentCommand->commandInfo();
+
159 commandSequenceQueue.front().commandCompleted();
+
160
+
161 if (commandSequenceQueue.front().empty()) {
+
162 commandSequenceQueue.pop_front();
+
163 }
+
164
+
165 delete currentCommand;
+
166 currentCommand = nullptr;
+
167 }
+
168
+ +
170 mariaDBClient = nullptr;
+
171 }
+
172
+
173 void MariaDBConnection::checkStatus(int status) {
+
174 if (connected) {
+
175 if ((status & MYSQL_WAIT_READ) != 0) {
+ + +
178 }
+
179 } else if (!ReadEventReceiver::isSuspended()) {
+ +
181 }
+
182
+
183 if ((status & MYSQL_WAIT_WRITE) != 0) {
+ + +
186 }
+
187 } else if (!WriteEventReceiver::isSuspended()) {
+ +
189 }
+
190
+
191 if ((status & MYSQL_WAIT_EXCEPT) != 0) {
+ + +
194 }
+ + +
197 }
+
198
+
199 if ((status & MYSQL_WAIT_TIMEOUT) != 0) {
+
200 ReadEventReceiver::setTimeout(mysql_get_timeout_value(mysql));
+
201 // WriteEventReceiver::setTimeout(mysql_get_timeout_value(mysql));
+
202 // ExceptionalConditionEventReceiver::setTimeout(mysql_get_timeout_value(mysql));
+
203 } else {
+ +
205 // WriteEventReceiver::setTimeout(core::DescriptorEventReceiver::TIMEOUT::DEFAULT);
+
206 // ExceptionalConditionEventReceiver::setTimeout(core::DescriptorEventReceiver::TIMEOUT::DEFAULT);
+
207 }
+
208
+
209 if (status == 0) {
+
210 if (mysql_errno(mysql) == 0) {
+ + +
213 }
+
214 } else {
+
215 currentCommand->commandError(mysql_error(mysql), mysql_errno(mysql));
+ +
217 }
+ +
219 }
+
220 } else {
+
221 currentCommand->commandError(mysql_error(mysql), mysql_errno(mysql));
+ +
223 delete this;
+
224 }
+
225 }
+
226
+ +
228 commandContinue(MYSQL_WAIT_READ);
+
229 }
+
230
+ +
232 commandContinue(MYSQL_WAIT_WRITE);
+
233 }
+
234
+ +
236 commandContinue(MYSQL_WAIT_EXCEPT);
+
237 }
+
238
+ +
240 commandContinue(MYSQL_WAIT_TIMEOUT);
+
241 }
+
242
+ +
244 commandContinue(MYSQL_WAIT_TIMEOUT);
+
245 }
+
246
+ +
248 commandContinue(MYSQL_WAIT_TIMEOUT);
+
249 }
+
250
+ +
252 delete this;
+
253 }
+
254
+
255 MariaDBCommandStartEvent::MariaDBCommandStartEvent(const std::string& name, MariaDBConnection* mariaDBConnection)
+
256 : core::EventReceiver(name)
+
257 , mariaDBConnection(mariaDBConnection) {
+
258 }
+
259
+
260 void MariaDBCommandStartEvent::onEvent(const utils::Timeval& currentTime) {
+ +
262 }
+
263
+ +
265 delete mariaDBConnection;
+
266 }
+
267
+
268} // namespace database::mariadb
+ + + +
void setTimeout(const utils::Timeval &timeout)
+ + +
EventReceiver(const std::string &name)
@@ -383,41 +382,41 @@ - + -
void onEvent(const utils::Timeval &currentTime) override
+
void onEvent(const utils::Timeval &currentTime) override
virtual int commandContinue(int status)=0
void setMariaDBConnection(MariaDBConnection *mariaDBConnection)
- +
MariaDBCommandStartEvent commandStartEvent
- - - - - - + + + + + + -
MariaDBCommandSequence & execute_async(MariaDBCommandSequence &&commandSequence)
-
MariaDBConnection(MariaDBClient *mariaDBClient, const MariaDBConnectionDetails &connectionDetails)
- +
MariaDBCommandSequence & execute_async(MariaDBCommandSequence &&commandSequence)
+
MariaDBConnection(MariaDBClient *mariaDBClient, const MariaDBConnectionDetails &connectionDetails)
+ - - -
void commandStart(const utils::Timeval &currentTime)
-
void execute_sync(MariaDBCommand *mariaDBCommand)
+ + +
void commandStart(const utils::Timeval &currentTime)
+
void execute_sync(MariaDBCommand *mariaDBCommand)
- - + + - - - + + + @@ -425,7 +424,7 @@ diff --git a/html/MariaDBConnection_8h.html b/html/MariaDBConnection_8h.html index e0f8aad7e1..f754a6da75 100644 --- a/html/MariaDBConnection_8h.html +++ b/html/MariaDBConnection_8h.html @@ -132,7 +132,7 @@ diff --git a/html/MariaDBConnection_8h_source.html b/html/MariaDBConnection_8h_source.html index 689375df9e..1c5e9ac4af 100644 --- a/html/MariaDBConnection_8h_source.html +++ b/html/MariaDBConnection_8h_source.html @@ -242,37 +242,37 @@
MariaDBCommandSequence & execute_async(MariaDBCommand *mariaDBCommand) final
- + -
void onEvent(const utils::Timeval &currentTime) override
-
MariaDBCommandStartEvent(const std::string &name, MariaDBConnection *mariaDBConnection)
+
void onEvent(const utils::Timeval &currentTime) override
+
MariaDBCommandStartEvent(const std::string &name, MariaDBConnection *mariaDBConnection)
- +
MariaDBCommandStartEvent commandStartEvent
- - - - + + + +
std::deque< MariaDBCommandSequence > commandSequenceQueue
- - + + -
MariaDBCommandSequence & execute_async(MariaDBCommandSequence &&commandSequence)
-
MariaDBConnection(MariaDBClient *mariaDBClient, const MariaDBConnectionDetails &connectionDetails)
- +
MariaDBCommandSequence & execute_async(MariaDBCommandSequence &&commandSequence)
+
MariaDBConnection(MariaDBClient *mariaDBClient, const MariaDBConnectionDetails &connectionDetails)
+ - - -
void commandStart(const utils::Timeval &currentTime)
-
void execute_sync(MariaDBCommand *mariaDBCommand)
+ + +
void commandStart(const utils::Timeval &currentTime)
+
void execute_sync(MariaDBCommand *mariaDBCommand)
MariaDBConnection(const MariaDBConnection &)=delete
- +
MariaDBConnection & operator=(const MariaDBConnection &)=delete
- + @@ -284,7 +284,7 @@ diff --git a/html/MariaDBExecCommand_8cpp.html b/html/MariaDBExecCommand_8cpp.html index 83f9940611..c58bd564fd 100644 --- a/html/MariaDBExecCommand_8cpp.html +++ b/html/MariaDBExecCommand_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/MariaDBExecCommand_8cpp_source.html b/html/MariaDBExecCommand_8cpp_source.html index 49d8d618b3..9ef95a2355 100644 --- a/html/MariaDBExecCommand_8cpp_source.html +++ b/html/MariaDBExecCommand_8cpp_source.html @@ -173,7 +173,7 @@ diff --git a/html/MariaDBExecCommand_8h.html b/html/MariaDBExecCommand_8h.html index 416a77a71a..f4ea5ea140 100644 --- a/html/MariaDBExecCommand_8h.html +++ b/html/MariaDBExecCommand_8h.html @@ -131,7 +131,7 @@ diff --git a/html/MariaDBExecCommand_8h_source.html b/html/MariaDBExecCommand_8h_source.html index 42a0593bfc..3acdccce31 100644 --- a/html/MariaDBExecCommand_8h_source.html +++ b/html/MariaDBExecCommand_8h_source.html @@ -169,7 +169,7 @@ diff --git a/html/MariaDBFetchRowCommand_8cpp.html b/html/MariaDBFetchRowCommand_8cpp.html index 91197d2f1a..289f5ee68b 100644 --- a/html/MariaDBFetchRowCommand_8cpp.html +++ b/html/MariaDBFetchRowCommand_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/MariaDBFetchRowCommand_8cpp_source.html b/html/MariaDBFetchRowCommand_8cpp_source.html index f12846bfec..d1cd346d64 100644 --- a/html/MariaDBFetchRowCommand_8cpp_source.html +++ b/html/MariaDBFetchRowCommand_8cpp_source.html @@ -173,7 +173,7 @@ diff --git a/html/MariaDBFetchRowCommand_8h.html b/html/MariaDBFetchRowCommand_8h.html index 8e79a6a3e6..8c4e7cc976 100644 --- a/html/MariaDBFetchRowCommand_8h.html +++ b/html/MariaDBFetchRowCommand_8h.html @@ -131,7 +131,7 @@ diff --git a/html/MariaDBFetchRowCommand_8h_source.html b/html/MariaDBFetchRowCommand_8h_source.html index 2ef5623dd4..04d7cfbf1c 100644 --- a/html/MariaDBFetchRowCommand_8h_source.html +++ b/html/MariaDBFetchRowCommand_8h_source.html @@ -166,7 +166,7 @@ diff --git a/html/MariaDBFieldCountCommand_8cpp.html b/html/MariaDBFieldCountCommand_8cpp.html index e4fd982e41..6fe2ff0812 100644 --- a/html/MariaDBFieldCountCommand_8cpp.html +++ b/html/MariaDBFieldCountCommand_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/MariaDBFieldCountCommand_8cpp_source.html b/html/MariaDBFieldCountCommand_8cpp_source.html index afaab558f0..cc51a57d13 100644 --- a/html/MariaDBFieldCountCommand_8cpp_source.html +++ b/html/MariaDBFieldCountCommand_8cpp_source.html @@ -161,7 +161,7 @@ diff --git a/html/MariaDBFieldCountCommand_8h.html b/html/MariaDBFieldCountCommand_8h.html index 79c687e0c1..baeac15cae 100644 --- a/html/MariaDBFieldCountCommand_8h.html +++ b/html/MariaDBFieldCountCommand_8h.html @@ -131,7 +131,7 @@ diff --git a/html/MariaDBFieldCountCommand_8h_source.html b/html/MariaDBFieldCountCommand_8h_source.html index f418b1acf8..3373a2c90d 100644 --- a/html/MariaDBFieldCountCommand_8h_source.html +++ b/html/MariaDBFieldCountCommand_8h_source.html @@ -161,7 +161,7 @@ diff --git a/html/MariaDBFreeResultCommand_8cpp.html b/html/MariaDBFreeResultCommand_8cpp.html index 1955b67717..f221def032 100644 --- a/html/MariaDBFreeResultCommand_8cpp.html +++ b/html/MariaDBFreeResultCommand_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/MariaDBFreeResultCommand_8cpp_source.html b/html/MariaDBFreeResultCommand_8cpp_source.html index 0eebe9411d..c0e08d8bb4 100644 --- a/html/MariaDBFreeResultCommand_8cpp_source.html +++ b/html/MariaDBFreeResultCommand_8cpp_source.html @@ -181,7 +181,7 @@ diff --git a/html/MariaDBFreeResultCommand_8h.html b/html/MariaDBFreeResultCommand_8h.html index bb180c730c..ecf8deec31 100644 --- a/html/MariaDBFreeResultCommand_8h.html +++ b/html/MariaDBFreeResultCommand_8h.html @@ -131,7 +131,7 @@ diff --git a/html/MariaDBFreeResultCommand_8h_source.html b/html/MariaDBFreeResultCommand_8h_source.html index d82cb43001..063c5a596a 100644 --- a/html/MariaDBFreeResultCommand_8h_source.html +++ b/html/MariaDBFreeResultCommand_8h_source.html @@ -166,7 +166,7 @@ diff --git a/html/MariaDBQueryCommand_8cpp.html b/html/MariaDBQueryCommand_8cpp.html index 1ad5342000..c0b6d5f128 100644 --- a/html/MariaDBQueryCommand_8cpp.html +++ b/html/MariaDBQueryCommand_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/MariaDBQueryCommand_8cpp_source.html b/html/MariaDBQueryCommand_8cpp_source.html index e1a378c521..c99a57a50e 100644 --- a/html/MariaDBQueryCommand_8cpp_source.html +++ b/html/MariaDBQueryCommand_8cpp_source.html @@ -173,7 +173,7 @@ diff --git a/html/MariaDBQueryCommand_8h.html b/html/MariaDBQueryCommand_8h.html index f426d28372..38b427383d 100644 --- a/html/MariaDBQueryCommand_8h.html +++ b/html/MariaDBQueryCommand_8h.html @@ -131,7 +131,7 @@ diff --git a/html/MariaDBQueryCommand_8h_source.html b/html/MariaDBQueryCommand_8h_source.html index 1a46e381f5..de36ec864d 100644 --- a/html/MariaDBQueryCommand_8h_source.html +++ b/html/MariaDBQueryCommand_8h_source.html @@ -169,7 +169,7 @@ diff --git a/html/MariaDBRollbackCommand_8cpp.html b/html/MariaDBRollbackCommand_8cpp.html index 2e46e732a8..e7ad0634f6 100644 --- a/html/MariaDBRollbackCommand_8cpp.html +++ b/html/MariaDBRollbackCommand_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/MariaDBRollbackCommand_8cpp_source.html b/html/MariaDBRollbackCommand_8cpp_source.html index 042d432512..4e1a51cf40 100644 --- a/html/MariaDBRollbackCommand_8cpp_source.html +++ b/html/MariaDBRollbackCommand_8cpp_source.html @@ -164,7 +164,7 @@ diff --git a/html/MariaDBRollbackCommand_8h.html b/html/MariaDBRollbackCommand_8h.html index 495e868ae8..0374edb2ba 100644 --- a/html/MariaDBRollbackCommand_8h.html +++ b/html/MariaDBRollbackCommand_8h.html @@ -131,7 +131,7 @@ diff --git a/html/MariaDBRollbackCommand_8h_source.html b/html/MariaDBRollbackCommand_8h_source.html index d0b277328c..e061a62611 100644 --- a/html/MariaDBRollbackCommand_8h_source.html +++ b/html/MariaDBRollbackCommand_8h_source.html @@ -163,7 +163,7 @@ diff --git a/html/MariaDBUseResultCommand_8cpp.html b/html/MariaDBUseResultCommand_8cpp.html index 171218751f..bedc65f7b5 100644 --- a/html/MariaDBUseResultCommand_8cpp.html +++ b/html/MariaDBUseResultCommand_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/MariaDBUseResultCommand_8cpp_source.html b/html/MariaDBUseResultCommand_8cpp_source.html index ab12f46be9..97666ada59 100644 --- a/html/MariaDBUseResultCommand_8cpp_source.html +++ b/html/MariaDBUseResultCommand_8cpp_source.html @@ -161,7 +161,7 @@ diff --git a/html/MariaDBUseResultCommand_8h.html b/html/MariaDBUseResultCommand_8h.html index d639c506a9..f2adf26c10 100644 --- a/html/MariaDBUseResultCommand_8h.html +++ b/html/MariaDBUseResultCommand_8h.html @@ -131,7 +131,7 @@ diff --git a/html/MariaDBUseResultCommand_8h_source.html b/html/MariaDBUseResultCommand_8h_source.html index f66688b9aa..ee2fc93d41 100644 --- a/html/MariaDBUseResultCommand_8h_source.html +++ b/html/MariaDBUseResultCommand_8h_source.html @@ -161,7 +161,7 @@ diff --git a/html/Message_8cpp.html b/html/Message_8cpp.html index eed0678a9d..a4a9af7313 100644 --- a/html/Message_8cpp.html +++ b/html/Message_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/Message_8cpp_source.html b/html/Message_8cpp_source.html index a62a4d09af..a33e7889d4 100644 --- a/html/Message_8cpp_source.html +++ b/html/Message_8cpp_source.html @@ -215,7 +215,7 @@ diff --git a/html/Message_8h.html b/html/Message_8h.html index 128a442df7..e1bf281d4d 100644 --- a/html/Message_8h.html +++ b/html/Message_8h.html @@ -125,7 +125,7 @@ diff --git a/html/Message_8h_source.html b/html/Message_8h_source.html index 156de2f69a..f149f59fc3 100644 --- a/html/Message_8h_source.html +++ b/html/Message_8h_source.html @@ -247,7 +247,7 @@ diff --git a/html/MiddlewareDispatcher_8cpp.html b/html/MiddlewareDispatcher_8cpp.html index ded8b725e5..1dfa5f0e9f 100644 --- a/html/MiddlewareDispatcher_8cpp.html +++ b/html/MiddlewareDispatcher_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/MiddlewareDispatcher_8cpp_source.html b/html/MiddlewareDispatcher_8cpp_source.html index b8257579b7..c3e2662f5a 100644 --- a/html/MiddlewareDispatcher_8cpp_source.html +++ b/html/MiddlewareDispatcher_8cpp_source.html @@ -200,7 +200,7 @@ diff --git a/html/MiddlewareDispatcher_8h.html b/html/MiddlewareDispatcher_8h.html index e5a69a0cae..338ab8f7f4 100644 --- a/html/MiddlewareDispatcher_8h.html +++ b/html/MiddlewareDispatcher_8h.html @@ -127,7 +127,7 @@ diff --git a/html/MiddlewareDispatcher_8h_source.html b/html/MiddlewareDispatcher_8h_source.html index 062ad6be30..c0e13e998b 100644 --- a/html/MiddlewareDispatcher_8h_source.html +++ b/html/MiddlewareDispatcher_8h_source.html @@ -187,7 +187,7 @@ diff --git a/html/MimeTypes_8cpp.html b/html/MimeTypes_8cpp.html index 9879075ee3..618d166b42 100644 --- a/html/MimeTypes_8cpp.html +++ b/html/MimeTypes_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/MimeTypes_8cpp_source.html b/html/MimeTypes_8cpp_source.html index efe5d7ce17..782799626c 100644 --- a/html/MimeTypes_8cpp_source.html +++ b/html/MimeTypes_8cpp_source.html @@ -366,7 +366,7 @@ diff --git a/html/MimeTypes_8h.html b/html/MimeTypes_8h.html index 63a5a2c3fe..673894f69a 100644 --- a/html/MimeTypes_8h.html +++ b/html/MimeTypes_8h.html @@ -121,7 +121,7 @@ diff --git a/html/MimeTypes_8h_source.html b/html/MimeTypes_8h_source.html index 2d329ea625..d3051cd2ce 100644 --- a/html/MimeTypes_8h_source.html +++ b/html/MimeTypes_8h_source.html @@ -169,7 +169,7 @@ diff --git a/html/MountPoint_8cpp.html b/html/MountPoint_8cpp.html index 7328761d09..6c0df7d344 100644 --- a/html/MountPoint_8cpp.html +++ b/html/MountPoint_8cpp.html @@ -114,7 +114,7 @@ diff --git a/html/MountPoint_8cpp_source.html b/html/MountPoint_8cpp_source.html index ff7665505c..df3a27e7e6 100644 --- a/html/MountPoint_8cpp_source.html +++ b/html/MountPoint_8cpp_source.html @@ -141,7 +141,7 @@ diff --git a/html/MountPoint_8h.html b/html/MountPoint_8h.html index 8204215570..d30a3e242b 100644 --- a/html/MountPoint_8h.html +++ b/html/MountPoint_8h.html @@ -119,7 +119,7 @@ diff --git a/html/MountPoint_8h_source.html b/html/MountPoint_8h_source.html index 20ea661c76..45ae9a41e6 100644 --- a/html/MountPoint_8h_source.html +++ b/html/MountPoint_8h_source.html @@ -267,26 +267,26 @@
Route & trace(const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const
Definition Route.cpp:86
- -
constexpr AttributeProxy(const Attribute &attribute)
- -
constexpr Attribute & operator*()
- -
constexpr bool setAttribute(const Attribute &&attribute, const std::string &subKey="", bool overwrite=false)
-
constexpr bool hasAttribute(const std::string &subKey="") const
-
constexpr bool delAttribute(const std::string &subKey="")
-
bool getAttribute(const std::function< void(Attribute &)> &onFound, const std::string &subKey="") const
-
std::map< std::string, std::shared_ptr< void > > attributes
-
void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound, const std::string &subKey="") const
-
constexpr bool setAttribute(const Attribute &attribute, const std::string &subKey="", bool overwrite=false)
- - -
constexpr void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound) const
- -
constexpr bool setAttribute(const Attribute &attribute, bool overwrite=false)
-
constexpr bool setAttribute(const Attribute &&attribute, bool overwrite=false)
-
std::shared_ptr< void > attribute
-
constexpr bool getAttribute(const std::function< void(Attribute &)> &onFound) const
+ +
constexpr AttributeProxy(const Attribute &attribute)
+ +
constexpr Attribute & operator*()
+ +
constexpr bool setAttribute(const Attribute &&attribute, const std::string &subKey="", bool overwrite=false)
+
constexpr bool hasAttribute(const std::string &subKey="") const
+
constexpr bool delAttribute(const std::string &subKey="")
+
bool getAttribute(const std::function< void(Attribute &)> &onFound, const std::string &subKey="") const
+
std::map< std::string, std::shared_ptr< void > > attributes
+
void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound, const std::string &subKey="") const
+
constexpr bool setAttribute(const Attribute &attribute, const std::string &subKey="", bool overwrite=false)
+ + +
constexpr void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound) const
+ +
constexpr bool setAttribute(const Attribute &attribute, bool overwrite=false)
+
constexpr bool setAttribute(const Attribute &&attribute, bool overwrite=false)
+
std::shared_ptr< void > attribute
+
constexpr bool getAttribute(const std::function< void(Attribute &)> &onFound) const
@@ -301,17 +301,17 @@
MountPoint(const std::string &method, const std::string &relativeMountPath)
std::string method
Definition MountPoint.h:34
std::string relativeMountPath
Definition MountPoint.h:35
- - -
constexpr fixed_string(char const *s)
-
constexpr operator char const *() const
+ + +
constexpr fixed_string(char const *s)
+
constexpr operator char const *() const
diff --git a/html/MqttContext_8cpp.html b/html/MqttContext_8cpp.html index 9ff091d3ad..c13612e383 100644 --- a/html/MqttContext_8cpp.html +++ b/html/MqttContext_8cpp.html @@ -117,7 +117,7 @@ diff --git a/html/MqttContext_8cpp_source.html b/html/MqttContext_8cpp_source.html index 8e3604a7ca..c98b1257a8 100644 --- a/html/MqttContext_8cpp_source.html +++ b/html/MqttContext_8cpp_source.html @@ -172,7 +172,7 @@ diff --git a/html/MqttContext_8h.html b/html/MqttContext_8h.html index f3795a7ece..c95e29d525 100644 --- a/html/MqttContext_8h.html +++ b/html/MqttContext_8h.html @@ -127,7 +127,7 @@ diff --git a/html/MqttContext_8h_source.html b/html/MqttContext_8h_source.html index af85d29a39..a74145a94a 100644 --- a/html/MqttContext_8h_source.html +++ b/html/MqttContext_8h_source.html @@ -194,7 +194,7 @@ diff --git a/html/Mqtt_8cpp.html b/html/Mqtt_8cpp.html index ccca5fc517..82f1aad96a 100644 --- a/html/Mqtt_8cpp.html +++ b/html/Mqtt_8cpp.html @@ -125,7 +125,7 @@ diff --git a/html/Mqtt_8cpp_source.html b/html/Mqtt_8cpp_source.html index 6da8ace3d3..28a03fc342 100644 --- a/html/Mqtt_8cpp_source.html +++ b/html/Mqtt_8cpp_source.html @@ -131,12 +131,12 @@
32#ifndef DOXYGEN_SHOULD_SKIP_THIS
33
34#include "log/Logger.h"
-
35
-
36#include <functional>
-
37#include <iomanip>
-
38#include <map>
-
39#include <set>
-
40#include <sstream>
+
35#include "utils/hexdump.h"
+
36
+
37#include <functional>
+
38#include <iomanip>
+
39#include <map>
+
40#include <set>
41#include <utility>
42
43#endif // DOXYGEN_SHOULD_SKIP_THIS
@@ -277,7 +277,7 @@
178 }
179
180 void Mqtt::send(const std::vector<char>& data) const {
-
181 LOG(TRACE) << "MQTT: Send data:\n" << dataToHexString(data);
+
181 LOG(TRACE) << "MQTT: Send data:\n" << toHexString(data);
182
183 mqttContext->send(data.data(), data.size());
184 }
@@ -330,7 +330,7 @@
231 bool deliver = true;
232
233 LOG(DEBUG) << "MQTT: Topic: " << publish.getTopic();
-
234 LOG(DEBUG) << "MQTT: Message:\n" << stringToHexString(publish.getMessage());
+
234 LOG(DEBUG) << "MQTT: Message:\n" << toHexString(publish.getMessage());
235 LOG(DEBUG) << "MQTT: QoS: " << static_cast<uint16_t>(publish.getQoS());
236 LOG(DEBUG) << "MQTT: PacketIdentifier: " << publish.getPacketIdentifier();
237 LOG(DEBUG) << "MQTT: DUP: " << publish.getDup();
@@ -423,61 +423,46 @@
324 }
325
326 void Mqtt::printVP(const iot::mqtt::ControlPacket& packet) const {
-
327 LOG(TRACE) << "MQTT: Received data (variable header and payload):\n" << dataToHexString(packet.serializeVP());
-
328
-
329 LOG(INFO) << "MQTT: " << packet.getName() << " received: " << clientId;
-
330 }
+
327 std::string hexString = toHexString(packet.serializeVP());
+
328 if (!hexString.empty()) {
+
329 LOG(TRACE) << "MQTT: Received data (variable header and payload):\n" << hexString;
+
330 }
331
-
332 void Mqtt::printFixedHeader(const FixedHeader& fixedHeader) {
-
333 LOG(DEBUG) << "MQTT: ======================================================";
+
332 LOG(INFO) << "MQTT: " << packet.getName() << " received: " << clientId;
+
333 }
334
-
335 LOG(TRACE) << "MQTT: Received data (fixed header):\n" << dataToHexString(fixedHeader.serialize());
-
336
-
337 LOG(DEBUG) << "MQTT: Fixed Header: PacketType: 0x" << std::hex << std::setfill('0') << std::setw(2)
-
338 << static_cast<uint16_t>(fixedHeader.getType()) << " (" << iot::mqtt::mqttPackageName[fixedHeader.getType()] << ")";
-
339 LOG(DEBUG) << "MQTT: PacketFlags: 0x" << std::hex << std::setfill('0') << std::setw(2)
-
340 << static_cast<uint16_t>(fixedHeader.getFlags()) << std::dec;
-
341 LOG(DEBUG) << "MQTT: RemainingLength: " << fixedHeader.getRemainingLength();
-
342 }
-
343
-
344 std::string Mqtt::dataToHexString(const std::vector<char>& data) {
-
345 std::stringstream ss;
+
335 void Mqtt::printFixedHeader(const FixedHeader& fixedHeader) {
+
336 LOG(DEBUG) << "MQTT: ======================================================";
+
337
+
338 LOG(TRACE) << "MQTT: Received data (fixed header):\n" << toHexString(fixedHeader.serialize());
+
339
+
340 LOG(DEBUG) << "MQTT: Fixed Header: PacketType: 0x" << std::hex << std::setfill('0') << std::setw(2)
+
341 << static_cast<uint16_t>(fixedHeader.getType()) << " (" << iot::mqtt::mqttPackageName[fixedHeader.getType()] << ")";
+
342 LOG(DEBUG) << "MQTT: PacketFlags: 0x" << std::hex << std::setfill('0') << std::setw(2)
+
343 << static_cast<uint16_t>(fixedHeader.getFlags()) << std::dec;
+
344 LOG(DEBUG) << "MQTT: RemainingLength: " << fixedHeader.getRemainingLength();
+
345 }
346
-
347 ss << " ";
-
348
-
349 if (!data.empty()) {
-
350 unsigned long i = 0;
-
351 for (const char ch : data) {
-
352 if (i != 0 && i % 8 == 0 && i != data.size()) {
-
353 ss << std::endl;
-
354 ss << " ";
-
355 }
-
356 ++i;
-
357 ss << "0x" << std::hex << std::setfill('0') << std::setw(2) << static_cast<uint16_t>(static_cast<uint8_t>(ch))
-
358 << " "; // << " | ";
-
359 }
-
360 } else {
-
361 ss << "<EMPTY>";
-
362 }
-
363
-
364 return ss.str();
-
365 }
-
366
-
367 std::string Mqtt::stringToHexString(const std::string& data) {
-
368 return dataToHexString(std::vector<char>(data.begin(), data.end()));
-
369 }
-
370
- - -
373
-
374 if (_packetIdentifier == 0) {
- -
376 }
-
377
-
378 return _packetIdentifier;
-
379 }
-
380
-
381} // namespace iot::mqtt
+
347 std::string Mqtt::toHexString(const std::vector<char>& data) {
+
348 std::string hexDump = utils::hexDump(data, 32);
+
349 return !hexDump.empty() ? std::string(32, ' ').append(hexDump) : "";
+
350 }
+
351
+
352 std::string Mqtt::toHexString(const std::string& data) {
+
353 return toHexString(std::vector<char>(data.begin(), data.end()));
+
354 }
+
355
+ + +
358
+
359 if (_packetIdentifier == 0) {
+ +
361 }
+
362
+
363 return _packetIdentifier;
+
364 }
+
365
+
366} // namespace iot::mqtt
void restart()
Definition Timer.cpp:68
void cancel()
Definition Timer.cpp:62
@@ -508,13 +493,14 @@
virtual void close()=0
MqttContext * mqttContext
Definition Mqtt.h:135
+
static std::string toHexString(const std::string &data)
Definition Mqtt.cpp:352
virtual void onConnected()
Definition Mqtt.cpp:64
+
static std::string toHexString(const std::vector< char > &data)
Definition Mqtt.cpp:347
virtual void onPubcomp(const iot::mqtt::packets::Pubcomp &pubcomp)
Definition Mqtt.cpp:227
virtual void onPublish(const iot::mqtt::packets::Publish &publish)
Definition Mqtt.cpp:215
core::timer::Timer keepAliveTimer
Definition Mqtt.h:128
Mqtt(const std::string &clientId)
Definition Mqtt.cpp:47
iot::mqtt::FixedHeader fixedHeader
Definition Mqtt.h:123
-
static std::string stringToHexString(const std::string &data)
Definition Mqtt.cpp:367
std::size_t onReceivedFromPeer()
Definition Mqtt.cpp:68
virtual void onDisconnected()
Definition Mqtt.cpp:135
void send(const std::vector< char > &data) const
Definition Mqtt.cpp:180
@@ -524,7 +510,7 @@
void _onPubrec(const iot::mqtt::packets::Pubrec &pubrec)
Definition Mqtt.cpp:281
virtual void deliverPacket(iot::mqtt::ControlPacketDeserializer *controlPacketDeserializer)=0
void sendPubrel(uint16_t packetIdentifier) const
Definition Mqtt.cpp:207
-
uint16_t getPacketIdentifier()
Definition Mqtt.cpp:371
+
uint16_t getPacketIdentifier()
Definition Mqtt.cpp:356
bool _onPublish(const iot::mqtt::packets::Publish &publish)
Definition Mqtt.cpp:230
virtual iot::mqtt::ControlPacketDeserializer * createControlPacketDeserializer(iot::mqtt::FixedHeader &staticHeader)=0
void sendPublish(const std::string &topic, const std::string &message, uint8_t qoS, bool retain)
Definition Mqtt.cpp:186
@@ -533,7 +519,6 @@
Session * session
Definition Mqtt.h:132
void _onPubrel(const iot::mqtt::packets::Pubrel &pubrel)
Definition Mqtt.cpp:297
-
static std::string dataToHexString(const std::vector< char > &data)
Definition Mqtt.cpp:344
virtual void onPubrec(const iot::mqtt::packets::Pubrec &pubrec)
Definition Mqtt.cpp:221
virtual void onPubrel(const iot::mqtt::packets::Pubrel &pubrel)
Definition Mqtt.cpp:224
void send(const iot::mqtt::ControlPacket &controlPacket) const
Definition Mqtt.cpp:174
@@ -544,7 +529,7 @@
iot::mqtt::ControlPacketDeserializer * controlPacketDeserializer
Definition Mqtt.h:124
void sendPubcomp(uint16_t packetIdentifier) const
Definition Mqtt.cpp:211
void sendPubrec(uint16_t packetIdentifier) const
Definition Mqtt.cpp:203
-
static void printFixedHeader(const iot::mqtt::FixedHeader &fixedHeader)
Definition Mqtt.cpp:332
+
static void printFixedHeader(const iot::mqtt::FixedHeader &fixedHeader)
Definition Mqtt.cpp:335
void _onPubcomp(const iot::mqtt::packets::Pubcomp &pubcomp)
Definition Mqtt.cpp:312
void _onPuback(const iot::mqtt::packets::Puback &puback)
Definition Mqtt.cpp:270
@@ -580,13 +565,14 @@
const std::vector< std::string > mqttPackageName
+
std::string hexDump(const std::vector< char > &bytes, int prefixLength)
Definition hexdump.cpp:36
diff --git a/html/Mqtt_8h.html b/html/Mqtt_8h.html index 81b012a3c3..909b11dd1a 100644 --- a/html/Mqtt_8h.html +++ b/html/Mqtt_8h.html @@ -136,7 +136,7 @@ diff --git a/html/Mqtt_8h_source.html b/html/Mqtt_8h_source.html index fc2564119b..49b2ec38fd 100644 --- a/html/Mqtt_8h_source.html +++ b/html/Mqtt_8h_source.html @@ -206,8 +206,8 @@
107 void send(const iot::mqtt::ControlPacket& controlPacket) const;
108
109 public:
-
110 static std::string dataToHexString(const std::vector<char>& data);
-
111 static std::string stringToHexString(const std::string& data);
+
110 static std::string toHexString(const std::vector<char>& data);
+
111 static std::string toHexString(const std::string& data);
112
113 private:
114 void send(const std::vector<char>& data) const;
@@ -262,13 +262,14 @@
MqttContext * mqttContext
Definition Mqtt.h:135
+
static std::string toHexString(const std::string &data)
Definition Mqtt.cpp:352
virtual void onConnected()
Definition Mqtt.cpp:64
+
static std::string toHexString(const std::vector< char > &data)
Definition Mqtt.cpp:347
virtual void onPubcomp(const iot::mqtt::packets::Pubcomp &pubcomp)
Definition Mqtt.cpp:227
virtual void onPublish(const iot::mqtt::packets::Publish &publish)
Definition Mqtt.cpp:215
core::timer::Timer keepAliveTimer
Definition Mqtt.h:128
Mqtt(const std::string &clientId)
Definition Mqtt.cpp:47
iot::mqtt::FixedHeader fixedHeader
Definition Mqtt.h:123
-
static std::string stringToHexString(const std::string &data)
Definition Mqtt.cpp:367
std::size_t onReceivedFromPeer()
Definition Mqtt.cpp:68
virtual void onDisconnected()
Definition Mqtt.cpp:135
void send(const std::vector< char > &data) const
Definition Mqtt.cpp:180
@@ -278,7 +279,7 @@
void _onPubrec(const iot::mqtt::packets::Pubrec &pubrec)
Definition Mqtt.cpp:281
virtual void deliverPacket(iot::mqtt::ControlPacketDeserializer *controlPacketDeserializer)=0
void sendPubrel(uint16_t packetIdentifier) const
Definition Mqtt.cpp:207
-
uint16_t getPacketIdentifier()
Definition Mqtt.cpp:371
+
uint16_t getPacketIdentifier()
Definition Mqtt.cpp:356
bool _onPublish(const iot::mqtt::packets::Publish &publish)
Definition Mqtt.cpp:230
virtual iot::mqtt::ControlPacketDeserializer * createControlPacketDeserializer(iot::mqtt::FixedHeader &staticHeader)=0
Mqtt & operator=(Mqtt &&)=delete
@@ -289,7 +290,6 @@
Session * session
Definition Mqtt.h:132
void _onPubrel(const iot::mqtt::packets::Pubrel &pubrel)
Definition Mqtt.cpp:297
-
static std::string dataToHexString(const std::vector< char > &data)
Definition Mqtt.cpp:344
virtual void onPubrec(const iot::mqtt::packets::Pubrec &pubrec)
Definition Mqtt.cpp:221
virtual void onPubrel(const iot::mqtt::packets::Pubrel &pubrel)
Definition Mqtt.cpp:224
void send(const iot::mqtt::ControlPacket &controlPacket) const
Definition Mqtt.cpp:174
@@ -304,7 +304,7 @@
iot::mqtt::ControlPacketDeserializer * controlPacketDeserializer
Definition Mqtt.h:124
void sendPubcomp(uint16_t packetIdentifier) const
Definition Mqtt.cpp:211
void sendPubrec(uint16_t packetIdentifier) const
Definition Mqtt.cpp:203
-
static void printFixedHeader(const iot::mqtt::FixedHeader &fixedHeader)
Definition Mqtt.cpp:332
+
static void printFixedHeader(const iot::mqtt::FixedHeader &fixedHeader)
Definition Mqtt.cpp:335
void _onPubcomp(const iot::mqtt::packets::Pubcomp &pubcomp)
Definition Mqtt.cpp:312
void _onPuback(const iot::mqtt::packets::Puback &puback)
Definition Mqtt.cpp:270
@@ -395,7 +395,7 @@ diff --git a/html/Next_8cpp.html b/html/Next_8cpp.html index cb41f79ab8..b7b477fa94 100644 --- a/html/Next_8cpp.html +++ b/html/Next_8cpp.html @@ -114,7 +114,7 @@ diff --git a/html/Next_8cpp_source.html b/html/Next_8cpp_source.html index c484c8bc4a..e40f55863b 100644 --- a/html/Next_8cpp_source.html +++ b/html/Next_8cpp_source.html @@ -149,7 +149,7 @@ diff --git a/html/Next_8h.html b/html/Next_8h.html index d8f6564d0a..b4f59f3555 100644 --- a/html/Next_8h.html +++ b/html/Next_8h.html @@ -127,7 +127,7 @@ diff --git a/html/Next_8h_source.html b/html/Next_8h_source.html index 63938903dd..bc52d1de2c 100644 --- a/html/Next_8h_source.html +++ b/html/Next_8h_source.html @@ -183,7 +183,7 @@ diff --git a/html/Parser_8cpp.html b/html/Parser_8cpp.html index 359d82ab4f..5f6a82107a 100644 --- a/html/Parser_8cpp.html +++ b/html/Parser_8cpp.html @@ -128,7 +128,7 @@ diff --git a/html/Parser_8cpp_source.html b/html/Parser_8cpp_source.html index d476b1fbc6..fe1e230664 100644 --- a/html/Parser_8cpp_source.html +++ b/html/Parser_8cpp_source.html @@ -239,7 +239,7 @@
140 if (headers.contains("Content-Length")) {
141 contentLength = std::stoul(headers["Content-Length"]);
-
143 decoderQueue.emplace_back(new web::http::decoder::Identity(socketContext, contentLength));
+
143 decoderQueue.emplace_back(new web::http::decoder::Identity(socketContext, contentLength));
144 }
145 if (headers.contains("Transfer-Encoding")) {
146 const std::string& encoding = headers["Transfer-Encoding"];
@@ -400,7 +400,7 @@
HTTP10Response(const core::socket::stream::SocketContext *socketContext)
-
Identity(const core::socket::stream::SocketContext *socketContext, std::size_t contentLength)
Definition Identity.cpp:32
+
Identity(const core::socket::stream::SocketContext *socketContext, std::size_t contentLengthExpected)
Definition Identity.cpp:32
@@ -418,7 +418,7 @@ diff --git a/html/Parser_8h.html b/html/Parser_8h.html index 6be0106a15..12424a0984 100644 --- a/html/Parser_8h.html +++ b/html/Parser_8h.html @@ -134,7 +134,7 @@ diff --git a/html/Parser_8h_source.html b/html/Parser_8h_source.html index 35f775bb2b..7eb43ac348 100644 --- a/html/Parser_8h_source.html +++ b/html/Parser_8h_source.html @@ -330,7 +330,6 @@ -
void deliverRequest(web::http::server::Request &&request)
std::shared_ptr< Response > masterResponse
std::list< Request > pendingRequests
@@ -341,6 +340,7 @@
SocketContext(core::socket::stream::SocketConnection *socketConnection, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &onRequestReady)
std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> onRequestReady
+
void deliverRequest(web::http::server::Request &request)
@@ -357,7 +357,7 @@ diff --git a/html/PeerSocket_8h.html b/html/PeerSocket_8h.html index 9709ff6152..36889500ee 100644 --- a/html/PeerSocket_8h.html +++ b/html/PeerSocket_8h.html @@ -129,7 +129,7 @@ diff --git a/html/PeerSocket_8h_source.html b/html/PeerSocket_8h_source.html index 85c28d5ace..1859f13ef9 100644 --- a/html/PeerSocket_8h_source.html +++ b/html/PeerSocket_8h_source.html @@ -170,7 +170,7 @@ diff --git a/html/PeerSocket_8hpp.html b/html/PeerSocket_8hpp.html index 4cfb193d88..5567985de3 100644 --- a/html/PeerSocket_8hpp.html +++ b/html/PeerSocket_8hpp.html @@ -123,7 +123,7 @@ diff --git a/html/PeerSocket_8hpp_source.html b/html/PeerSocket_8hpp_source.html index 78c21ed2a8..f1102f87a2 100644 --- a/html/PeerSocket_8hpp_source.html +++ b/html/PeerSocket_8hpp_source.html @@ -148,7 +148,7 @@ diff --git a/html/PhysicalSocketClient_8hpp.html b/html/PhysicalSocketClient_8hpp.html index 6761aa8e16..55c89fd035 100644 --- a/html/PhysicalSocketClient_8hpp.html +++ b/html/PhysicalSocketClient_8hpp.html @@ -123,7 +123,7 @@ diff --git a/html/PhysicalSocketClient_8hpp_source.html b/html/PhysicalSocketClient_8hpp_source.html index 69a900d017..6fbf16af54 100644 --- a/html/PhysicalSocketClient_8hpp_source.html +++ b/html/PhysicalSocketClient_8hpp_source.html @@ -165,7 +165,7 @@ diff --git a/html/PhysicalSocketOption_8cpp.html b/html/PhysicalSocketOption_8cpp.html index 3899431c74..256af959b4 100644 --- a/html/PhysicalSocketOption_8cpp.html +++ b/html/PhysicalSocketOption_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/PhysicalSocketOption_8cpp_source.html b/html/PhysicalSocketOption_8cpp_source.html index 01b7cd918c..11a662e0f1 100644 --- a/html/PhysicalSocketOption_8cpp_source.html +++ b/html/PhysicalSocketOption_8cpp_source.html @@ -177,7 +177,7 @@ diff --git a/html/PhysicalSocketOption_8h.html b/html/PhysicalSocketOption_8h.html index 107b5d94b8..ec1a7d9e7e 100644 --- a/html/PhysicalSocketOption_8h.html +++ b/html/PhysicalSocketOption_8h.html @@ -121,7 +121,7 @@ diff --git a/html/PhysicalSocketOption_8h_source.html b/html/PhysicalSocketOption_8h_source.html index be2b2ae268..f8614cf468 100644 --- a/html/PhysicalSocketOption_8h_source.html +++ b/html/PhysicalSocketOption_8h_source.html @@ -189,7 +189,7 @@
ConfigPhysicalSocket & setRetryTries(unsigned int tries=0)
ConfigSection(ConfigInstance *instance, const std::string &name, const std::string &description)
-
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator)
+
CLI::Option * add_flag_function(CLI::Option *&opt, const std::string &name, const std::function< void(int64_t)> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator)
CLI::Option * add_flag(CLI::Option *&opt, const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator)
@@ -212,7 +212,7 @@ diff --git a/html/PhysicalSocketServer_8hpp.html b/html/PhysicalSocketServer_8hpp.html index ac715e4935..c693c89aac 100644 --- a/html/PhysicalSocketServer_8hpp.html +++ b/html/PhysicalSocketServer_8hpp.html @@ -123,7 +123,7 @@ diff --git a/html/PhysicalSocketServer_8hpp_source.html b/html/PhysicalSocketServer_8hpp_source.html index 1c13e3f6da..f373f9ea53 100644 --- a/html/PhysicalSocketServer_8hpp_source.html +++ b/html/PhysicalSocketServer_8hpp_source.html @@ -167,7 +167,7 @@ diff --git a/html/PipeSink_8cpp.html b/html/PipeSink_8cpp.html index 0e93eb74e7..811bacf558 100644 --- a/html/PipeSink_8cpp.html +++ b/html/PipeSink_8cpp.html @@ -139,7 +139,7 @@

    - +
diff --git a/html/PipeSink_8cpp_source.html b/html/PipeSink_8cpp_source.html index 863bdaaba1..dae20afb8f 100644 --- a/html/PipeSink_8cpp_source.html +++ b/html/PipeSink_8cpp_source.html @@ -187,9 +187,9 @@
88
89} // namespace core::pipe
#define MAX_READ_JUNKSIZE
Definition PipeSink.cpp:32
- - - + + +
ReadEventReceiver(const std::string &name, const utils::Timeval &timeout)
@@ -214,7 +214,7 @@ diff --git a/html/PipeSink_8h.html b/html/PipeSink_8h.html index e1fe202975..f0b4b2af87 100644 --- a/html/PipeSink_8h.html +++ b/html/PipeSink_8h.html @@ -127,7 +127,7 @@ diff --git a/html/PipeSink_8h_source.html b/html/PipeSink_8h_source.html index 6e02d1b6bf..093f53a046 100644 --- a/html/PipeSink_8h_source.html +++ b/html/PipeSink_8h_source.html @@ -187,7 +187,7 @@ diff --git a/html/PipeSource_8cpp.html b/html/PipeSource_8cpp.html index a776c377ab..3f79eb461c 100644 --- a/html/PipeSource_8cpp.html +++ b/html/PipeSource_8cpp.html @@ -139,7 +139,7 @@

    - +
diff --git a/html/PipeSource_8cpp_source.html b/html/PipeSource_8cpp_source.html index 171fa6f5d1..e1a79d4aed 100644 --- a/html/PipeSource_8cpp_source.html +++ b/html/PipeSource_8cpp_source.html @@ -191,12 +191,12 @@
92
93} // namespace core::pipe
#define MAX_SEND_JUNKSIZE
- - - - - - + + + + + +
WriteEventReceiver(const std::string &name, const utils::Timeval &timeout)
@@ -221,7 +221,7 @@ diff --git a/html/PipeSource_8h.html b/html/PipeSource_8h.html index 0122c92158..0ca59f1a89 100644 --- a/html/PipeSource_8h.html +++ b/html/PipeSource_8h.html @@ -127,7 +127,7 @@ diff --git a/html/PipeSource_8h_source.html b/html/PipeSource_8h_source.html index 36fb3d2bf4..2798a69a0f 100644 --- a/html/PipeSource_8h_source.html +++ b/html/PipeSource_8h_source.html @@ -204,7 +204,7 @@ diff --git a/html/Pipe_8cpp.html b/html/Pipe_8cpp.html index f015333959..5aceb1eddb 100644 --- a/html/Pipe_8cpp.html +++ b/html/Pipe_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/Pipe_8cpp_source.html b/html/Pipe_8cpp_source.html index 959e193b6d..3f26824d56 100644 --- a/html/Pipe_8cpp_source.html +++ b/html/Pipe_8cpp_source.html @@ -159,7 +159,7 @@ diff --git a/html/Pipe_8h.html b/html/Pipe_8h.html index d564fc4f60..701f848ede 100644 --- a/html/Pipe_8h.html +++ b/html/Pipe_8h.html @@ -121,7 +121,7 @@ diff --git a/html/Pipe_8h_source.html b/html/Pipe_8h_source.html index ab4ef1603d..55ec35dfab 100644 --- a/html/Pipe_8h_source.html +++ b/html/Pipe_8h_source.html @@ -166,7 +166,7 @@ diff --git a/html/PreserveErrno_8cpp.html b/html/PreserveErrno_8cpp.html index 8bb262de5d..c995975f75 100644 --- a/html/PreserveErrno_8cpp.html +++ b/html/PreserveErrno_8cpp.html @@ -114,7 +114,7 @@ diff --git a/html/PreserveErrno_8cpp_source.html b/html/PreserveErrno_8cpp_source.html index 6045c632a8..02efcc877c 100644 --- a/html/PreserveErrno_8cpp_source.html +++ b/html/PreserveErrno_8cpp_source.html @@ -145,7 +145,7 @@ diff --git a/html/PreserveErrno_8h.html b/html/PreserveErrno_8h.html index 987d233460..5f3fb823bc 100644 --- a/html/PreserveErrno_8h.html +++ b/html/PreserveErrno_8h.html @@ -119,7 +119,7 @@ diff --git a/html/PreserveErrno_8h_source.html b/html/PreserveErrno_8h_source.html index 719ccba482..7bfefeb1e1 100644 --- a/html/PreserveErrno_8h_source.html +++ b/html/PreserveErrno_8h_source.html @@ -151,7 +151,7 @@ diff --git a/html/Random_8cpp.html b/html/Random_8cpp.html index 251901aff9..2c9249e083 100644 --- a/html/Random_8cpp.html +++ b/html/Random_8cpp.html @@ -114,7 +114,7 @@ diff --git a/html/Random_8cpp_source.html b/html/Random_8cpp_source.html index 51f3eb2e28..fca88c297e 100644 --- a/html/Random_8cpp_source.html +++ b/html/Random_8cpp_source.html @@ -147,7 +147,7 @@ diff --git a/html/Random_8h.html b/html/Random_8h.html index 00687872da..b15c736cb4 100644 --- a/html/Random_8h.html +++ b/html/Random_8h.html @@ -119,7 +119,7 @@ diff --git a/html/Random_8h_source.html b/html/Random_8h_source.html index 92f2f49eb6..a620f376fd 100644 --- a/html/Random_8h_source.html +++ b/html/Random_8h_source.html @@ -152,7 +152,7 @@ diff --git a/html/ReadEventReceiver_8cpp.html b/html/ReadEventReceiver_8cpp.html index ac431f64ed..ec61cc1c6a 100644 --- a/html/ReadEventReceiver_8cpp.html +++ b/html/ReadEventReceiver_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/ReadEventReceiver_8cpp_source.html b/html/ReadEventReceiver_8cpp_source.html index 544566bb23..398120d0d5 100644 --- a/html/ReadEventReceiver_8cpp_source.html +++ b/html/ReadEventReceiver_8cpp_source.html @@ -129,7 +129,7 @@
30
31 ReadEventReceiver::ReadEventReceiver(const std::string& name, const utils::Timeval& timeout)
-
33 name + " read",
+
33 name + " Read",
35 timeout) {
36 }
@@ -151,9 +151,9 @@
52 }
53
54} // namespace core::eventreceiver
- -
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
- + +
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
+
EventMultiplexer & getEventMultiplexer()
Definition EventLoop.cpp:69
static EventLoop & instance()
Definition EventLoop.cpp:59
@@ -178,7 +178,7 @@ diff --git a/html/ReadEventReceiver_8h.html b/html/ReadEventReceiver_8h.html index 4a6185b7f1..42db28da21 100644 --- a/html/ReadEventReceiver_8h.html +++ b/html/ReadEventReceiver_8h.html @@ -127,7 +127,7 @@ diff --git a/html/ReadEventReceiver_8h_source.html b/html/ReadEventReceiver_8h_source.html index a6e43c0949..c121b54d04 100644 --- a/html/ReadEventReceiver_8h_source.html +++ b/html/ReadEventReceiver_8h_source.html @@ -147,9 +147,9 @@
48} // namespace core::eventreceiver
49
50#endif // CORE_EVENTRECEIVER_READEVENTRECEIVER_H
- -
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
- + +
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
+
EventMultiplexer & getEventMultiplexer()
Definition EventLoop.cpp:69
static EventLoop & instance()
Definition EventLoop.cpp:59
@@ -174,7 +174,7 @@ diff --git a/html/Receiver_8cpp.html b/html/Receiver_8cpp.html index 50bfd544f4..532dd815e6 100644 --- a/html/Receiver_8cpp.html +++ b/html/Receiver_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/Receiver_8cpp_source.html b/html/Receiver_8cpp_source.html index e9aca181f6..9443f8dbbd 100644 --- a/html/Receiver_8cpp_source.html +++ b/html/Receiver_8cpp_source.html @@ -392,7 +392,7 @@ diff --git a/html/Receiver_8h.html b/html/Receiver_8h.html index 62bf17601a..4eb2cbc4b3 100644 --- a/html/Receiver_8h.html +++ b/html/Receiver_8h.html @@ -146,7 +146,7 @@

    - +
diff --git a/html/Receiver_8h_source.html b/html/Receiver_8h_source.html index 94528e1b8a..b43572c2b1 100644 --- a/html/Receiver_8h_source.html +++ b/html/Receiver_8h_source.html @@ -261,7 +261,7 @@ diff --git a/html/RequestCommand_8cpp.html b/html/RequestCommand_8cpp.html index c1ecdab7f9..41da162bc4 100644 --- a/html/RequestCommand_8cpp.html +++ b/html/RequestCommand_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/RequestCommand_8cpp_source.html b/html/RequestCommand_8cpp_source.html index e117da9460..e82930ff3f 100644 --- a/html/RequestCommand_8cpp_source.html +++ b/html/RequestCommand_8cpp_source.html @@ -141,7 +141,7 @@ diff --git a/html/RequestCommand_8h.html b/html/RequestCommand_8h.html index aec008bed0..9b23adebae 100644 --- a/html/RequestCommand_8h.html +++ b/html/RequestCommand_8h.html @@ -123,7 +123,7 @@ diff --git a/html/RequestCommand_8h_source.html b/html/RequestCommand_8h_source.html index 3d4aa40fb6..11dce6047b 100644 --- a/html/RequestCommand_8h_source.html +++ b/html/RequestCommand_8h_source.html @@ -161,7 +161,7 @@
RequestCommand(RequestCommand &&) noexcept=delete
- + @@ -173,7 +173,7 @@ diff --git a/html/RequestParser_8cpp.html b/html/RequestParser_8cpp.html index 95195758f7..68262c8434 100644 --- a/html/RequestParser_8cpp.html +++ b/html/RequestParser_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/RequestParser_8cpp_source.html b/html/RequestParser_8cpp_source.html index b0c5124977..be31352cfe 100644 --- a/html/RequestParser_8cpp_source.html +++ b/html/RequestParser_8cpp_source.html @@ -215,7 +215,7 @@
116 httputils::str_trimm(cookieName);
117 httputils::str_trimm(cookieValue);
118
-
119 request.cookies.insert({cookieName, cookieValue});
+
119 request.cookies.emplace(cookieName, cookieValue);
120 }
121 }
122
@@ -311,7 +311,7 @@ diff --git a/html/RequestParser_8h.html b/html/RequestParser_8h.html index 151942d713..04fa9265bb 100644 --- a/html/RequestParser_8h.html +++ b/html/RequestParser_8h.html @@ -136,7 +136,7 @@ diff --git a/html/RequestParser_8h_source.html b/html/RequestParser_8h_source.html index 626246462f..4abdec5e9f 100644 --- a/html/RequestParser_8h_source.html +++ b/html/RequestParser_8h_source.html @@ -228,7 +228,6 @@ -
void deliverRequest(web::http::server::Request &&request)
std::shared_ptr< Response > masterResponse
std::list< Request > pendingRequests
@@ -239,6 +238,7 @@
SocketContext(core::socket::stream::SocketConnection *socketConnection, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &onRequestReady)
std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> onRequestReady
+
void deliverRequest(web::http::server::Request &request)
@@ -252,7 +252,7 @@ diff --git a/html/ResponseParser_8cpp.html b/html/ResponseParser_8cpp.html index 22ff41c68c..0d6dc168a5 100644 --- a/html/ResponseParser_8cpp.html +++ b/html/ResponseParser_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/ResponseParser_8cpp_source.html b/html/ResponseParser_8cpp_source.html index aba015633d..31169aeb6a 100644 --- a/html/ResponseParser_8cpp_source.html +++ b/html/ResponseParser_8cpp_source.html @@ -328,7 +328,7 @@ diff --git a/html/ResponseParser_8h.html b/html/ResponseParser_8h.html index c5475d1e60..d25e23614d 100644 --- a/html/ResponseParser_8h.html +++ b/html/ResponseParser_8h.html @@ -136,7 +136,7 @@ diff --git a/html/ResponseParser_8h_source.html b/html/ResponseParser_8h_source.html index bf64afedae..5aa5435893 100644 --- a/html/ResponseParser_8h_source.html +++ b/html/ResponseParser_8h_source.html @@ -238,7 +238,7 @@ diff --git a/html/RetainTree_8cpp.html b/html/RetainTree_8cpp.html index 0c4ca53b11..708567c118 100644 --- a/html/RetainTree_8cpp.html +++ b/html/RetainTree_8cpp.html @@ -122,7 +122,7 @@ diff --git a/html/RetainTree_8cpp_source.html b/html/RetainTree_8cpp_source.html index a112f80fe3..873aac4160 100644 --- a/html/RetainTree_8cpp_source.html +++ b/html/RetainTree_8cpp_source.html @@ -185,7 +185,7 @@
86 if (!message.getTopic().empty()) {
87 LOG(DEBUG) << "MQTT Broker: Retaining:";
88 LOG(DEBUG) << "MQTT Broker: Topic: " << message.getTopic();
-
89 LOG(DEBUG) << "MQTT Broker: Message:\n" << iot::mqtt::Mqtt::stringToHexString(message.getMessage());
+
89 LOG(DEBUG) << "MQTT Broker: Message:\n" << iot::mqtt::Mqtt::toHexString(message.getMessage());
90 LOG(DEBUG) << "MQTT Broker: QoS: " << static_cast<uint16_t>(message.getQoS());
91 this->message = message;
92 }
@@ -213,7 +213,7 @@
114 if (!message.getTopic().empty()) {
115 LOG(DEBUG) << "MQTT Broker: Retained Topic found:";
116 LOG(DEBUG) << "MQTT Broker: Topic: " << message.getTopic();
-
117 LOG(DEBUG) << "MQTT Broker: Message:\n" << iot::mqtt::Mqtt::stringToHexString(message.getMessage());
+
117 LOG(DEBUG) << "MQTT Broker: Message:\n" << iot::mqtt::Mqtt::toHexString(message.getMessage());
118 LOG(DEBUG) << "MQTT Broker: QoS: " << static_cast<uint16_t>(message.getQoS());
119 LOG(DEBUG) << "MQTT Broker: Client:";
120 LOG(DEBUG) << "MQTT Broker: QoS: " << static_cast<uint16_t>(qoS);
@@ -245,7 +245,7 @@
146 if (!message.getTopic().empty()) {
147 LOG(DEBUG) << "MQTT Broker: Retained Topic found:";
148 LOG(DEBUG) << "MQTT Broker: Topic: " << message.getTopic();
-
149 LOG(DEBUG) << "MQTT Broker: Message:\n" << iot::mqtt::Mqtt::stringToHexString(message.getMessage());
+
149 LOG(DEBUG) << "MQTT Broker: Message:\n" << iot::mqtt::Mqtt::toHexString(message.getMessage());
150 LOG(DEBUG) << "MQTT Broker: QoS: " << static_cast<uint16_t>(message.getQoS());
151 LOG(DEBUG) << "MQTT Broker: Client:";
152 LOG(DEBUG) << "MQTT Broker: QoS: " << static_cast<uint16_t>(clientQoS);
@@ -279,7 +279,7 @@
180
181} // namespace iot::mqtt::server::broker
-
static std::string stringToHexString(const std::string &data)
Definition Mqtt.cpp:367
+
static std::string toHexString(const std::string &data)
Definition Mqtt.cpp:352
void sendPublish(const std::string &clientId, Message &message, uint8_t qoS, bool retain)
Definition Broker.cpp:206
@@ -315,7 +315,7 @@ diff --git a/html/RetainTree_8h.html b/html/RetainTree_8h.html index d25af50c33..96041711af 100644 --- a/html/RetainTree_8h.html +++ b/html/RetainTree_8h.html @@ -133,7 +133,7 @@ diff --git a/html/RetainTree_8h_source.html b/html/RetainTree_8h_source.html index 1ec7912f40..bf8c8ba9e0 100644 --- a/html/RetainTree_8h_source.html +++ b/html/RetainTree_8h_source.html @@ -243,7 +243,7 @@ diff --git a/html/RootRoute_8cpp.html b/html/RootRoute_8cpp.html index 9553a9e3ee..81aae35228 100644 --- a/html/RootRoute_8cpp.html +++ b/html/RootRoute_8cpp.html @@ -200,7 +200,7 @@

    - +
diff --git a/html/RootRoute_8cpp_source.html b/html/RootRoute_8cpp_source.html index 6db25802e4..06e7f0e518 100644 --- a/html/RootRoute_8cpp_source.html +++ b/html/RootRoute_8cpp_source.html @@ -219,7 +219,7 @@ diff --git a/html/RootRoute_8h.html b/html/RootRoute_8h.html index 5370d5d5ac..00c6f731d2 100644 --- a/html/RootRoute_8h.html +++ b/html/RootRoute_8h.html @@ -201,7 +201,7 @@

    - +
diff --git a/html/RootRoute_8h_source.html b/html/RootRoute_8h_source.html index e51289a3b9..500c5caa99 100644 --- a/html/RootRoute_8h_source.html +++ b/html/RootRoute_8h_source.html @@ -301,26 +301,26 @@
bool dispatchNext(Controller &controller, const std::string &parentMountPath)
Definition Route.cpp:74
- -
constexpr AttributeProxy(const Attribute &attribute)
- -
constexpr Attribute & operator*()
- -
constexpr bool setAttribute(const Attribute &&attribute, const std::string &subKey="", bool overwrite=false)
-
constexpr bool hasAttribute(const std::string &subKey="") const
-
constexpr bool delAttribute(const std::string &subKey="")
-
bool getAttribute(const std::function< void(Attribute &)> &onFound, const std::string &subKey="") const
-
std::map< std::string, std::shared_ptr< void > > attributes
-
void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound, const std::string &subKey="") const
-
constexpr bool setAttribute(const Attribute &attribute, const std::string &subKey="", bool overwrite=false)
- - -
constexpr void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound) const
- -
constexpr bool setAttribute(const Attribute &attribute, bool overwrite=false)
-
constexpr bool setAttribute(const Attribute &&attribute, bool overwrite=false)
-
std::shared_ptr< void > attribute
-
constexpr bool getAttribute(const std::function< void(Attribute &)> &onFound) const
+ +
constexpr AttributeProxy(const Attribute &attribute)
+ +
constexpr Attribute & operator*()
+ +
constexpr bool setAttribute(const Attribute &&attribute, const std::string &subKey="", bool overwrite=false)
+
constexpr bool hasAttribute(const std::string &subKey="") const
+
constexpr bool delAttribute(const std::string &subKey="")
+
bool getAttribute(const std::function< void(Attribute &)> &onFound, const std::string &subKey="") const
+
std::map< std::string, std::shared_ptr< void > > attributes
+
void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound, const std::string &subKey="") const
+
constexpr bool setAttribute(const Attribute &attribute, const std::string &subKey="", bool overwrite=false)
+ + +
constexpr void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound) const
+ +
constexpr bool setAttribute(const Attribute &attribute, bool overwrite=false)
+
constexpr bool setAttribute(const Attribute &&attribute, bool overwrite=false)
+
std::shared_ptr< void > attribute
+
constexpr bool getAttribute(const std::function< void(Attribute &)> &onFound) const
@@ -331,17 +331,17 @@
fixed_string(char const (&)[N]) -> fixed_string< N - 1 >
- - -
constexpr fixed_string(char const *s)
-
constexpr operator char const *() const
+ + +
constexpr fixed_string(char const *s)
+
constexpr operator char const *() const
diff --git a/html/Route_8cpp.html b/html/Route_8cpp.html index ee19f9a319..03237907d1 100644 --- a/html/Route_8cpp.html +++ b/html/Route_8cpp.html @@ -176,7 +176,7 @@

    - +
diff --git a/html/Route_8cpp_source.html b/html/Route_8cpp_source.html index faf87da94e..a4910beb38 100644 --- a/html/Route_8cpp_source.html +++ b/html/Route_8cpp_source.html @@ -212,7 +212,7 @@ diff --git a/html/Route_8h.html b/html/Route_8h.html index 90dc98f4d0..e93bbe6193 100644 --- a/html/Route_8h.html +++ b/html/Route_8h.html @@ -205,7 +205,7 @@

    - +
diff --git a/html/Route_8h_source.html b/html/Route_8h_source.html index 051b39267d..4f252c13da 100644 --- a/html/Route_8h_source.html +++ b/html/Route_8h_source.html @@ -323,26 +323,26 @@
Route & trace(const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const
Definition Route.cpp:86
- -
constexpr AttributeProxy(const Attribute &attribute)
- -
constexpr Attribute & operator*()
- -
constexpr bool setAttribute(const Attribute &&attribute, const std::string &subKey="", bool overwrite=false)
-
constexpr bool hasAttribute(const std::string &subKey="") const
-
constexpr bool delAttribute(const std::string &subKey="")
-
bool getAttribute(const std::function< void(Attribute &)> &onFound, const std::string &subKey="") const
-
std::map< std::string, std::shared_ptr< void > > attributes
-
void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound, const std::string &subKey="") const
-
constexpr bool setAttribute(const Attribute &attribute, const std::string &subKey="", bool overwrite=false)
- - -
constexpr void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound) const
- -
constexpr bool setAttribute(const Attribute &attribute, bool overwrite=false)
-
constexpr bool setAttribute(const Attribute &&attribute, bool overwrite=false)
-
std::shared_ptr< void > attribute
-
constexpr bool getAttribute(const std::function< void(Attribute &)> &onFound) const
+ +
constexpr AttributeProxy(const Attribute &attribute)
+ +
constexpr Attribute & operator*()
+ +
constexpr bool setAttribute(const Attribute &&attribute, const std::string &subKey="", bool overwrite=false)
+
constexpr bool hasAttribute(const std::string &subKey="") const
+
constexpr bool delAttribute(const std::string &subKey="")
+
bool getAttribute(const std::function< void(Attribute &)> &onFound, const std::string &subKey="") const
+
std::map< std::string, std::shared_ptr< void > > attributes
+
void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound, const std::string &subKey="") const
+
constexpr bool setAttribute(const Attribute &attribute, const std::string &subKey="", bool overwrite=false)
+ + +
constexpr void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound) const
+ +
constexpr bool setAttribute(const Attribute &attribute, bool overwrite=false)
+
constexpr bool setAttribute(const Attribute &&attribute, bool overwrite=false)
+
std::shared_ptr< void > attribute
+
constexpr bool getAttribute(const std::function< void(Attribute &)> &onFound) const
@@ -354,17 +354,17 @@
fixed_string(char const (&)[N]) -> fixed_string< N - 1 >
- - -
constexpr fixed_string(char const *s)
-
constexpr operator char const *() const
+ + +
constexpr fixed_string(char const *s)
+
constexpr operator char const *() const
diff --git a/html/Route_8hpp.html b/html/Route_8hpp.html index a1fe1362fa..d3394af86d 100644 --- a/html/Route_8hpp.html +++ b/html/Route_8hpp.html @@ -168,7 +168,7 @@

    - +
diff --git a/html/Route_8hpp_source.html b/html/Route_8hpp_source.html index deacb88746..8739a04858 100644 --- a/html/Route_8hpp_source.html +++ b/html/Route_8hpp_source.html @@ -295,26 +295,26 @@
Route & trace(const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) const
Definition Route.cpp:86
- -
constexpr AttributeProxy(const Attribute &attribute)
- -
constexpr Attribute & operator*()
- -
constexpr bool setAttribute(const Attribute &&attribute, const std::string &subKey="", bool overwrite=false)
-
constexpr bool hasAttribute(const std::string &subKey="") const
-
constexpr bool delAttribute(const std::string &subKey="")
-
bool getAttribute(const std::function< void(Attribute &)> &onFound, const std::string &subKey="") const
-
std::map< std::string, std::shared_ptr< void > > attributes
-
void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound, const std::string &subKey="") const
-
constexpr bool setAttribute(const Attribute &attribute, const std::string &subKey="", bool overwrite=false)
- - -
constexpr void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound) const
- -
constexpr bool setAttribute(const Attribute &attribute, bool overwrite=false)
-
constexpr bool setAttribute(const Attribute &&attribute, bool overwrite=false)
-
std::shared_ptr< void > attribute
-
constexpr bool getAttribute(const std::function< void(Attribute &)> &onFound) const
+ +
constexpr AttributeProxy(const Attribute &attribute)
+ +
constexpr Attribute & operator*()
+ +
constexpr bool setAttribute(const Attribute &&attribute, const std::string &subKey="", bool overwrite=false)
+
constexpr bool hasAttribute(const std::string &subKey="") const
+
constexpr bool delAttribute(const std::string &subKey="")
+
bool getAttribute(const std::function< void(Attribute &)> &onFound, const std::string &subKey="") const
+
std::map< std::string, std::shared_ptr< void > > attributes
+
void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound, const std::string &subKey="") const
+
constexpr bool setAttribute(const Attribute &attribute, const std::string &subKey="", bool overwrite=false)
+ + +
constexpr void getAttribute(const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound) const
+ +
constexpr bool setAttribute(const Attribute &attribute, bool overwrite=false)
+
constexpr bool setAttribute(const Attribute &&attribute, bool overwrite=false)
+
std::shared_ptr< void > attribute
+
constexpr bool getAttribute(const std::function< void(Attribute &)> &onFound) const
@@ -329,17 +329,17 @@
MountPoint(const std::string &method, const std::string &relativeMountPath)
std::string method
Definition MountPoint.h:34
std::string relativeMountPath
Definition MountPoint.h:35
- - -
constexpr fixed_string(char const *s)
-
constexpr operator char const *() const
+ + +
constexpr fixed_string(char const *s)
+
constexpr operator char const *() const
diff --git a/html/RouterDispatcher_8cpp.html b/html/RouterDispatcher_8cpp.html index e154f0fec9..eed8bc3fd4 100644 --- a/html/RouterDispatcher_8cpp.html +++ b/html/RouterDispatcher_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/RouterDispatcher_8cpp_source.html b/html/RouterDispatcher_8cpp_source.html index 394741d933..4b8ab8974d 100644 --- a/html/RouterDispatcher_8cpp_source.html +++ b/html/RouterDispatcher_8cpp_source.html @@ -179,7 +179,7 @@ diff --git a/html/RouterDispatcher_8h.html b/html/RouterDispatcher_8h.html index fbe6953ad1..3e9a3b5d0b 100644 --- a/html/RouterDispatcher_8h.html +++ b/html/RouterDispatcher_8h.html @@ -127,7 +127,7 @@ diff --git a/html/RouterDispatcher_8h_source.html b/html/RouterDispatcher_8h_source.html index a1b2ba74e4..45c2e40612 100644 --- a/html/RouterDispatcher_8h_source.html +++ b/html/RouterDispatcher_8h_source.html @@ -175,7 +175,7 @@ diff --git a/html/Router_8cpp.html b/html/Router_8cpp.html index 8a288315f5..9acf02aa59 100644 --- a/html/Router_8cpp.html +++ b/html/Router_8cpp.html @@ -195,7 +195,7 @@

    - +
diff --git a/html/Router_8cpp_source.html b/html/Router_8cpp_source.html index 41ccce3be5..69b37d1799 100644 --- a/html/Router_8cpp_source.html +++ b/html/Router_8cpp_source.html @@ -183,7 +183,7 @@ diff --git a/html/Router_8h.html b/html/Router_8h.html index 6b26483d29..db490db6ab 100644 --- a/html/Router_8h.html +++ b/html/Router_8h.html @@ -287,7 +287,7 @@

    - +
diff --git a/html/Router_8h_source.html b/html/Router_8h_source.html index 847ed118f4..bc049166c1 100644 --- a/html/Router_8h_source.html +++ b/html/Router_8h_source.html @@ -242,7 +242,7 @@ diff --git a/html/Router_8hpp.html b/html/Router_8hpp.html index 3a75cc8930..3bf8105222 100644 --- a/html/Router_8hpp.html +++ b/html/Router_8hpp.html @@ -191,7 +191,7 @@

    - +
diff --git a/html/Router_8hpp_source.html b/html/Router_8hpp_source.html index 9e0604edb2..9f34238e72 100644 --- a/html/Router_8hpp_source.html +++ b/html/Router_8hpp_source.html @@ -209,7 +209,7 @@ diff --git a/html/SNodeC_8cpp.html b/html/SNodeC_8cpp.html index 203fde2b5f..9adaf4abdd 100644 --- a/html/SNodeC_8cpp.html +++ b/html/SNodeC_8cpp.html @@ -115,7 +115,7 @@ diff --git a/html/SNodeC_8cpp_source.html b/html/SNodeC_8cpp_source.html index 370fd276ad..308b18680f 100644 --- a/html/SNodeC_8cpp_source.html +++ b/html/SNodeC_8cpp_source.html @@ -180,7 +180,7 @@ diff --git a/html/SNodeC_8h.html b/html/SNodeC_8h.html index b965db614a..7a6ff09fee 100644 --- a/html/SNodeC_8h.html +++ b/html/SNodeC_8h.html @@ -126,7 +126,7 @@ diff --git a/html/SNodeC_8h_source.html b/html/SNodeC_8h_source.html index fb8f414fc9..ba5690b5b8 100644 --- a/html/SNodeC_8h_source.html +++ b/html/SNodeC_8h_source.html @@ -181,7 +181,7 @@ diff --git a/html/SendFileCommand_8cpp.html b/html/SendFileCommand_8cpp.html index 9dcbd48053..2d18ed2703 100644 --- a/html/SendFileCommand_8cpp.html +++ b/html/SendFileCommand_8cpp.html @@ -121,7 +121,7 @@ diff --git a/html/SendFileCommand_8cpp_source.html b/html/SendFileCommand_8cpp_source.html index bd9edaed91..912cf56a8e 100644 --- a/html/SendFileCommand_8cpp_source.html +++ b/html/SendFileCommand_8cpp_source.html @@ -138,7 +138,7 @@
39} // namespace web::http::client::commands
-
bool executeSendFile(const std::string &file, const std::function< void(int)> &onStatus)
Definition Request.cpp:421
+
bool executeSendFile(const std::string &file, const std::function< void(int)> &onStatus)
Definition Request.cpp:426
bool execute(Request *request) override
@@ -151,7 +151,7 @@ diff --git a/html/SendFileCommand_8h.html b/html/SendFileCommand_8h.html index 1858b2a771..88b1bee3a9 100644 --- a/html/SendFileCommand_8h.html +++ b/html/SendFileCommand_8h.html @@ -131,7 +131,7 @@ diff --git a/html/SendFileCommand_8h_source.html b/html/SendFileCommand_8h_source.html index c3ddfe449d..1be94acbc2 100644 --- a/html/SendFileCommand_8h_source.html +++ b/html/SendFileCommand_8h_source.html @@ -149,7 +149,7 @@ -
bool executeSendFile(const std::string &file, const std::function< void(int)> &onStatus)
Definition Request.cpp:421
+
bool executeSendFile(const std::string &file, const std::function< void(int)> &onStatus)
Definition Request.cpp:426
bool execute(Request *request) override
@@ -163,7 +163,7 @@ diff --git a/html/SendFragmentCommand_8cpp.html b/html/SendFragmentCommand_8cpp.html index 362ba5731b..9848e65ac4 100644 --- a/html/SendFragmentCommand_8cpp.html +++ b/html/SendFragmentCommand_8cpp.html @@ -121,7 +121,7 @@ diff --git a/html/SendFragmentCommand_8cpp_source.html b/html/SendFragmentCommand_8cpp_source.html index ad10685181..8354445cc7 100644 --- a/html/SendFragmentCommand_8cpp_source.html +++ b/html/SendFragmentCommand_8cpp_source.html @@ -144,7 +144,7 @@
45
46} // namespace web::http::client::commands
-
bool executeSendFragment(const char *chunk, std::size_t chunkLen)
Definition Request.cpp:520
+
bool executeSendFragment(const char *chunk, std::size_t chunkLen)
Definition Request.cpp:525
@@ -158,7 +158,7 @@ diff --git a/html/SendFragmentCommand_8h.html b/html/SendFragmentCommand_8h.html index 4b49098ce3..94725099ce 100644 --- a/html/SendFragmentCommand_8h.html +++ b/html/SendFragmentCommand_8h.html @@ -131,7 +131,7 @@ diff --git a/html/SendFragmentCommand_8h_source.html b/html/SendFragmentCommand_8h_source.html index 86d1a237cb..96619472e0 100644 --- a/html/SendFragmentCommand_8h_source.html +++ b/html/SendFragmentCommand_8h_source.html @@ -146,7 +146,7 @@
47#endif // WEB_HTTP_CLIENT_COMMANDS_SENDFRAGMENTCOMMAND_H
-
bool executeSendFragment(const char *chunk, std::size_t chunkLen)
Definition Request.cpp:520
+
bool executeSendFragment(const char *chunk, std::size_t chunkLen)
Definition Request.cpp:525
@@ -160,7 +160,7 @@ diff --git a/html/SendHeaderCommand_8cpp.html b/html/SendHeaderCommand_8cpp.html index 95119e27e5..a1a68b71cf 100644 --- a/html/SendHeaderCommand_8cpp.html +++ b/html/SendHeaderCommand_8cpp.html @@ -121,7 +121,7 @@ diff --git a/html/SendHeaderCommand_8cpp_source.html b/html/SendHeaderCommand_8cpp_source.html index 3208fdb4b2..0f3b0108b2 100644 --- a/html/SendHeaderCommand_8cpp_source.html +++ b/html/SendHeaderCommand_8cpp_source.html @@ -132,7 +132,7 @@
33
34} // namespace web::http::client::commands
- + @@ -142,7 +142,7 @@ diff --git a/html/SendHeaderCommand_8h.html b/html/SendHeaderCommand_8h.html index 5323c46592..d56a4cb93b 100644 --- a/html/SendHeaderCommand_8h.html +++ b/html/SendHeaderCommand_8h.html @@ -131,7 +131,7 @@ diff --git a/html/SendHeaderCommand_8h_source.html b/html/SendHeaderCommand_8h_source.html index 354e624532..8a54f543e3 100644 --- a/html/SendHeaderCommand_8h_source.html +++ b/html/SendHeaderCommand_8h_source.html @@ -140,7 +140,7 @@
41#endif // WEB_HTTP_CLIENT_COMMANDS_SENDHEADERCOMMAND_H
- + @@ -152,7 +152,7 @@ diff --git a/html/Session_8cpp.html b/html/Session_8cpp.html index 75d611a1f3..33d5e87bed 100644 --- a/html/Session_8cpp.html +++ b/html/Session_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/Session_8cpp_source.html b/html/Session_8cpp_source.html index 9ee64010f6..1bc4c97ca4 100644 --- a/html/Session_8cpp_source.html +++ b/html/Session_8cpp_source.html @@ -218,7 +218,7 @@ diff --git a/html/Session_8h.html b/html/Session_8h.html index 8e5b334283..dd82cef8c3 100644 --- a/html/Session_8h.html +++ b/html/Session_8h.html @@ -127,7 +127,7 @@ diff --git a/html/Session_8h_source.html b/html/Session_8h_source.html index b792e458a3..bed40e3146 100644 --- a/html/Session_8h_source.html +++ b/html/Session_8h_source.html @@ -277,7 +277,7 @@ diff --git a/html/SharedSocketContextFactory_8cpp.html b/html/SharedSocketContextFactory_8cpp.html index 37bf0a1bbb..f7fbf001c8 100644 --- a/html/SharedSocketContextFactory_8cpp.html +++ b/html/SharedSocketContextFactory_8cpp.html @@ -119,7 +119,7 @@ diff --git a/html/SharedSocketContextFactory_8cpp_source.html b/html/SharedSocketContextFactory_8cpp_source.html index 2a663de8c7..e1a194a923 100644 --- a/html/SharedSocketContextFactory_8cpp_source.html +++ b/html/SharedSocketContextFactory_8cpp_source.html @@ -148,7 +148,7 @@ diff --git a/html/SharedSocketContextFactory_8h.html b/html/SharedSocketContextFactory_8h.html index 6c87964da7..764872804f 100644 --- a/html/SharedSocketContextFactory_8h.html +++ b/html/SharedSocketContextFactory_8h.html @@ -137,7 +137,7 @@ diff --git a/html/SharedSocketContextFactory_8h_source.html b/html/SharedSocketContextFactory_8h_source.html index 7b4c18feb0..a818dafb05 100644 --- a/html/SharedSocketContextFactory_8h_source.html +++ b/html/SharedSocketContextFactory_8h_source.html @@ -172,7 +172,7 @@ diff --git a/html/SingleshotTimer_8cpp.html b/html/SingleshotTimer_8cpp.html index 495bb7d678..2b5aba7542 100644 --- a/html/SingleshotTimer_8cpp.html +++ b/html/SingleshotTimer_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/SingleshotTimer_8cpp_source.html b/html/SingleshotTimer_8cpp_source.html index 1a40034d52..82b9d01614 100644 --- a/html/SingleshotTimer_8cpp_source.html +++ b/html/SingleshotTimer_8cpp_source.html @@ -157,7 +157,7 @@ diff --git a/html/SingleshotTimer_8h.html b/html/SingleshotTimer_8h.html index 2d1d53fab9..af119f5916 100644 --- a/html/SingleshotTimer_8h.html +++ b/html/SingleshotTimer_8h.html @@ -127,7 +127,7 @@ diff --git a/html/SingleshotTimer_8h_source.html b/html/SingleshotTimer_8h_source.html index afaa2718bf..d379693a31 100644 --- a/html/SingleshotTimer_8h_source.html +++ b/html/SingleshotTimer_8h_source.html @@ -176,7 +176,7 @@ diff --git a/html/Sink_8cpp.html b/html/Sink_8cpp.html index 6acaffea25..845a2c5337 100644 --- a/html/Sink_8cpp.html +++ b/html/Sink_8cpp.html @@ -117,7 +117,7 @@ diff --git a/html/Sink_8cpp_source.html b/html/Sink_8cpp_source.html index 75e1d28f64..c5f25ce8d3 100644 --- a/html/Sink_8cpp_source.html +++ b/html/Sink_8cpp_source.html @@ -195,7 +195,7 @@ diff --git a/html/Sink_8h.html b/html/Sink_8h.html index f730d9b289..d196c81a58 100644 --- a/html/Sink_8h.html +++ b/html/Sink_8h.html @@ -121,7 +121,7 @@ diff --git a/html/Sink_8h_source.html b/html/Sink_8h_source.html index 7835d4d64c..23c53fb4ce 100644 --- a/html/Sink_8h_source.html +++ b/html/Sink_8h_source.html @@ -201,7 +201,7 @@ diff --git a/html/SocketAcceptor_8h.html b/html/SocketAcceptor_8h.html index b9e6c67f7b..9a2875e5ea 100644 --- a/html/SocketAcceptor_8h.html +++ b/html/SocketAcceptor_8h.html @@ -130,7 +130,7 @@ diff --git a/html/SocketAcceptor_8h_source.html b/html/SocketAcceptor_8h_source.html index 93ed896d5e..3a92d3a763 100644 --- a/html/SocketAcceptor_8h_source.html +++ b/html/SocketAcceptor_8h_source.html @@ -146,83 +146,73 @@
47 using SocketConnection = SocketConnectionT<PhysicalServerSocket>;
48
49 public:
-
50 SocketAcceptor() = delete;
- -
52
- - -
55
-
56 SocketAcceptor(const std::shared_ptr<core::socket::stream::SocketContextFactory>& socketContextFactory,
-
57 const std::function<void(SocketConnection*)>& onConnect,
-
58 const std::function<void(SocketConnection*)>& onConnected,
-
59 const std::function<void(SocketConnection*)>& onDisconnect,
-
60 const std::function<void(const SocketAddress&, core::socket::State)>& onStatus,
-
61 const std::shared_ptr<Config>& config);
+
50 SocketAcceptor(const std::shared_ptr<core::socket::stream::SocketContextFactory>& socketContextFactory,
+
51 const std::function<void(SocketConnection*)>& onConnect,
+
52 const std::function<void(SocketConnection*)>& onConnected,
+
53 const std::function<void(SocketConnection*)>& onDisconnect,
+
54 const std::function<void(const SocketAddress&, core::socket::State)>& onStatus,
+
55 const std::shared_ptr<Config>& config);
+
56
+
57 SocketAcceptor(const SocketAcceptor& socketAcceptor);
+
58
+
59 ~SocketAcceptor() override;
+
60
+
61 virtual void useNextSocketAddress() = 0;
62
-
63 SocketAcceptor(const SocketAcceptor& socketAcceptor);
-
64
-
65 ~SocketAcceptor() override;
-
66
-
67 virtual void useNextSocketAddress() = 0;
+
63 protected:
+
64 virtual void init();
+
65
+
66 private:
+
67 void acceptEvent() override;
68
-
69 protected:
-
70 virtual void init();
-
71
-
72 private:
-
73 void acceptEvent() override;
-
74
-
75 void unobservedEvent() final;
-
76
-
77 protected:
-
78 void destruct() final;
-
79
-
80 private:
-
81 PhysicalServerSocket physicalServerSocket;
-
82 SocketAddress localAddress;
-
83
-
84 protected:
-
85 std::shared_ptr<core::socket::stream::SocketContextFactory> socketContextFactory = nullptr;
+
69 void unobservedEvent() final;
+
70
+
71 protected:
+
72 void destruct() final;
+
73
+
74 private:
+
75 PhysicalServerSocket physicalServerSocket;
+
76 SocketAddress localAddress;
+
77
+
78 protected:
+
79 std::shared_ptr<core::socket::stream::SocketContextFactory> socketContextFactory = nullptr;
+
80
+
81 std::function<void(SocketConnection*)> onConnect;
+
82 std::function<void(SocketConnection*)> onConnected;
+
83 std::function<void(SocketConnection*)> onDisconnect;
+
84
+
85 std::function<void(const SocketAddress&, core::socket::State)> onStatus = nullptr;
86
-
87 std::function<void(SocketConnection*)> onConnect;
-
88 std::function<void(SocketConnection*)> onConnected;
-
89 std::function<void(SocketConnection*)> onDisconnect;
-
90
-
91 std::function<void(const SocketAddress&, core::socket::State)> onStatus = nullptr;
-
92
-
93 std::shared_ptr<Config> config;
-
94 };
-
95
-
96} // namespace core::socket::stream
-
97
-
98#endif // CORE_SOCKET_STREAM_SOCKETACCEPTOR_H
+
87 std::shared_ptr<Config> config;
+
88 };
+
89
+
90} // namespace core::socket::stream
+
91
+
92#endif // CORE_SOCKET_STREAM_SOCKETACCEPTOR_H
SocketAcceptor(const std::shared_ptr< core::socket::stream::SocketContextFactory > &socketContextFactory, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus, const std::shared_ptr< Config > &config)
-
SocketAcceptor & operator=(const SocketAcceptor &)=delete
- -
std::function< void(SocketConnection *)> onConnected
-
SocketAcceptor(const SocketAcceptor &socketAcceptor)
- -
std::function< void(SocketConnection *)> onConnect
-
std::function< void(SocketConnection *)> onDisconnect
-
std::shared_ptr< core::socket::stream::SocketContextFactory > socketContextFactory
- -
std::shared_ptr< Config > config
+ +
std::function< void(SocketConnection *)> onConnected
+
SocketAcceptor(const SocketAcceptor &socketAcceptor)
+ +
std::function< void(SocketConnection *)> onConnect
+
std::function< void(SocketConnection *)> onDisconnect
+
std::shared_ptr< core::socket::stream::SocketContextFactory > socketContextFactory
+ +
std::shared_ptr< Config > config
-
SocketAcceptor & operator=(SocketAcceptor &&)=delete
- -
SocketAcceptor(SocketAcceptor &&)=delete
- - - -
PhysicalServerSocket physicalServerSocket
-
std::function< void(const SocketAddress &, core::socket::State)> onStatus
+ + + +
PhysicalServerSocket physicalServerSocket
+
std::function< void(const SocketAddress &, core::socket::State)> onStatus
- +
SocketAcceptor(const SocketAcceptor &socketAcceptor)
SocketAcceptor(const std::shared_ptr< core::socket::stream::SocketContextFactory > &socketContextFactory, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus, const std::shared_ptr< Config > &config)
@@ -242,7 +232,7 @@ diff --git a/html/SocketAcceptor_8hpp.html b/html/SocketAcceptor_8hpp.html index 2a0c94ac67..1fc93e354a 100644 --- a/html/SocketAcceptor_8hpp.html +++ b/html/SocketAcceptor_8hpp.html @@ -133,7 +133,7 @@ diff --git a/html/SocketAcceptor_8hpp_source.html b/html/SocketAcceptor_8hpp_source.html index f83593c167..d38ff20eb3 100644 --- a/html/SocketAcceptor_8hpp_source.html +++ b/html/SocketAcceptor_8hpp_source.html @@ -146,35 +146,35 @@
47
48 try {
49 localPeerAddress = config->Local::Super::getSocketAddress(localSockAddr, localSockAddrLen);
-
50 LOG(TRACE) << config->getInstanceName() << std::setw(24) << " PeerAddress (local): " << localPeerAddress.toString();
+
50 LOG(TRACE) << config->getInstanceName() << std::setw(24) << " PeerAddress (local): " << localPeerAddress.toString();
51 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) { // cppcheck-suppress shadowVariable
52 LOG(TRACE) << config->getInstanceName() << std::setw(24) << " PeerAddress (local): " << badSocketAddress.what();
53 }
54 }
55 }
- -
57 return localPeerAddress;
+
56
+
57 return localPeerAddress;
58 }
-
59
+
60 template <typename SocketAddress, typename PhysicalSocket, typename Config>
61 SocketAddress getRemoteSocketAddress(PhysicalSocket& physicalSocket, Config& config) {
62 typename SocketAddress::SockAddr remoteSockAddr;
-
63 typename SocketAddress::SockLen remoteSockAddrLen = sizeof(typename SocketAddress::SockAddr);
-
64
-
65 SocketAddress remotePeerAddress;
+
63 typename SocketAddress::SockLen remoteSockAddrLen = sizeof(typename SocketAddress::SockAddr);
+ +
65 SocketAddress remotePeerAddress;
66 if (physicalSocket.getPeerName(remoteSockAddr, remoteSockAddrLen) == 0) {
-
67 try {
+
67 try {
68 remotePeerAddress = config->Remote::getSocketAddress(remoteSockAddr, remoteSockAddrLen);
-
69 LOG(TRACE) << config->getInstanceName() << std::setw(24) << " PeerAddress (remote): " << remotePeerAddress.toString();
-
70 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) {
+
69 LOG(TRACE) << config->getInstanceName() << std::setw(24) << " PeerAddress (remote): " << remotePeerAddress.toString();
+
70 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) {
71 LOG(TRACE) << config->getInstanceName() << std::setw(24) << " PeerAddress (remote): " << badSocketAddress.what();
-
72
-
73 try {
+ +
73 try {
74 remotePeerAddress = config->Remote::Super::getSocketAddress(remoteSockAddr, remoteSockAddrLen);
-
75 LOG(TRACE) << config->getInstanceName() << std::setw(24) << " PeerAddress (remote): " << remotePeerAddress.toString();
+
75 LOG(TRACE) << config->getInstanceName() << std::setw(24) << " PeerAddress (remote): " << remotePeerAddress.toString();
76 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) { // cppcheck-suppress shadowVariable
77 LOG(TRACE) << config->getInstanceName() << std::setw(24) << " PeerAddress (remote): " << badSocketAddress.what();
-
78 }
+
78 }
79 }
80 }
81
@@ -201,167 +201,154 @@
102 });
103 }
104
-
105#ifdef __GNUC__
-
106#pragma GCC diagnostic push
-
107#endif
-
108#ifdef __has_warning
-
109#if __has_warning("-Wabstract-vbase-init")
-
110#pragma GCC diagnostic ignored "-Wabstract-vbase-init"
-
111#endif
-
112#endif
-
113 template <typename PhysicalSocketServer, typename Config, template <typename PhysicalSocketServerT> typename SocketConnection>
-
114 SocketAcceptor<PhysicalSocketServer, Config, SocketConnection>::SocketAcceptor(const SocketAcceptor& socketAcceptor)
-
115 : core::Observer(socketAcceptor)
-
116 , core::eventreceiver::AcceptEventReceiver(socketAcceptor.config->getInstanceName() + " SocketAcceptor:", 0)
-
117 , socketContextFactory(socketAcceptor.socketContextFactory)
-
118 , onConnect(socketAcceptor.onConnect)
-
119 , onConnected(socketAcceptor.onConnected)
-
120 , onDisconnect(socketAcceptor.onDisconnect)
-
121 , onStatus(socketAcceptor.onStatus)
-
122 , config(socketAcceptor.config) {
-
123 atNextTick([this]() -> void {
-
124 init();
-
125 });
-
126 }
-
127#ifdef __GNUC__
-
128#pragma GCC diagnostic pop
-
129#endif
+
105 template <typename PhysicalSocketServer, typename Config, template <typename PhysicalSocketServerT> typename SocketConnection>
+
106 SocketAcceptor<PhysicalSocketServer, Config, SocketConnection>::SocketAcceptor(const SocketAcceptor& socketAcceptor)
+
107 : core::eventreceiver::AcceptEventReceiver(socketAcceptor.config->getInstanceName() + " SocketAcceptor:", 0)
+
108 , socketContextFactory(socketAcceptor.socketContextFactory)
+
109 , onConnect(socketAcceptor.onConnect)
+
110 , onConnected(socketAcceptor.onConnected)
+
111 , onDisconnect(socketAcceptor.onDisconnect)
+
112 , onStatus(socketAcceptor.onStatus)
+
113 , config(socketAcceptor.config) {
+
114 atNextTick([this]() -> void {
+
115 init();
+
116 });
+
117 }
+
118
+
119 template <typename PhysicalSocketServer, typename Config, template <typename PhysicalSocketServerT> typename SocketConnection>
+
120 SocketAcceptor<PhysicalSocketServer, Config, SocketConnection>::~SocketAcceptor() {
+
121 }
+
122
+
123 template <typename PhysicalSocketServer, typename Config, template <typename PhysicalSocketServerT> typename SocketConnection>
+
124 void SocketAcceptor<PhysicalSocketServer, Config, SocketConnection>::init() {
+
125 if (!config->getDisabled()) {
+
126 try {
+
127 LOG(TRACE) << config->getInstanceName() << ": Starting";
+
128
+
129 localAddress = config->Local::getSocketAddress();
130
-
131 template <typename PhysicalSocketServer, typename Config, template <typename PhysicalSocketServerT> typename SocketConnection>
-
132 SocketAcceptor<PhysicalSocketServer, Config, SocketConnection>::~SocketAcceptor() {
-
133 }
-
134
-
135 template <typename PhysicalSocketServer, typename Config, template <typename PhysicalSocketServerT> typename SocketConnection>
-
136 void SocketAcceptor<PhysicalSocketServer, Config, SocketConnection>::init() {
-
137 if (!config->getDisabled()) {
-
138 try {
-
139 LOG(TRACE) << config->getInstanceName() << ": Starting";
-
140
-
141 localAddress = config->Local::getSocketAddress();
-
142
-
143 core::socket::State state = core::socket::STATE_OK;
-
144
-
145 if (physicalServerSocket.open(config->getSocketOptions(), PhysicalServerSocket::Flags::NONBLOCK) < 0) {
-
146 switch (errno) {
-
147 case EMFILE:
-
148 case ENFILE:
-
149 case ENOBUFS:
-
150 case ENOMEM:
-
151 state = core::socket::STATE_ERROR;
-
152 PLOG(TRACE) << config->getInstanceName() << " open: '" << localAddress.toString() << "'";
-
153 break;
-
154 default:
-
155 state = core::socket::STATE_FATAL;
-
156 PLOG(TRACE) << config->getInstanceName() << " open: '" << localAddress.toString() << "'";
-
157 break;
-
158 }
-
159 } else if (physicalServerSocket.bind(localAddress) < 0) {
-
160 switch (errno) {
-
161 case EADDRINUSE:
-
162 state = core::socket::STATE_ERROR;
-
163 PLOG(TRACE) << config->getInstanceName() << " bind: '" << localAddress.toString() << "'";
-
164 break;
-
165 default:
-
166 state = core::socket::STATE_FATAL;
-
167 PLOG(TRACE) << config->getInstanceName() << " bind: '" << localAddress.toString() << "'";
-
168 break;
-
169 }
-
170 } else if (physicalServerSocket.listen(config->getBacklog()) < 0) {
-
171 switch (errno) {
-
172 case EADDRINUSE:
-
173 state = core::socket::STATE_ERROR;
-
174 PLOG(TRACE) << config->getInstanceName() << " listen: '" << localAddress.toString() << "'";
-
175 break;
-
176 default:
-
177 state = core::socket::STATE_FATAL;
-
178 PLOG(TRACE) << config->getInstanceName() << " listen: '" << localAddress.toString() << "'";
-
179 break;
-
180 }
-
181 } else {
-
182 if (enable(physicalServerSocket.getFd())) {
-
183 LOG(TRACE) << config->getInstanceName() << " enabled: '" << localAddress.toString() << "' success";
-
184 } else {
-
185 LOG(TRACE) << config->getInstanceName() << " enabled: '" << localAddress.toString() << "' failed";
-
186 }
-
187 }
-
188
-
189 if (localAddress.useNext()) {
-
190 LOG(TRACE) << config->getInstanceName() << ": Using next SocketAddress '"
-
191 << config->Local::getSocketAddress().toString() << "'";
-
192
- -
194
- -
196 } else {
- -
198 }
-
199
-
200 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) {
-
201 LOG(TRACE) << config->getInstanceName() << ": " << badSocketAddress.what();
-
202
-
203 onStatus({}, core::socket::STATE(badSocketAddress.getState(), badSocketAddress.getErrnum(), badSocketAddress.what()));
-
204 }
-
205 } else {
-
206 LOG(TRACE) << config->getInstanceName() << ": Disabled";
-
207
-
208 onStatus({}, core::socket::STATE_DISABLED);
-
209 }
-
210
-
211 if (isEnabled()) {
- -
213 } else {
- -
215 }
-
216 }
-
217
-
218 template <typename PhysicalSocketServer, typename Config, template <typename PhysicalSocketServerT> typename SocketConnection>
-
219 void SocketAcceptor<PhysicalSocketServer, Config, SocketConnection>::acceptEvent() {
-
220 int acceptsPerTick = config->getAcceptsPerTick();
-
221
-
222 do {
-
223 PhysicalServerSocket connectedPhysicalSocket(physicalServerSocket.accept4(PhysicalServerSocket::Flags::NONBLOCK),
-
224 physicalServerSocket.getBindAddress());
-
225 if (connectedPhysicalSocket.isValid()) {
-
226 LOG(TRACE) << config->getInstanceName() << " accept: Success '" << connectedPhysicalSocket.getBindAddress().toString()
-
227 << "'";
-
228
-
229 SocketConnection* socketConnection =
-
230 new SocketConnection(config->getInstanceName(),
-
231 std::move(connectedPhysicalSocket),
- -
233 localAddress.toString(false),
-
234 getLocalSocketAddress<SocketAddress>(connectedPhysicalSocket, config),
-
235 getRemoteSocketAddress<SocketAddress>(connectedPhysicalSocket, config),
-
236 config->getReadTimeout(),
-
237 config->getWriteTimeout(),
-
238 config->getReadBlockSize(),
-
239 config->getWriteBlockSize(),
-
240 config->getTerminateTimeout());
-
241
-
242 onConnect(socketConnection);
-
243 onConnected(socketConnection);
-
244 } else if (errno != EINTR && errno != EAGAIN && errno != EWOULDBLOCK) {
-
245 PLOG(TRACE) << config->getInstanceName() << " accept: Failed '" << physicalServerSocket.getBindAddress().toString() << "'";
-
246 }
-
247 } while (--acceptsPerTick > 0);
-
248 }
-
249
-
250 template <typename PhysicalSocketServer, typename Config, template <typename PhysicalSocketServerT> typename SocketConnection>
-
251 void SocketAcceptor<PhysicalSocketServer, Config, SocketConnection>::unobservedEvent() {
- -
253 }
-
254
-
255 template <typename PhysicalSocketServer, typename Config, template <typename PhysicalSocketServerT> typename SocketConnection>
-
256 void SocketAcceptor<PhysicalSocketServer, Config, SocketConnection>::destruct() {
-
257 delete this;
-
258 }
-
259
-
260} // namespace core::socket::stream
-
void setTimeout(const utils::Timeval &timeout)
- - +
131 core::socket::State state = core::socket::STATE_OK;
+
132
+
133 if (physicalServerSocket.open(config->getSocketOptions(), PhysicalServerSocket::Flags::NONBLOCK) < 0) {
+
134 switch (errno) {
+
135 case EMFILE:
+
136 case ENFILE:
+
137 case ENOBUFS:
+
138 case ENOMEM:
+
139 state = core::socket::STATE_ERROR;
+
140 PLOG(TRACE) << config->getInstanceName() << " open: '" << localAddress.toString() << "'";
+
141 break;
+
142 default:
+
143 state = core::socket::STATE_FATAL;
+
144 PLOG(TRACE) << config->getInstanceName() << " open: '" << localAddress.toString() << "'";
+
145 break;
+
146 }
+
147 } else if (physicalServerSocket.bind(localAddress) < 0) {
+
148 switch (errno) {
+
149 case EADDRINUSE:
+
150 state = core::socket::STATE_ERROR;
+
151 PLOG(TRACE) << config->getInstanceName() << " bind: '" << localAddress.toString() << "'";
+
152 break;
+
153 default:
+
154 state = core::socket::STATE_FATAL;
+
155 PLOG(TRACE) << config->getInstanceName() << " bind: '" << localAddress.toString() << "'";
+
156 break;
+
157 }
+
158 } else if (physicalServerSocket.listen(config->getBacklog()) < 0) {
+
159 switch (errno) {
+
160 case EADDRINUSE:
+
161 state = core::socket::STATE_ERROR;
+
162 PLOG(TRACE) << config->getInstanceName() << " listen: '" << localAddress.toString() << "'";
+
163 break;
+
164 default:
+
165 state = core::socket::STATE_FATAL;
+
166 PLOG(TRACE) << config->getInstanceName() << " listen: '" << localAddress.toString() << "'";
+
167 break;
+
168 }
+
169 } else {
+
170 if (enable(physicalServerSocket.getFd())) {
+
171 LOG(TRACE) << config->getInstanceName() << " enabled: '" << localAddress.toString() << "' success";
+
172 } else {
+
173 LOG(TRACE) << config->getInstanceName() << " enabled: '" << localAddress.toString() << "' failed";
+
174 }
+
175 }
+
176
+
177 if (localAddress.useNext()) {
+
178 LOG(TRACE) << config->getInstanceName() << ": Using next SocketAddress '"
+
179 << config->Local::getSocketAddress().toString() << "'";
+
180
+ +
182
+ +
184 } else {
+ +
186 }
+
187
+
188 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) {
+
189 LOG(TRACE) << config->getInstanceName() << ": " << badSocketAddress.what();
+
190
+
191 onStatus({}, core::socket::STATE(badSocketAddress.getState(), badSocketAddress.getErrnum(), badSocketAddress.what()));
+
192 }
+
193 } else {
+
194 LOG(TRACE) << config->getInstanceName() << ": Disabled";
+
195
+
196 onStatus({}, core::socket::STATE_DISABLED);
+
197 }
+
198
+
199 if (isEnabled()) {
+ +
201 } else {
+ +
203 }
+
204 }
+
205
+
206 template <typename PhysicalSocketServer, typename Config, template <typename PhysicalSocketServerT> typename SocketConnection>
+
207 void SocketAcceptor<PhysicalSocketServer, Config, SocketConnection>::acceptEvent() {
+
208 int acceptsPerTick = config->getAcceptsPerTick();
+
209
+
210 do {
+
211 PhysicalServerSocket connectedPhysicalSocket(physicalServerSocket.accept4(PhysicalServerSocket::Flags::NONBLOCK),
+
212 physicalServerSocket.getBindAddress());
+
213 if (connectedPhysicalSocket.isValid()) {
+
214 LOG(TRACE) << config->getInstanceName() << " accept: Success '" << connectedPhysicalSocket.getBindAddress().toString()
+
215 << "'";
+
216
+
217 SocketConnection* socketConnection =
+
218 new SocketConnection(config->getInstanceName(),
+
219 std::move(connectedPhysicalSocket),
+ +
221 localAddress.toString(false),
+
222 getLocalSocketAddress<SocketAddress>(connectedPhysicalSocket, config),
+
223 getRemoteSocketAddress<SocketAddress>(connectedPhysicalSocket, config),
+
224 config->getReadTimeout(),
+
225 config->getWriteTimeout(),
+
226 config->getReadBlockSize(),
+
227 config->getWriteBlockSize(),
+
228 config->getTerminateTimeout());
+
229
+
230 onConnect(socketConnection);
+
231 onConnected(socketConnection);
+
232 } else if (errno != EINTR && errno != EAGAIN && errno != EWOULDBLOCK) {
+
233 PLOG(TRACE) << config->getInstanceName() << " accept: Failed '" << physicalServerSocket.getBindAddress().toString() << "'";
+
234 }
+
235 } while (--acceptsPerTick > 0);
+
236 }
+
237
+
238 template <typename PhysicalSocketServer, typename Config, template <typename PhysicalSocketServerT> typename SocketConnection>
+
239 void SocketAcceptor<PhysicalSocketServer, Config, SocketConnection>::unobservedEvent() {
+ +
241 }
+
242
+
243 template <typename PhysicalSocketServer, typename Config, template <typename PhysicalSocketServerT> typename SocketConnection>
+
244 void SocketAcceptor<PhysicalSocketServer, Config, SocketConnection>::destruct() {
+
245 delete this;
+
246 }
+
247
+
248} // namespace core::socket::stream
+
void setTimeout(const utils::Timeval &timeout)
+ +
static void atNextTick(const std::function< void(void)> &callBack)
-
static State state()
Definition SNodeC.cpp:54
@@ -372,25 +359,21 @@
State operator|(int state)
Definition State.cpp:80
SocketAcceptor(const std::shared_ptr< core::socket::stream::SocketContextFactory > &socketContextFactory, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus, const std::shared_ptr< Config > &config)
-
SocketAcceptor & operator=(const SocketAcceptor &)=delete
- -
std::function< void(SocketConnection *)> onConnected
-
SocketAcceptor(const SocketAcceptor &socketAcceptor)
- -
std::function< void(SocketConnection *)> onConnect
-
std::function< void(SocketConnection *)> onDisconnect
-
std::shared_ptr< core::socket::stream::SocketContextFactory > socketContextFactory
- -
std::shared_ptr< Config > config
+ +
std::function< void(SocketConnection *)> onConnected
+
SocketAcceptor(const SocketAcceptor &socketAcceptor)
+ +
std::function< void(SocketConnection *)> onConnect
+
std::function< void(SocketConnection *)> onDisconnect
+
std::shared_ptr< core::socket::stream::SocketContextFactory > socketContextFactory
+ +
std::shared_ptr< Config > config
-
SocketAcceptor & operator=(SocketAcceptor &&)=delete
- -
SocketAcceptor(SocketAcceptor &&)=delete
- - - -
PhysicalServerSocket physicalServerSocket
-
std::function< void(const SocketAddress &, core::socket::State)> onStatus
+ + + +
PhysicalServerSocket physicalServerSocket
+
std::function< void(const SocketAddress &, core::socket::State)> onStatus
virtual const core::socket::SocketAddress & getLocalAddress() const =0
@@ -418,7 +401,7 @@
std::function< void(SocketConnection *)> setOnDisconnect(const std::function< void(SocketConnection *)> &onDisconnect)
- +
SocketAcceptor(const SocketAcceptor &socketAcceptor)
SocketAcceptor(const std::shared_ptr< core::socket::stream::SocketContextFactory > &socketContextFactory, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus, const std::shared_ptr< Config > &config)
@@ -447,7 +430,7 @@ diff --git a/html/SocketAddress_8hpp.html b/html/SocketAddress_8hpp.html index 2bd8625655..ba54198dc5 100644 --- a/html/SocketAddress_8hpp.html +++ b/html/SocketAddress_8hpp.html @@ -119,7 +119,7 @@ diff --git a/html/SocketAddress_8hpp_source.html b/html/SocketAddress_8hpp_source.html index 40cc3210de..0c1861f127 100644 --- a/html/SocketAddress_8hpp_source.html +++ b/html/SocketAddress_8hpp_source.html @@ -214,7 +214,7 @@ diff --git a/html/SocketConnection_8cpp.html b/html/SocketConnection_8cpp.html index d87063b866..8c664a1495 100644 --- a/html/SocketConnection_8cpp.html +++ b/html/SocketConnection_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/SocketConnection_8cpp_source.html b/html/SocketConnection_8cpp_source.html index 82cee00415..507313c503 100644 --- a/html/SocketConnection_8cpp_source.html +++ b/html/SocketConnection_8cpp_source.html @@ -220,7 +220,7 @@ diff --git a/html/SocketConnection_8h.html b/html/SocketConnection_8h.html index 3d38e493ff..b471aa9f3e 100644 --- a/html/SocketConnection_8h.html +++ b/html/SocketConnection_8h.html @@ -127,7 +127,7 @@ diff --git a/html/SocketConnection_8h_source.html b/html/SocketConnection_8h_source.html index 5edc07c6c2..617349794b 100644 --- a/html/SocketConnection_8h_source.html +++ b/html/SocketConnection_8h_source.html @@ -345,7 +345,7 @@ diff --git a/html/SocketConnection_8hpp.html b/html/SocketConnection_8hpp.html index b72a110259..771a779781 100644 --- a/html/SocketConnection_8hpp.html +++ b/html/SocketConnection_8hpp.html @@ -124,7 +124,7 @@ diff --git a/html/SocketConnection_8hpp_source.html b/html/SocketConnection_8hpp_source.html index a78c7c8fbb..0b2f12dc6a 100644 --- a/html/SocketConnection_8hpp_source.html +++ b/html/SocketConnection_8hpp_source.html @@ -414,9 +414,9 @@ - - - + + +
SocketConnector(const SocketConnector &socketConnector)
SocketConnector(const std::shared_ptr< core::socket::stream::SocketContextFactory > &socketContextFactory, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus, const std::shared_ptr< Config > &config)
@@ -442,7 +442,7 @@ diff --git a/html/SocketConnector_8h.html b/html/SocketConnector_8h.html index a7e2eadff1..189e23b4e4 100644 --- a/html/SocketConnector_8h.html +++ b/html/SocketConnector_8h.html @@ -130,7 +130,7 @@ diff --git a/html/SocketConnector_8h_source.html b/html/SocketConnector_8h_source.html index f2ed2f2569..ecff9cb8b5 100644 --- a/html/SocketConnector_8h_source.html +++ b/html/SocketConnector_8h_source.html @@ -146,89 +146,79 @@
47 using SocketConnection = SocketConnectionT<PhysicalClientSocket>;
48
49 public:
-
50 SocketConnector() = delete;
- -
52
- - -
55
-
56 SocketConnector(const std::shared_ptr<core::socket::stream::SocketContextFactory>& socketContextFactory,
-
57 const std::function<void(SocketConnection*)>& onConnect,
-
58 const std::function<void(SocketConnection*)>& onConnected,
-
59 const std::function<void(SocketConnection*)>& onDisconnect,
-
60 const std::function<void(const SocketAddress&, core::socket::State)>& onStatus,
-
61 const std::shared_ptr<Config>& config);
+
50 SocketConnector(const std::shared_ptr<core::socket::stream::SocketContextFactory>& socketContextFactory,
+
51 const std::function<void(SocketConnection*)>& onConnect,
+
52 const std::function<void(SocketConnection*)>& onConnected,
+
53 const std::function<void(SocketConnection*)>& onDisconnect,
+
54 const std::function<void(const SocketAddress&, core::socket::State)>& onStatus,
+
55 const std::shared_ptr<Config>& config);
+
56
+
57 SocketConnector(const SocketConnector& socketConnector);
+
58
+
59 ~SocketConnector() override;
+
60
+
61 virtual void useNextSocketAddress() = 0;
62
-
63 SocketConnector(const SocketConnector& socketConnector);
-
64
-
65 ~SocketConnector() override;
-
66
-
67 virtual void useNextSocketAddress() = 0;
+
63 protected:
+
64 virtual void init();
+
65
+
66 private:
+
67 void connectEvent() override;
68
-
69 protected:
-
70 virtual void init();
+
69 void unobservedEvent() final;
+
70 void connectTimeout() final;
71
-
72 private:
-
73 void connectEvent() override;
+
72 protected:
+
73 void destruct() final;
74
-
75 void unobservedEvent() final;
-
76 void connectTimeout() final;
-
77
-
78 protected:
-
79 void destruct() final;
-
80
-
81 private:
-
82 PhysicalClientSocket physicalClientSocket;
-
83 SocketAddress remoteAddress;
-
84
-
85 protected:
-
86 std::shared_ptr<core::socket::stream::SocketContextFactory> socketContextFactory = nullptr;
+
75 private:
+
76 PhysicalClientSocket physicalClientSocket;
+
77 SocketAddress remoteAddress;
+
78
+
79 protected:
+
80 std::shared_ptr<core::socket::stream::SocketContextFactory> socketContextFactory = nullptr;
+
81
+
82 std::function<void(SocketConnection*)> onConnect;
+
83 std::function<void(SocketConnection*)> onConnected;
+
84 std::function<void(SocketConnection*)> onDisconnect;
+
85
+
86 std::function<void(const SocketAddress&, core::socket::State)> onStatus;
87
-
88 std::function<void(SocketConnection*)> onConnect;
-
89 std::function<void(SocketConnection*)> onConnected;
-
90 std::function<void(SocketConnection*)> onDisconnect;
-
91
-
92 std::function<void(const SocketAddress&, core::socket::State)> onStatus;
-
93
-
94 std::shared_ptr<Config> config = nullptr;
-
95 };
-
96
-
97} // namespace core::socket::stream
-
98
-
99#endif // CORE_SOCKET_STREAM_SOCKETCONNECTOR_H
+
88 std::shared_ptr<Config> config = nullptr;
+
89 };
+
90
+
91} // namespace core::socket::stream
+
92
+
93#endif // CORE_SOCKET_STREAM_SOCKETCONNECTOR_H
- - + - -
SocketConnector(const SocketConnector &socketConnector)
-
std::function< void(const SocketAddress &, core::socket::State)> onStatus
-
SocketConnector(SocketConnector &&)=delete
- -
std::function< void(SocketConnection *)> onConnected
- - -
std::shared_ptr< core::socket::stream::SocketContextFactory > socketContextFactory
-
std::function< void(SocketConnection *)> onDisconnect
-
std::function< void(SocketConnection *)> onConnect
- - - -
SocketConnector & operator=(const SocketConnector &)=delete
+ +
SocketConnector(const SocketConnector &socketConnector)
+
std::function< void(const SocketAddress &, core::socket::State)> onStatus
+ +
std::function< void(SocketConnection *)> onConnected
+ + +
std::shared_ptr< core::socket::stream::SocketContextFactory > socketContextFactory
+
std::function< void(SocketConnection *)> onDisconnect
+
std::function< void(SocketConnection *)> onConnect
+ + +
SocketConnector(const std::shared_ptr< core::socket::stream::SocketContextFactory > &socketContextFactory, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus, const std::shared_ptr< Config > &config)
- -
SocketConnector & operator=(SocketConnector &&)=delete
+
SocketConnection(const std::string &instanceName, PhysicalSocket &&physicalSocket, const std::function< void(SocketConnection *)> &onDisconnect, const std::string &configuredServer, const SocketAddress &localAddress, const SocketAddress &remoteAddress, const utils::Timeval &readTimeout, const utils::Timeval &writeTimeout, std::size_t readBlockSize, std::size_t writeBlockSize, const utils::Timeval &terminateTimeout)
SocketConnector(const std::shared_ptr< core::socket::stream::SocketContextFactory > &socketContextFactory, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus, const std::shared_ptr< Config > &config)
SocketConnector(const SocketConnector &socketConnector)
- + @@ -248,7 +238,7 @@ diff --git a/html/SocketConnector_8hpp.html b/html/SocketConnector_8hpp.html index 0dbdeb730e..8b9bc0bf5d 100644 --- a/html/SocketConnector_8hpp.html +++ b/html/SocketConnector_8hpp.html @@ -133,7 +133,7 @@ diff --git a/html/SocketConnector_8hpp_source.html b/html/SocketConnector_8hpp_source.html index 9ac0f6d867..2fccfc9b78 100644 --- a/html/SocketConnector_8hpp_source.html +++ b/html/SocketConnector_8hpp_source.html @@ -146,36 +146,36 @@
47
48 try {
49 localPeerAddress = config->Local::Super::getSocketAddress(localSockAddr, localSockAddrLen);
-
50 LOG(TRACE) << config->getInstanceName() << std::setw(24) << " PeerAddress (local): " << localPeerAddress.toString();
+
50 LOG(TRACE) << config->getInstanceName() << std::setw(24) << " PeerAddress (local): " << localPeerAddress.toString();
51 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) { // cppcheck-suppress shadowVariable
52 LOG(TRACE) << config->getInstanceName() << std::setw(24) << " PeerAddress (local): " << badSocketAddress.what();
53 }
54 }
55 }
- -
57 return localPeerAddress;
+
56
+
57 return localPeerAddress;
58 }
-
59
+
60 template <typename SocketAddress, typename PhysicalSocket, typename Config>
61 SocketAddress getRemoteSocketAddress(PhysicalSocket& physicalSocket, Config& config) {
62 typename SocketAddress::SockAddr remoteSockAddr;
-
63 typename SocketAddress::SockLen remoteSockAddrLen = sizeof(typename SocketAddress::SockAddr);
-
64
-
65 SocketAddress remotePeerAddress;
+
63 typename SocketAddress::SockLen remoteSockAddrLen = sizeof(typename SocketAddress::SockAddr);
+ +
65 SocketAddress remotePeerAddress;
66 if (physicalSocket.getPeerName(remoteSockAddr, remoteSockAddrLen) == 0) {
-
67 try {
+
67 try {
68 remotePeerAddress = config->Remote::getSocketAddress(remoteSockAddr, remoteSockAddrLen);
-
69 LOG(TRACE) << config->getInstanceName() << std::setw(24) << " PeerAddress (remote): " << remotePeerAddress.toString();
-
70 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) {
+
69 LOG(TRACE) << config->getInstanceName() << std::setw(24) << " PeerAddress (remote): " << remotePeerAddress.toString();
+
70 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) {
71 LOG(TRACE) << config->getInstanceName() << std::setw(24) << " PeerAddress (remote): " << badSocketAddress.what();
72
-
73 try {
+
73 try {
74 remotePeerAddress = config->Remote::Super::getSocketAddress(remoteSockAddr, remoteSockAddrLen);
-
75 LOG(TRACE) << config->getInstanceName() << std::setw(24) << " PeerAddress (remote): " << remotePeerAddress.toString();
-
76 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) { // cppcheck-suppress shadowVariable
+
75 LOG(TRACE) << config->getInstanceName() << std::setw(24) << " PeerAddress (remote): " << remotePeerAddress.toString();
+
76 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) { // cppcheck-suppress shadowVariable
77 LOG(TRACE) << config->getInstanceName() << std::setw(24) << " PeerAddress (remote): " << badSocketAddress.what();
78 }
-
79 }
+
79 }
80 }
81
82 return remotePeerAddress;
@@ -201,291 +201,278 @@
102 });
103 }
104
-
105#ifdef __GNUC__
-
106#pragma GCC diagnostic push
-
107#endif
-
108#ifdef __has_warning
-
109#if __has_warning("-Wabstract-vbase-init")
-
110#pragma GCC diagnostic ignored "-Wabstract-vbase-init"
-
111#endif
-
112#endif
-
113 template <typename PhysicalSocketServer, typename Config, template <typename PhysicalSocketServerT> typename SocketConnection>
-
114 SocketConnector<PhysicalSocketServer, Config, SocketConnection>::SocketConnector(const SocketConnector& socketConnector)
-
115 : core::Observer(socketConnector)
-
116 , core::eventreceiver::ConnectEventReceiver(socketConnector.config->getInstanceName() + " SocketConnector:", 0)
-
117 , socketContextFactory(socketConnector.socketContextFactory)
-
118 , onConnect(socketConnector.onConnect)
-
119 , onConnected(socketConnector.onConnected)
-
120 , onDisconnect(socketConnector.onDisconnect)
-
121 , onStatus(socketConnector.onStatus)
-
122 , config(socketConnector.config) {
-
123 atNextTick([this]() -> void {
-
124 init();
-
125 });
-
126 }
-
127#ifdef __GNUC__
-
128#pragma GCC diagnostic pop
-
129#endif
-
130
-
131 template <typename PhysicalSocketClient, typename Config, template <typename PhysicalSocketClientT> typename SocketConnection>
-
132 SocketConnector<PhysicalSocketClient, Config, SocketConnection>::~SocketConnector() {
-
133 }
-
134
-
135 template <typename PhysicalSocketClient, typename Config, template <typename PhysicalSocketClientT> typename SocketConnection>
-
136 void SocketConnector<PhysicalSocketClient, Config, SocketConnection>::init() {
-
137 if (!config->getDisabled()) {
-
138 try {
-
139 LOG(TRACE) << config->getInstanceName() << ": Starting";
-
140
-
141 remoteAddress = config->Remote::getSocketAddress();
-
142 SocketAddress localAddress = config->Local::getSocketAddress();
-
143
-
144 try {
-
145 if (physicalClientSocket.open(config->getSocketOptions(), PhysicalClientSocket::Flags::NONBLOCK) < 0) {
-
146 core::socket::State state = core::socket::STATE_OK;
+
105 template <typename PhysicalSocketServer, typename Config, template <typename PhysicalSocketServerT> typename SocketConnection>
+
106 SocketConnector<PhysicalSocketServer, Config, SocketConnection>::SocketConnector(const SocketConnector& socketConnector)
+
107 : core::eventreceiver::ConnectEventReceiver(socketConnector.config->getInstanceName() + " SocketConnector:", 0)
+
108 , socketContextFactory(socketConnector.socketContextFactory)
+
109 , onConnect(socketConnector.onConnect)
+
110 , onConnected(socketConnector.onConnected)
+
111 , onDisconnect(socketConnector.onDisconnect)
+
112 , onStatus(socketConnector.onStatus)
+
113 , config(socketConnector.config) {
+
114 atNextTick([this]() -> void {
+
115 init();
+
116 });
+
117 }
+
118
+
119 template <typename PhysicalSocketClient, typename Config, template <typename PhysicalSocketClientT> typename SocketConnection>
+
120 SocketConnector<PhysicalSocketClient, Config, SocketConnection>::~SocketConnector() {
+
121 }
+
122
+
123 template <typename PhysicalSocketClient, typename Config, template <typename PhysicalSocketClientT> typename SocketConnection>
+
124 void SocketConnector<PhysicalSocketClient, Config, SocketConnection>::init() {
+
125 if (!config->getDisabled()) {
+
126 try {
+
127 LOG(TRACE) << config->getInstanceName() << ": Starting";
+
128
+
129 remoteAddress = config->Remote::getSocketAddress();
+
130 SocketAddress localAddress = config->Local::getSocketAddress();
+
131
+
132 try {
+
133 if (physicalClientSocket.open(config->getSocketOptions(), PhysicalClientSocket::Flags::NONBLOCK) < 0) {
+
134 core::socket::State state = core::socket::STATE_OK;
+
135
+
136 switch (errno) {
+
137 case EMFILE:
+
138 case ENFILE:
+
139 case ENOBUFS:
+
140 case ENOMEM:
+
141 PLOG(TRACE) << config->getInstanceName() << ": open '" << localAddress.toString() << "'";
+
142
+
143 state = core::socket::STATE_ERROR;
+
144 break;
+
145 default:
+
146 PLOG(TRACE) << config->getInstanceName() << ": open failed '" << localAddress.toString() << "'";
147
-
148 switch (errno) {
-
149 case EMFILE:
-
150 case ENFILE:
-
151 case ENOBUFS:
-
152 case ENOMEM:
-
153 PLOG(TRACE) << config->getInstanceName() << ": open '" << localAddress.toString() << "'";
-
154
-
155 state = core::socket::STATE_ERROR;
-
156 break;
-
157 default:
-
158 PLOG(TRACE) << config->getInstanceName() << ": open failed '" << localAddress.toString() << "'";
+
148 state = core::socket::STATE_FATAL;
+
149 break;
+
150 }
+
151
+ +
153 } else if (physicalClientSocket.bind(localAddress) < 0) {
+
154 core::socket::State state = core::socket::STATE_OK;
+
155
+
156 switch (errno) {
+
157 case EADDRINUSE:
+
158 PLOG(TRACE) << config->getInstanceName() << ": bind '" << localAddress.toString() << "'";
159
-
160 state = core::socket::STATE_FATAL;
+
160 state = core::socket::STATE_ERROR;
161 break;
-
162 }
-
163
- -
165 } else if (physicalClientSocket.bind(localAddress) < 0) {
-
166 core::socket::State state = core::socket::STATE_OK;
-
167
-
168 switch (errno) {
-
169 case EADDRINUSE:
-
170 PLOG(TRACE) << config->getInstanceName() << ": bind '" << localAddress.toString() << "'";
-
171
-
172 state = core::socket::STATE_ERROR;
-
173 break;
-
174 default:
-
175 PLOG(TRACE) << config->getInstanceName() << ": bind failed '" << localAddress.toString() << "'";
-
176
-
177 state = core::socket::STATE_FATAL;
-
178 break;
-
179 }
-
180
- -
182 } else if (physicalClientSocket.connect(remoteAddress) < 0 && !PhysicalClientSocket::connectInProgress(errno)) {
-
183 core::socket::State state = core::socket::STATE_OK;
-
184
-
185 switch (errno) {
-
186 case EADDRINUSE:
-
187 case EADDRNOTAVAIL:
-
188 case ECONNREFUSED:
-
189 case ENETUNREACH:
-
190 case ENOENT:
-
191 case EHOSTDOWN:
-
192 PLOG(TRACE) << config->getInstanceName() << ": connect '" << remoteAddress.toString() << "'";
+
162 default:
+
163 PLOG(TRACE) << config->getInstanceName() << ": bind failed '" << localAddress.toString() << "'";
+
164
+
165 state = core::socket::STATE_FATAL;
+
166 break;
+
167 }
+
168
+ +
170 } else if (physicalClientSocket.connect(remoteAddress) < 0 && !PhysicalClientSocket::connectInProgress(errno)) {
+
171 core::socket::State state = core::socket::STATE_OK;
+
172
+
173 switch (errno) {
+
174 case EADDRINUSE:
+
175 case EADDRNOTAVAIL:
+
176 case ECONNREFUSED:
+
177 case ENETUNREACH:
+
178 case ENOENT:
+
179 case EHOSTDOWN:
+
180 PLOG(TRACE) << config->getInstanceName() << ": connect '" << remoteAddress.toString() << "'";
+
181
+
182 state = core::socket::STATE_ERROR;
+
183 break;
+
184 default:
+
185 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
+
186
+
187 state = core::socket::STATE_FATAL;
+
188 break;
+
189 }
+
190
+
191 if (remoteAddress.useNext()) {
+
193
-
194 state = core::socket::STATE_ERROR;
-
195 break;
-
196 default:
-
197 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
-
198
-
199 state = core::socket::STATE_FATAL;
-
200 break;
-
201 }
-
202
-
203 if (remoteAddress.useNext()) {
- -
205
-
206 LOG(TRACE) << config->getInstanceName() << ": using next SocketAddress '"
-
207 << config->Remote::getSocketAddress().toString() << "'";
-
208
- -
210 } else {
- -
212 }
-
213 } else if (PhysicalClientSocket::connectInProgress(errno)) {
-
214 if (enable(physicalClientSocket.getFd())) {
-
215 LOG(TRACE) << config->getInstanceName() << ": connect in progress '" << remoteAddress.toString() << "'";
-
216 } else {
-
217 LOG(TRACE) << config->getInstanceName() << ": Error: not monitored by SNode.C";
-
218 }
-
219 } else {
-
220 LOG(TRACE) << config->getInstanceName() << ": connect success '" << remoteAddress.toString() << "'";
-
221
-
222 onStatus(remoteAddress, core::socket::STATE_OK);
-
223
-
224 SocketConnection* socketConnection =
-
225 new SocketConnection(config->getInstanceName(),
-
226 std::move(physicalClientSocket),
- -
228 remoteAddress.toString(false),
-
229 getLocalSocketAddress<SocketAddress>(physicalClientSocket, config),
-
230 getRemoteSocketAddress<SocketAddress>(physicalClientSocket, config),
-
231 config->getReadTimeout(),
-
232 config->getWriteTimeout(),
-
233 config->getReadBlockSize(),
-
234 config->getWriteBlockSize(),
-
235 config->getTerminateTimeout());
-
236
-
237 onConnect(socketConnection);
-
238 onConnected(socketConnection);
-
239 }
-
240 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) {
-
241 LOG(TRACE) << config->getInstanceName() << ": " << badSocketAddress.what();
-
242
-
243 onStatus({}, core::socket::STATE(badSocketAddress.getState(), badSocketAddress.getErrnum(), badSocketAddress.what()));
-
244 }
-
245 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) {
-
246 LOG(TRACE) << config->getInstanceName() << ": " << badSocketAddress.what();
-
247
-
248 onStatus({}, core::socket::STATE(badSocketAddress.getState(), badSocketAddress.getErrnum(), badSocketAddress.what()));
-
249 }
-
250 } else {
-
251 LOG(TRACE) << config->getInstanceName() << ": disabled";
-
252
-
253 onStatus({}, core::socket::STATE_DISABLED);
-
254 }
-
255
-
256 if (isEnabled()) {
- -
258 } else {
- -
260 }
-
261 }
-
262
-
263 template <typename PhysicalSocketClient, typename Config, template <typename PhysicalSocketClientT> typename SocketConnection>
-
264 void SocketConnector<PhysicalSocketClient, Config, SocketConnection>::connectEvent() {
-
265 int cErrno = 0;
-
266 if (physicalClientSocket.getSockError(cErrno) == 0) { // == 0->return valid : < 0->getsockopt failed
-
267 const utils::PreserveErrno pe(cErrno); // errno = cErrno
-
268
-
269 if (errno == 0) {
-
270 LOG(TRACE) << config->getInstanceName() << ": connect success '" << remoteAddress.toString() << "'";
-
271
-
272 onStatus(remoteAddress, core::socket::STATE_OK);
-
273
-
274 SocketConnection* socketConnection =
-
275 new SocketConnection(config->getInstanceName(),
-
276 std::move(physicalClientSocket),
- -
278 remoteAddress.toString(false),
-
279 getLocalSocketAddress<SocketAddress>(physicalClientSocket, config),
-
280 getRemoteSocketAddress<SocketAddress>(physicalClientSocket, config),
-
281 config->getReadTimeout(),
-
282 config->getWriteTimeout(),
-
283 config->getReadBlockSize(),
-
284 config->getWriteBlockSize(),
-
285 config->getTerminateTimeout());
-
286
-
287 onConnect(socketConnection);
-
288 onConnected(socketConnection);
-
289
-
290 disable();
-
291 } else if (PhysicalClientSocket::connectInProgress(errno)) {
-
292 LOG(TRACE) << config->getInstanceName() << ": connect still in progress '" << remoteAddress.toString() << "'";
-
293 } else if (remoteAddress.useNext()) {
-
294 core::socket::State state = core::socket::STATE_OK;
-
295
-
296 switch (errno) {
-
297 case EADDRINUSE:
-
298 case EADDRNOTAVAIL:
-
299 case ECONNREFUSED:
-
300 case ENETUNREACH:
-
301 case ENOENT:
-
302 case EHOSTDOWN:
-
303 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
-
304
-
305 state = core::socket::STATE_ERROR;
-
306 break;
-
307 default:
-
308 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
-
309
-
310 state = core::socket::STATE_FATAL;
-
311 break;
-
312 }
-
313
- -
315
-
316 LOG(TRACE) << config->getInstanceName() << ": using next SocketAddress '" << config->Remote::getSocketAddress().toString()
-
317 << "'";
-
318
- -
320
-
321 disable();
-
322 } else {
-
323 core::socket::State state = core::socket::STATE_OK;
-
324
-
325 switch (errno) {
-
326 case EADDRINUSE:
-
327 case EADDRNOTAVAIL:
-
328 case ECONNREFUSED:
-
329 case ENETUNREACH:
-
330 case ENOENT:
-
331 case EHOSTDOWN:
-
332 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
-
333
-
334 state = core::socket::STATE_ERROR;
-
335 break;
-
336 default:
-
337 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
-
338
-
339 state = core::socket::STATE_FATAL;
-
340 break;
-
341 }
+
194 LOG(TRACE) << config->getInstanceName() << ": using next SocketAddress '"
+
195 << config->Remote::getSocketAddress().toString() << "'";
+
196
+ +
198 } else {
+ +
200 }
+
201 } else if (PhysicalClientSocket::connectInProgress(errno)) {
+
202 if (enable(physicalClientSocket.getFd())) {
+
203 LOG(TRACE) << config->getInstanceName() << ": connect in progress '" << remoteAddress.toString() << "'";
+
204 } else {
+
205 LOG(TRACE) << config->getInstanceName() << ": Error: not monitored by SNode.C";
+
206 }
+
207 } else {
+
208 LOG(TRACE) << config->getInstanceName() << ": connect success '" << remoteAddress.toString() << "'";
+
209
+
210 onStatus(remoteAddress, core::socket::STATE_OK);
+
211
+
212 SocketConnection* socketConnection =
+
213 new SocketConnection(config->getInstanceName(),
+
214 std::move(physicalClientSocket),
+ +
216 remoteAddress.toString(false),
+
217 getLocalSocketAddress<SocketAddress>(physicalClientSocket, config),
+
218 getRemoteSocketAddress<SocketAddress>(physicalClientSocket, config),
+
219 config->getReadTimeout(),
+
220 config->getWriteTimeout(),
+
221 config->getReadBlockSize(),
+
222 config->getWriteBlockSize(),
+
223 config->getTerminateTimeout());
+
224
+
225 onConnect(socketConnection);
+
226 onConnected(socketConnection);
+
227 }
+
228 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) {
+
229 LOG(TRACE) << config->getInstanceName() << ": " << badSocketAddress.what();
+
230
+
231 onStatus({}, core::socket::STATE(badSocketAddress.getState(), badSocketAddress.getErrnum(), badSocketAddress.what()));
+
232 }
+
233 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) {
+
234 LOG(TRACE) << config->getInstanceName() << ": " << badSocketAddress.what();
+
235
+
236 onStatus({}, core::socket::STATE(badSocketAddress.getState(), badSocketAddress.getErrnum(), badSocketAddress.what()));
+
237 }
+
238 } else {
+
239 LOG(TRACE) << config->getInstanceName() << ": disabled";
+
240
+
241 onStatus({}, core::socket::STATE_DISABLED);
+
242 }
+
243
+
244 if (isEnabled()) {
+ +
246 } else {
+ +
248 }
+
249 }
+
250
+
251 template <typename PhysicalSocketClient, typename Config, template <typename PhysicalSocketClientT> typename SocketConnection>
+
252 void SocketConnector<PhysicalSocketClient, Config, SocketConnection>::connectEvent() {
+
253 int cErrno = 0;
+
254 if (physicalClientSocket.getSockError(cErrno) == 0) { // == 0->return valid : < 0->getsockopt failed
+
255 const utils::PreserveErrno pe(cErrno); // errno = cErrno
+
256
+
257 if (errno == 0) {
+
258 LOG(TRACE) << config->getInstanceName() << ": connect success '" << remoteAddress.toString() << "'";
+
259
+
260 onStatus(remoteAddress, core::socket::STATE_OK);
+
261
+
262 SocketConnection* socketConnection =
+
263 new SocketConnection(config->getInstanceName(),
+
264 std::move(physicalClientSocket),
+ +
266 remoteAddress.toString(false),
+
267 getLocalSocketAddress<SocketAddress>(physicalClientSocket, config),
+
268 getRemoteSocketAddress<SocketAddress>(physicalClientSocket, config),
+
269 config->getReadTimeout(),
+
270 config->getWriteTimeout(),
+
271 config->getReadBlockSize(),
+
272 config->getWriteBlockSize(),
+
273 config->getTerminateTimeout());
+
274
+
275 onConnect(socketConnection);
+
276 onConnected(socketConnection);
+
277
+
278 disable();
+
279 } else if (PhysicalClientSocket::connectInProgress(errno)) {
+
280 LOG(TRACE) << config->getInstanceName() << ": connect still in progress '" << remoteAddress.toString() << "'";
+
281 } else if (remoteAddress.useNext()) {
+
282 core::socket::State state = core::socket::STATE_OK;
+
283
+
284 switch (errno) {
+
285 case EADDRINUSE:
+
286 case EADDRNOTAVAIL:
+
287 case ECONNREFUSED:
+
288 case ENETUNREACH:
+
289 case ENOENT:
+
290 case EHOSTDOWN:
+
291 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
+
292
+
293 state = core::socket::STATE_ERROR;
+
294 break;
+
295 default:
+
296 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
+
297
+
298 state = core::socket::STATE_FATAL;
+
299 break;
+
300 }
+
301
+ +
303
+
304 LOG(TRACE) << config->getInstanceName() << ": using next SocketAddress '" << config->Remote::getSocketAddress().toString()
+
305 << "'";
+
306
+ +
308
+
309 disable();
+
310 } else {
+
311 core::socket::State state = core::socket::STATE_OK;
+
312
+
313 switch (errno) {
+
314 case EADDRINUSE:
+
315 case EADDRNOTAVAIL:
+
316 case ECONNREFUSED:
+
317 case ENETUNREACH:
+
318 case ENOENT:
+
319 case EHOSTDOWN:
+
320 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
+
321
+
322 state = core::socket::STATE_ERROR;
+
323 break;
+
324 default:
+
325 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
+
326
+
327 state = core::socket::STATE_FATAL;
+
328 break;
+
329 }
+
330
+ +
332
+
333 disable();
+
334 }
+
335 } else {
+
336 PLOG(TRACE) << config->getInstanceName() << ": getsockopt syscall error '" << remoteAddress.toString() << "'";
+
337
+
338 onStatus(remoteAddress, core::socket::STATE_FATAL);
+
339 disable();
+
340 }
+
341 }
342
- -
344
-
345 disable();
-
346 }
-
347 } else {
-
348 PLOG(TRACE) << config->getInstanceName() << ": getsockopt syscall error '" << remoteAddress.toString() << "'";
-
349
-
350 onStatus(remoteAddress, core::socket::STATE_FATAL);
-
351 disable();
-
352 }
-
353 }
-
354
-
355 template <typename PhysicalSocketClient, typename Config, template <typename PhysicalSocketClientT> typename SocketConnection>
-
356 void SocketConnector<PhysicalSocketClient, Config, SocketConnection>::unobservedEvent() {
- -
358 }
+
343 template <typename PhysicalSocketClient, typename Config, template <typename PhysicalSocketClientT> typename SocketConnection>
+
344 void SocketConnector<PhysicalSocketClient, Config, SocketConnection>::unobservedEvent() {
+ +
346 }
+
347
+
348 template <typename PhysicalSocketClient, typename Config, template <typename PhysicalSocketClientT> typename SocketConnection>
+
349 void SocketConnector<PhysicalSocketClient, Config, SocketConnection>::connectTimeout() {
+
350 LOG(TRACE) << config->getInstanceName() << ": connect timeout " << remoteAddress.toString();
+
351
+
352 if (remoteAddress.useNext()) {
+
353 LOG(TRACE) << config->getInstanceName() << ": using next SocketAddress '" << config->Remote::getSocketAddress().toString()
+
354 << "'";
+
355
+ +
357 } else {
+
358 LOG(TRACE) << config->getInstanceName() << ": connect timeout '" << remoteAddress.toString() << "'";
359
-
360 template <typename PhysicalSocketClient, typename Config, template <typename PhysicalSocketClientT> typename SocketConnection>
-
361 void SocketConnector<PhysicalSocketClient, Config, SocketConnection>::connectTimeout() {
-
362 LOG(TRACE) << config->getInstanceName() << ": connect timeout " << remoteAddress.toString();
-
363
-
364 if (remoteAddress.useNext()) {
-
365 LOG(TRACE) << config->getInstanceName() << ": using next SocketAddress '" << config->Remote::getSocketAddress().toString()
-
366 << "'";
-
367
- -
369 } else {
-
370 LOG(TRACE) << config->getInstanceName() << ": connect timeout '" << remoteAddress.toString() << "'";
-
371
-
372 onStatus(remoteAddress, core::socket::STATE_ERROR);
-
373 }
-
374
-
375 disable();
-
376 }
-
377
-
378 template <typename PhysicalSocketClient, typename Config, template <typename PhysicalSocketClientT> typename SocketConnection>
-
379 void SocketConnector<PhysicalSocketClient, Config, SocketConnection>::destruct() {
-
380 delete this;
-
381 }
-
382
-
383} // namespace core::socket::stream
- -
void setTimeout(const utils::Timeval &timeout)
- - +
360 onStatus(remoteAddress, core::socket::STATE_ERROR);
+
361 }
+
362
+
363 disable();
+
364 }
+
365
+
366 template <typename PhysicalSocketClient, typename Config, template <typename PhysicalSocketClientT> typename SocketConnection>
+
367 void SocketConnector<PhysicalSocketClient, Config, SocketConnection>::destruct() {
+
368 delete this;
+
369 }
+
370
+
371} // namespace core::socket::stream
+ +
void setTimeout(const utils::Timeval &timeout)
+ +
static void atNextTick(const std::function< void(void)> &callBack)
-
virtual std::size_t onReceivedFromPeer()=0
@@ -531,23 +518,23 @@
void setSocketContext(SocketContext *socketContext)
- + - -
SocketConnector(const SocketConnector &socketConnector)
-
std::function< void(const SocketAddress &, core::socket::State)> onStatus
- -
std::function< void(SocketConnection *)> onConnected
- - -
std::shared_ptr< core::socket::stream::SocketContextFactory > socketContextFactory
-
std::function< void(SocketConnection *)> onDisconnect
-
std::function< void(SocketConnection *)> onConnect
- - - + +
SocketConnector(const SocketConnector &socketConnector)
+
std::function< void(const SocketAddress &, core::socket::State)> onStatus
+ +
std::function< void(SocketConnection *)> onConnected
+ + +
std::shared_ptr< core::socket::stream::SocketContextFactory > socketContextFactory
+
std::function< void(SocketConnection *)> onDisconnect
+
std::function< void(SocketConnection *)> onConnect
+ + +
SocketConnector(const std::shared_ptr< core::socket::stream::SocketContextFactory > &socketContextFactory, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus, const std::shared_ptr< Config > &config)
- +
void onReadError(int errnum) override
void onWriteError(int errnum) override
@@ -564,9 +551,9 @@ - - - + + +
SocketConnector(const SocketConnector &socketConnector)
SocketConnector(const std::shared_ptr< core::socket::stream::SocketContextFactory > &socketContextFactory, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus, const std::shared_ptr< Config > &config)
@@ -599,7 +586,7 @@ diff --git a/html/SocketContextUpgradeFactorySelector_8h.html b/html/SocketContextUpgradeFactorySelector_8h.html index d22c8e8bb9..b9540455f6 100644 --- a/html/SocketContextUpgradeFactorySelector_8h.html +++ b/html/SocketContextUpgradeFactorySelector_8h.html @@ -152,7 +152,7 @@

diff --git a/html/SocketContextUpgradeFactorySelector_8h_source.html b/html/SocketContextUpgradeFactorySelector_8h_source.html index 0cb6e1eb3c..a1a6bb5d78 100644 --- a/html/SocketContextUpgradeFactorySelector_8h_source.html +++ b/html/SocketContextUpgradeFactorySelector_8h_source.html @@ -219,65 +219,67 @@
virtual bool execute(Request *request)=0
- -
CiStringMap< std::string > headers
Definition Request.h:152
-
Request & set(const std::string &field, const std::string &value, bool overwrite=true)
Definition Request.cpp:131
-
bool upgrade(const std::shared_ptr< Response > &response, const std::function< void(bool)> &status)
Definition Request.cpp:292
-
TransferEncoding transferEncoding
Definition Request.h:159
- -
ConnectionState connectionState
Definition Request.h:164
-
std::size_t contentLengthSent
Definition Request.h:162
-
void onSourceEof() override
Definition Request.cpp:577
-
CiStringMap< std::string > cookies
Definition Request.h:153
-
Request & cookie(const std::string &name, const std::string &value)
Definition Request.cpp:191
-
virtual void init(const std::string &host)
Definition Request.cpp:92
-
Request(Request &&) noexcept
Definition Request.cpp:57
-
CiStringMap< std::string > trailer
Definition Request.h:154
-
void onSourceError(int errnum) override
Definition Request.cpp:585
- -
std::string header(const std::string &field)
Definition Request.cpp:596
-
std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> onResponseReceived
Definition Request.h:166
-
Request & sendFragment(const std::string &data)
Definition Request.cpp:372
-
bool sendFile(const std::string &file, const std::function< void(int errnum)> &onStatus, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &onResponseReceived, const std::function< void(const std::shared_ptr< Request > &, const std::string &)> &onResponseParseError=responseParseError)
Definition Request.cpp:334
-
Request & query(const std::string &key, const std::string &value)
Definition Request.cpp:205
-
bool upgrade(const std::string &url, const std::string &protocols, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &onResponseReceived, const std::function< void(const std::shared_ptr< Request > &, const std::string &)> &onResponseParseError=responseParseError)
Definition Request.cpp:272
- -
void onSourceData(const char *chunk, std::size_t chunkLen) override
Definition Request.cpp:573
-
bool executeSendFragment(const char *chunk, std::size_t chunkLen)
Definition Request.cpp:520
- -
const CiStringMap< std::string > & getQueries() const
Definition Request.cpp:600
-
const CiStringMap< std::string > & getCookies() const
Definition Request.cpp:608
-
Request & setTrailer(const std::string &field, const std::string &value, bool overwrite=true)
Definition Request.cpp:211
-
Request & cookie(const std::map< std::string, std::string > &cookies)
Definition Request.cpp:197
-
web::http::client::SocketContext * getSocketContext() const
Definition Request.cpp:612
-
static void responseParseError(const std::shared_ptr< Request > &request, const std::string &message)
Definition Request.cpp:230
-
void setMasterRequest(const std::shared_ptr< Request > &masterRequest)
Definition Request.cpp:88
- - -
std::function< void(const std::shared_ptr< Request > &request, const std::string &message)> onResponseParseError
Definition Request.h:167
-
CiStringMap< std::string > queries
Definition Request.h:151
-
Request & set(const std::map< std::string, std::string > &headers, bool overwrite=true)
Definition Request.cpp:177
-
std::size_t contentLength
Definition Request.h:161
-
web::http::client::SocketContext * socketContext
Definition Request.h:171
- + +
CiStringMap< std::string > headers
Definition Request.h:154
+
Request & set(const std::string &field, const std::string &value, bool overwrite=true)
Definition Request.cpp:136
+
bool upgrade(const std::shared_ptr< Response > &response, const std::function< void(bool)> &status)
Definition Request.cpp:297
+
TransferEncoding transferEncoding
Definition Request.h:161
+ +
ConnectionState connectionState
Definition Request.h:166
+
std::size_t contentLengthSent
Definition Request.h:164
+
void onSourceEof() override
Definition Request.cpp:585
+
CiStringMap< std::string > cookies
Definition Request.h:155
+
Request & cookie(const std::string &name, const std::string &value)
Definition Request.cpp:196
+
Request(Request &&) noexcept
Definition Request.cpp:58
+
CiStringMap< std::string > trailer
Definition Request.h:156
+
void onSourceError(int errnum) override
Definition Request.cpp:593
+ +
std::string header(const std::string &field)
Definition Request.cpp:604
+
std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> onResponseReceived
Definition Request.h:168
+
Request & sendFragment(const std::string &data)
Definition Request.cpp:377
+
bool sendFile(const std::string &file, const std::function< void(int errnum)> &onStatus, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &onResponseReceived, const std::function< void(const std::shared_ptr< Request > &, const std::string &)> &onResponseParseError=responseParseError)
Definition Request.cpp:339
+
Request & query(const std::string &key, const std::string &value)
Definition Request.cpp:210
+
bool upgrade(const std::string &url, const std::string &protocols, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &onResponseReceived, const std::function< void(const std::shared_ptr< Request > &, const std::string &)> &onResponseParseError=responseParseError)
Definition Request.cpp:277
+ +
void onSourceData(const char *chunk, std::size_t chunkLen) override
Definition Request.cpp:581
+
bool executeSendFragment(const char *chunk, std::size_t chunkLen)
Definition Request.cpp:525
+ +
const CiStringMap< std::string > & getQueries() const
Definition Request.cpp:608
+
const CiStringMap< std::string > & getCookies() const
Definition Request.cpp:616
+
Request & setTrailer(const std::string &field, const std::string &value, bool overwrite=true)
Definition Request.cpp:216
+
Request & cookie(const std::map< std::string, std::string > &cookies)
Definition Request.cpp:202
+
web::http::client::SocketContext * getSocketContext() const
Definition Request.cpp:620
+
static void responseParseError(const std::shared_ptr< Request > &request, const std::string &message)
Definition Request.cpp:235
+
void setMasterRequest(const std::shared_ptr< Request > &masterRequest)
Definition Request.cpp:90
+ + +
std::function< void(const std::shared_ptr< Request > &request, const std::string &message)> onResponseParseError
Definition Request.h:169
+
CiStringMap< std::string > queries
Definition Request.h:153
+
Request & set(const std::map< std::string, std::string > &headers, bool overwrite=true)
Definition Request.cpp:182
+
std::size_t contentLength
Definition Request.h:163
+
web::http::client::SocketContext * socketContext
Definition Request.h:173
+
Request(web::http::client::SocketContext *socketContext, const std::string &host)
Definition Request.cpp:52
-
Request & append(const std::string &field, const std::string &value)
Definition Request.cpp:119
- -
Request & sendFragment(const char *chunk, std::size_t chunkLen)
Definition Request.cpp:362
-
std::list< RequestCommand * > requestCommands
Definition Request.h:157
-
void deliverResponse(const std::shared_ptr< Request > &request, const std::shared_ptr< Response > &response)
Definition Request.cpp:536
-
bool send(const char *chunk, std::size_t chunkLen, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &onResponseReceived, const std::function< void(const std::shared_ptr< Request > &, const std::string &)> &onResponseParseError=responseParseError)
Definition Request.cpp:235
-
const CiStringMap< std::string > & getHeaders() const
Definition Request.cpp:604
- -
Request & host(const std::string &host)
Definition Request.cpp:113
-
bool send(const std::string &chunk, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &onResponseReceived, const std::function< void(const std::shared_ptr< Request > &, const std::string &)> &onResponseParseError=responseParseError)
Definition Request.cpp:262
-
std::weak_ptr< Request > masterRequest
Definition Request.h:169
-
Request & type(const std::string &type)
Definition Request.cpp:185
-
bool end(const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &onResponseReceived, const std::function< void(const std::shared_ptr< Request > &, const std::string &)> &onResponseParseError=responseParseError)
Definition Request.cpp:376
-
void deliverResponseParseError(const std::shared_ptr< Request > &request, const std::string &message)
Definition Request.cpp:540
-
bool executeSendFile(const std::string &file, const std::function< void(int)> &onStatus)
Definition Request.cpp:421
-
bool executeUpgrade(const std::string &url, const std::string &protocols)
Definition Request.cpp:463
-
void onSourceConnect(core::pipe::Source *source) override
Definition Request.cpp:563
+
std::string hostFieldValue
Definition Request.h:146
+
Request & append(const std::string &field, const std::string &value)
Definition Request.cpp:124
+ + +
Request & sendFragment(const char *chunk, std::size_t chunkLen)
Definition Request.cpp:367
+
std::list< RequestCommand * > requestCommands
Definition Request.h:159
+
void deliverResponse(const std::shared_ptr< Request > &request, const std::shared_ptr< Response > &response)
Definition Request.cpp:546
+
bool send(const char *chunk, std::size_t chunkLen, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &onResponseReceived, const std::function< void(const std::shared_ptr< Request > &, const std::string &)> &onResponseParseError=responseParseError)
Definition Request.cpp:240
+
const CiStringMap< std::string > & getHeaders() const
Definition Request.cpp:612
+ +
Request & host(const std::string &hostFieldValue)
Definition Request.cpp:118
+
bool send(const std::string &chunk, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &onResponseReceived, const std::function< void(const std::shared_ptr< Request > &, const std::string &)> &onResponseParseError=responseParseError)
Definition Request.cpp:267
+
std::weak_ptr< Request > masterRequest
Definition Request.h:171
+
Request & type(const std::string &type)
Definition Request.cpp:190
+
bool end(const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &onResponseReceived, const std::function< void(const std::shared_ptr< Request > &, const std::string &)> &onResponseParseError=responseParseError)
Definition Request.cpp:381
+ +
void deliverResponseParseError(const std::shared_ptr< Request > &request, const std::string &message)
Definition Request.cpp:550
+
bool executeSendFile(const std::string &file, const std::function< void(int)> &onStatus)
Definition Request.cpp:426
+
bool executeUpgrade(const std::string &url, const std::string &protocols)
Definition Request.cpp:468
+
void onSourceConnect(core::pipe::Source *source) override
Definition Request.cpp:571
const std::string & get(const std::string &key, int i=0) const
Definition Response.cpp:31
@@ -289,33 +291,34 @@ -
std::list< Request > deliveredRequests
-
void requestDelivered(Request &&request, bool success)
-
void deliverResponseParseError(int status, const std::string &reason)
- -
std::shared_ptr< Request > currentRequest
-
std::size_t onReceivedFromPeer() override
-
std::function< void(const std::shared_ptr< Request > &)> onRequestBegin
-
void deliverResponse(Response &&response)
-
void onWriteError(int errnum) override
-
bool onSignal(int signum) override
- - - - - - - -
void initiateRequest(Request &request)
- -
std::function< void(const std::shared_ptr< Request > &)> onRequestEnd
- -
void responseDelivered(bool httpClose)
-
std::list< Request > pendingRequests
-
std::shared_ptr< Request > masterRequest
-
SocketContext(core::socket::stream::SocketConnection *socketConnection, const std::function< void(const std::shared_ptr< Request > &)> &onRequestBegin, const std::function< void(const std::shared_ptr< Request > &)> &onRequestEnd)
-
void requestPrepared(Request &request)
- +
SocketContext(core::socket::stream::SocketConnection *socketConnection, const std::function< void(const std::shared_ptr< Request > &)> &onRequestBegin, const std::function< void(const std::shared_ptr< Request > &)> &onRequestEnd, bool pipelinedRequests)
+
void requestPrepared(Request &&request)
+
std::list< Request > deliveredRequests
+
void requestDelivered(Request &&request, bool success)
+
void deliverResponseParseError(int status, const std::string &reason)
+ +
std::shared_ptr< Request > currentRequest
+
std::size_t onReceivedFromPeer() override
+
std::function< void(const std::shared_ptr< Request > &)> onRequestBegin
+
void deliverResponse(Response &&response)
+
void onWriteError(int errnum) override
+
bool onSignal(int signum) override
+ + + + + + + + +
void initiateRequest(Request &request)
+ +
std::function< void(const std::shared_ptr< Request > &)> onRequestEnd
+ +
void responseDelivered(bool httpClose)
+
std::list< Request > pendingRequests
+
std::shared_ptr< Request > masterRequest
+ @@ -355,7 +358,7 @@ diff --git a/html/SocketContextUpgradeFactorySelector_8hpp.html b/html/SocketContextUpgradeFactorySelector_8hpp.html index 082e2717f5..914e71d853 100644 --- a/html/SocketContextUpgradeFactorySelector_8hpp.html +++ b/html/SocketContextUpgradeFactorySelector_8hpp.html @@ -122,7 +122,7 @@ diff --git a/html/SocketContextUpgradeFactorySelector_8hpp_source.html b/html/SocketContextUpgradeFactorySelector_8hpp_source.html index caeb830db1..b3036d788b 100644 --- a/html/SocketContextUpgradeFactorySelector_8hpp_source.html +++ b/html/SocketContextUpgradeFactorySelector_8hpp_source.html @@ -279,7 +279,7 @@ diff --git a/html/SocketContextUpgradeFactory_8hpp.html b/html/SocketContextUpgradeFactory_8hpp.html index 53cf17a5bb..23e82ab820 100644 --- a/html/SocketContextUpgradeFactory_8hpp.html +++ b/html/SocketContextUpgradeFactory_8hpp.html @@ -121,7 +121,7 @@ diff --git a/html/SocketContextUpgradeFactory_8hpp_source.html b/html/SocketContextUpgradeFactory_8hpp_source.html index d47fc0a3af..3695fd7692 100644 --- a/html/SocketContextUpgradeFactory_8hpp_source.html +++ b/html/SocketContextUpgradeFactory_8hpp_source.html @@ -178,7 +178,7 @@ diff --git a/html/SocketReader_8cpp.html b/html/SocketReader_8cpp.html index 456cd1608d..8f6b0981aa 100644 --- a/html/SocketReader_8cpp.html +++ b/html/SocketReader_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/SocketReader_8cpp_source.html b/html/SocketReader_8cpp_source.html index 92d4cc6008..73e5e9808a 100644 --- a/html/SocketReader_8cpp_source.html +++ b/html/SocketReader_8cpp_source.html @@ -210,10 +210,10 @@
111 }
112
113} // namespace core::socket::stream
- - - - + + + +
ReadEventReceiver(const std::string &name, const utils::Timeval &timeout)
@@ -246,7 +246,7 @@ diff --git a/html/SocketReader_8h.html b/html/SocketReader_8h.html index f59c07c348..f9471589d8 100644 --- a/html/SocketReader_8h.html +++ b/html/SocketReader_8h.html @@ -129,7 +129,7 @@ diff --git a/html/SocketReader_8h_source.html b/html/SocketReader_8h_source.html index 0171b0aec9..fd85824a97 100644 --- a/html/SocketReader_8h_source.html +++ b/html/SocketReader_8h_source.html @@ -180,7 +180,7 @@
81} // namespace core::socket::stream
82
83#endif // CORE_SOCKET_STREAM_SOCKETREADER_H
- +
virtual ssize_t read(char *chunk, std::size_t chunkLen)=0
@@ -216,7 +216,7 @@ diff --git a/html/SocketWriter_8cpp.html b/html/SocketWriter_8cpp.html index 75d0a719d2..522e1eba09 100644 --- a/html/SocketWriter_8cpp.html +++ b/html/SocketWriter_8cpp.html @@ -119,7 +119,7 @@ diff --git a/html/SocketWriter_8cpp_source.html b/html/SocketWriter_8cpp_source.html index 9ca9ff4577..59fab917bc 100644 --- a/html/SocketWriter_8cpp_source.html +++ b/html/SocketWriter_8cpp_source.html @@ -205,10 +205,10 @@
107 }
108 } else {
-
109 LOG(TRACE) << getName() << ": Send to peer while not enabled";
+
109 LOG(TRACE) << getName() << ": Send request while not enabled";
110 }
111 } else {
-
112 LOG(TRACE) << getName() << ": sendToPeer() while shutdown in progress";
+
112 LOG(TRACE) << getName() << ": Send request while shutdown in progress";
113 }
114 }
115
@@ -220,15 +220,15 @@
121 success = source != nullptr;
122
123 if (success) {
-
124 LOG(TRACE) << getName() << ": streamToPeer() started";
+
124 LOG(TRACE) << getName() << ": Stream started";
125 } else {
-
126 LOG(TRACE) << getName() << ": streamToPeer() source is nullptr";
+
126 LOG(TRACE) << getName() << ": Stream source is nullptr";
127 }
128 } else {
-
129 LOG(TRACE) << getName() << ": streamToPeer() while not enabled";
+
129 LOG(TRACE) << getName() << ": Stream request while not enabled";
130 }
131 } else {
-
132 LOG(TRACE) << getName() << ": streamToPeer() while shutdown in progress";
+
132 LOG(TRACE) << getName() << ": Stream request while shutdown in progress";
133 }
134
135 this->source = source;
@@ -237,7 +237,7 @@
138 }
139
-
141 LOG(TRACE) << getName() << ": streamEOF()";
+
141 LOG(TRACE) << getName() << ": Stream EOF";
142 this->source = nullptr;
143 }
144
@@ -257,12 +257,12 @@
158 }
159
160} // namespace core::socket::stream
- - -
void setTimeout(const utils::Timeval &timeout)
- - - + + +
void setTimeout(const utils::Timeval &timeout)
+ + +
const std::string & getName() const
@@ -304,7 +304,7 @@ diff --git a/html/SocketWriter_8h.html b/html/SocketWriter_8h.html index 7ac6a508c3..bbd8beaf2a 100644 --- a/html/SocketWriter_8h.html +++ b/html/SocketWriter_8h.html @@ -131,7 +131,7 @@ diff --git a/html/SocketWriter_8h_source.html b/html/SocketWriter_8h_source.html index 0a815ba175..7dc3a368f5 100644 --- a/html/SocketWriter_8h_source.html +++ b/html/SocketWriter_8h_source.html @@ -194,7 +194,7 @@
95} // namespace core::socket::stream
96
97#endif // CORE_SOCKET_STREAM_SOCKETWRITER_H
- + @@ -236,7 +236,7 @@ diff --git a/html/Socket_8cpp.html b/html/Socket_8cpp.html index 991c5cb66a..885a74b308 100644 --- a/html/Socket_8cpp.html +++ b/html/Socket_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/Socket_8cpp_source.html b/html/Socket_8cpp_source.html index e30594616d..81b7f31e20 100644 --- a/html/Socket_8cpp_source.html +++ b/html/Socket_8cpp_source.html @@ -244,7 +244,7 @@ diff --git a/html/Socket_8hpp.html b/html/Socket_8hpp.html index 2043acde5d..6b02bd2996 100644 --- a/html/Socket_8hpp.html +++ b/html/Socket_8hpp.html @@ -121,7 +121,7 @@ diff --git a/html/Socket_8hpp_source.html b/html/Socket_8hpp_source.html index 19dba93398..855a8258f6 100644 --- a/html/Socket_8hpp_source.html +++ b/html/Socket_8hpp_source.html @@ -161,9 +161,9 @@ - - - + + +
SocketConnector(const SocketConnector &socketConnector)
SocketConnector(const std::shared_ptr< core::socket::stream::SocketContextFactory > &socketContextFactory, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus, const std::shared_ptr< Config > &config)
@@ -184,7 +184,7 @@ diff --git a/html/Source_8cpp.html b/html/Source_8cpp.html index 53e564cc40..15867b9fa7 100644 --- a/html/Source_8cpp.html +++ b/html/Source_8cpp.html @@ -117,7 +117,7 @@ diff --git a/html/Source_8cpp_source.html b/html/Source_8cpp_source.html index 64891b37df..dacddc99b4 100644 --- a/html/Source_8cpp_source.html +++ b/html/Source_8cpp_source.html @@ -215,7 +215,7 @@ diff --git a/html/Source_8h.html b/html/Source_8h.html index a735e4db32..767726c0e3 100644 --- a/html/Source_8h.html +++ b/html/Source_8h.html @@ -121,7 +121,7 @@ diff --git a/html/Source_8h_source.html b/html/Source_8h_source.html index d42412356c..d443079785 100644 --- a/html/Source_8h_source.html +++ b/html/Source_8h_source.html @@ -230,7 +230,7 @@ diff --git a/html/State_8cpp.html b/html/State_8cpp.html index 88429bb631..c40a33a180 100644 --- a/html/State_8cpp.html +++ b/html/State_8cpp.html @@ -121,7 +121,7 @@ diff --git a/html/State_8cpp_source.html b/html/State_8cpp_source.html index ffacb3787f..412d2b2d59 100644 --- a/html/State_8cpp_source.html +++ b/html/State_8cpp_source.html @@ -142,7 +142,7 @@ diff --git a/html/State_8h.html b/html/State_8h.html index 79e74f3572..309aa66752 100644 --- a/html/State_8h.html +++ b/html/State_8h.html @@ -129,7 +129,7 @@ diff --git a/html/State_8h_source.html b/html/State_8h_source.html index 1a17edff67..8aab3de6e3 100644 --- a/html/State_8h_source.html +++ b/html/State_8h_source.html @@ -137,44 +137,43 @@
void enable(DescriptorEventReceiver *descriptorEventReceiver)
void suspend(DescriptorEventReceiver *descriptorEventReceiver)
void resume(DescriptorEventReceiver *descriptorEventReceiver)
- - + +
virtual void timeoutEvent()=0
- -
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
- - - - - - - -
void triggered(const utils::Timeval &currentTime)
+ +
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
+ + + + + + + +
void triggered(const utils::Timeval &currentTime)
virtual void dispatchEvent()=0
-
DescriptorEventPublisher & descriptorEventPublisher
- -
void setEnabled(const utils::Timeval &currentTime)
-
void onEvent(const utils::Timeval &currentTime) final
- -
void setTimeout(const utils::Timeval &timeout)
- - +
DescriptorEventPublisher & descriptorEventPublisher
+ +
void setEnabled(const utils::Timeval &currentTime)
+
void onEvent(const utils::Timeval &currentTime) final
+ +
void setTimeout(const utils::Timeval &timeout)
+ +
virtual void signalEvent(int signum)=0
- - -
void checkTimeout(const utils::Timeval &currentTime)
-
utils::Timeval getTimeout(const utils::Timeval &currentTime) const
- + + +
void checkTimeout(const utils::Timeval &currentTime)
+
utils::Timeval getTimeout(const utils::Timeval &currentTime) const
+
const std::string & getName() const
EventReceiver(const std::string &name)
- - - + + +
virtual void unobservedEvent()=0
-
Observer(const Observer &observer)
- +
bool operator>(const Timeval &timeVal) const
Definition Timeval.cpp:127
static Timeval currentTime()
Definition Timeval.cpp:54
@@ -191,17 +190,17 @@
State eventLoopState()
Definition State.cpp:30
- - - - + + + + diff --git a/html/StaticMiddleware_8cpp.html b/html/StaticMiddleware_8cpp.html index 681ffbc65b..3906d13bf5 100644 --- a/html/StaticMiddleware_8cpp.html +++ b/html/StaticMiddleware_8cpp.html @@ -122,7 +122,7 @@ diff --git a/html/StaticMiddleware_8cpp_source.html b/html/StaticMiddleware_8cpp_source.html index 3310dab5c3..2a87f53235 100644 --- a/html/StaticMiddleware_8cpp_source.html +++ b/html/StaticMiddleware_8cpp_source.html @@ -270,7 +270,7 @@ diff --git a/html/StaticMiddleware_8h.html b/html/StaticMiddleware_8h.html index 549dff20e5..4edd3c58f8 100644 --- a/html/StaticMiddleware_8h.html +++ b/html/StaticMiddleware_8h.html @@ -135,7 +135,7 @@ diff --git a/html/StaticMiddleware_8h_source.html b/html/StaticMiddleware_8h_source.html index 11a4d5dddf..5cf3d1b53d 100644 --- a/html/StaticMiddleware_8h_source.html +++ b/html/StaticMiddleware_8h_source.html @@ -210,7 +210,7 @@ diff --git a/html/StatusCodes_8cpp.html b/html/StatusCodes_8cpp.html index 6dd11dc14e..8cc0d395a5 100644 --- a/html/StatusCodes_8cpp.html +++ b/html/StatusCodes_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/StatusCodes_8cpp_source.html b/html/StatusCodes_8cpp_source.html index 7be6260fe1..46e2dd04cb 100644 --- a/html/StatusCodes_8cpp_source.html +++ b/html/StatusCodes_8cpp_source.html @@ -212,7 +212,7 @@ diff --git a/html/StatusCodes_8h.html b/html/StatusCodes_8h.html index 6063f44c63..fffd5d64b5 100644 --- a/html/StatusCodes_8h.html +++ b/html/StatusCodes_8h.html @@ -121,7 +121,7 @@ diff --git a/html/StatusCodes_8h_source.html b/html/StatusCodes_8h_source.html index b58da9edcf..05cafa092a 100644 --- a/html/StatusCodes_8h_source.html +++ b/html/StatusCodes_8h_source.html @@ -232,7 +232,7 @@ diff --git a/html/StringRaw_8cpp.html b/html/StringRaw_8cpp.html index 0b2a10e7db..12da8933e0 100644 --- a/html/StringRaw_8cpp.html +++ b/html/StringRaw_8cpp.html @@ -119,7 +119,7 @@ diff --git a/html/StringRaw_8cpp_source.html b/html/StringRaw_8cpp_source.html index ed7ef704ce..e0bf55e8e4 100644 --- a/html/StringRaw_8cpp_source.html +++ b/html/StringRaw_8cpp_source.html @@ -175,7 +175,7 @@ diff --git a/html/StringRaw_8h.html b/html/StringRaw_8h.html index 139af2bb67..e7d5c63053 100644 --- a/html/StringRaw_8h.html +++ b/html/StringRaw_8h.html @@ -129,7 +129,7 @@ diff --git a/html/StringRaw_8h_source.html b/html/StringRaw_8h_source.html index 65b7966c9c..c52fc156eb 100644 --- a/html/StringRaw_8h_source.html +++ b/html/StringRaw_8h_source.html @@ -355,7 +355,7 @@ diff --git a/html/String_8cpp.html b/html/String_8cpp.html index d52ebb1e4c..6c4212e736 100644 --- a/html/String_8cpp.html +++ b/html/String_8cpp.html @@ -119,7 +119,7 @@ diff --git a/html/String_8cpp_source.html b/html/String_8cpp_source.html index a6513a7163..6c7624a217 100644 --- a/html/String_8cpp_source.html +++ b/html/String_8cpp_source.html @@ -228,7 +228,7 @@ diff --git a/html/String_8h.html b/html/String_8h.html index ced1e69b42..45760885f6 100644 --- a/html/String_8h.html +++ b/html/String_8h.html @@ -130,7 +130,7 @@ diff --git a/html/String_8h_source.html b/html/String_8h_source.html index cf728692e2..3c36242b3e 100644 --- a/html/String_8h_source.html +++ b/html/String_8h_source.html @@ -330,7 +330,7 @@ diff --git a/html/SubProtocolContext_8cpp.html b/html/SubProtocolContext_8cpp.html index fb242644d9..c40589fa47 100644 --- a/html/SubProtocolContext_8cpp.html +++ b/html/SubProtocolContext_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/SubProtocolContext_8cpp_source.html b/html/SubProtocolContext_8cpp_source.html index d0c274282d..ac86ea1aad 100644 --- a/html/SubProtocolContext_8cpp_source.html +++ b/html/SubProtocolContext_8cpp_source.html @@ -144,7 +144,7 @@ diff --git a/html/SubProtocolContext_8h.html b/html/SubProtocolContext_8h.html index a15e1448b2..31780250f1 100644 --- a/html/SubProtocolContext_8h.html +++ b/html/SubProtocolContext_8h.html @@ -134,7 +134,7 @@ diff --git a/html/SubProtocolContext_8h_source.html b/html/SubProtocolContext_8h_source.html index ea5f7f7133..41ce0ae5ad 100644 --- a/html/SubProtocolContext_8h_source.html +++ b/html/SubProtocolContext_8h_source.html @@ -232,8 +232,8 @@
SubProtocolContext(const SubProtocolContext &)=delete
void unload(SubProtocolFactory *subProtocolFactory)
SubProtocolFactory * select(const std::string &subProtocolName, Role role)
-
virtual std::size_t deleteSubProtocol(SubProtocol *subProtocol)
-
SubProtocol * createSubProtocol(SubProtocolContext *subProtocolContext)
+
virtual std::size_t deleteSubProtocol(SubProtocol *subProtocol)
+
SubProtocol * createSubProtocol(SubProtocolContext *subProtocolContext)
void sendMessageEnd(const char *message, std::size_t messageLength)
void sendMessage(uint8_t opCode, const char *message, std::size_t messageLength)
@@ -259,7 +259,7 @@ diff --git a/html/SubProtocolFactorySelector_8h.html b/html/SubProtocolFactorySelector_8h.html index 654d584b44..178657d219 100644 --- a/html/SubProtocolFactorySelector_8h.html +++ b/html/SubProtocolFactorySelector_8h.html @@ -127,7 +127,7 @@ diff --git a/html/SubProtocolFactorySelector_8h_source.html b/html/SubProtocolFactorySelector_8h_source.html index 459184a969..f42c67b584 100644 --- a/html/SubProtocolFactorySelector_8h_source.html +++ b/html/SubProtocolFactorySelector_8h_source.html @@ -336,16 +336,20 @@
std::map< std::string, SubProtocolFactory *(*)()> linkedSubProtocolFactories
virtual SubProtocol * create(SubProtocolContext *subProtocolContext)=0
virtual ~SubProtocolFactory()=default
-
virtual std::size_t deleteSubProtocol(SubProtocol *subProtocol)
- +
virtual std::size_t deleteSubProtocol(SubProtocol *subProtocol)
+ - -
SubProtocol * createSubProtocol(SubProtocolContext *subProtocolContext)
- - - -
SubProtocolFactory(const std::string &name)
- + +
SubProtocolFactory(SubProtocolFactory &&)=delete
+
SubProtocolFactory & operator=(SubProtocolFactory &)=delete
+
SubProtocol * createSubProtocol(SubProtocolContext *subProtocolContext)
+ + + +
SubProtocolFactory(const std::string &name)
+
SubProtocolFactory(SubProtocolFactory &)=delete
+
SubProtocolFactory & operator=(SubProtocolFactory &&)=delete
+
void sendMessageEnd(const char *message, std::size_t messageLength)
@@ -395,7 +399,7 @@ diff --git a/html/SubProtocolFactory_8h.html b/html/SubProtocolFactory_8h.html index ee5f3ab816..82dc455ce6 100644 --- a/html/SubProtocolFactory_8h.html +++ b/html/SubProtocolFactory_8h.html @@ -121,7 +121,7 @@ diff --git a/html/SubProtocolFactory_8h_source.html b/html/SubProtocolFactory_8h_source.html index 001af36609..887f744d7e 100644 --- a/html/SubProtocolFactory_8h_source.html +++ b/html/SubProtocolFactory_8h_source.html @@ -138,61 +138,67 @@
39 public:
40 using SubProtocol = SubProtocolT;
41
-
42 SubProtocolFactory(const std::string& name)
-
43 : subProtocolName(name) {
-
44 }
-
45
- + +
43
+
44 SubProtocolFactory(const std::string& name)
+
45 : subProtocolName(name) {
+
46 }
47
-
48 virtual ~SubProtocolFactory() = default;
-
49
-
50 SubProtocol* createSubProtocol(SubProtocolContext* subProtocolContext) {
-
51 SubProtocol* subProtocol = create(subProtocolContext);
-
52
-
53 if (subProtocol != nullptr) {
-
54 refCount++;
-
55 }
-
56
-
57 return subProtocol;
-
58 }
-
59
-
60 private:
-
61 virtual SubProtocol* create(SubProtocolContext* subProtocolContext) = 0;
+
48 SubProtocolFactory(SubProtocolFactory&) = delete;
+
49 SubProtocolFactory(SubProtocolFactory&&) = delete;
+
50
+
51 SubProtocolFactory& operator=(SubProtocolFactory&) = delete;
+
52 SubProtocolFactory& operator=(SubProtocolFactory&&) = delete;
+
53
+
54 virtual ~SubProtocolFactory() = default;
+
55
+
56 SubProtocol* createSubProtocol(SubProtocolContext* subProtocolContext) {
+
57 SubProtocol* subProtocol = create(subProtocolContext);
+
58
+
59 if (subProtocol != nullptr) {
+
60 refCount++;
+
61 }
62
-
63 public:
-
64 virtual std::size_t deleteSubProtocol(SubProtocol* subProtocol) {
-
65 if (subProtocol != nullptr) {
-
66 delete subProtocol;
-
67
-
68 refCount--;
-
69 }
-
70
-
71 return refCount;
-
72 }
+
63 return subProtocol;
+
64 }
+
65
+
66 private:
+
67 virtual SubProtocol* create(SubProtocolContext* subProtocolContext) = 0;
+
68
+
69 public:
+
70 virtual std::size_t deleteSubProtocol(SubProtocol* subProtocol) {
+
71 if (subProtocol != nullptr) {
+
72 delete subProtocol;
73
-
74 const std::string& getName() {
-
75 return subProtocolName;
-
76 }
-
77
-
78 void setHandle(void* handle) {
-
79 this->handle = handle;
-
80 }
-
81
-
82 void* getHandle() {
-
83 return handle;
-
84 }
-
85
-
86 private:
-
87 std::size_t refCount = 0;
-
88
-
89 std::string subProtocolName;
-
90
-
91 void* handle = nullptr;
-
92 };
-
93
-
94} // namespace web::websocket
-
95
-
96#endif // WEB_WEBSOCKET_SUBPROTOCOLPLUGININTERFACE_H
+
74 refCount--;
+
75 }
+
76
+
77 return refCount;
+
78 }
+
79
+
80 const std::string& getName() {
+
81 return subProtocolName;
+
82 }
+
83
+
84 void setHandle(void* handle) {
+
85 this->handle = handle;
+
86 }
+
87
+
88 void* getHandle() {
+
89 return handle;
+
90 }
+
91
+
92 private:
+
93 std::size_t refCount = 0;
+
94
+
95 std::string subProtocolName;
+
96
+
97 void* handle = nullptr;
+
98 };
+
99
+
100} // namespace web::websocket
+
101
+
102#endif // WEB_WEBSOCKET_SUBPROTOCOLPLUGININTERFACE_H
@@ -261,16 +267,20 @@
SubProtocolFactory * select(const std::string &subProtocolName, Role role)
virtual SubProtocol * create(SubProtocolContext *subProtocolContext)=0
virtual ~SubProtocolFactory()=default
-
virtual std::size_t deleteSubProtocol(SubProtocol *subProtocol)
- +
virtual std::size_t deleteSubProtocol(SubProtocol *subProtocol)
+ - -
SubProtocol * createSubProtocol(SubProtocolContext *subProtocolContext)
- - - -
SubProtocolFactory(const std::string &name)
- + +
SubProtocolFactory(SubProtocolFactory &&)=delete
+
SubProtocolFactory & operator=(SubProtocolFactory &)=delete
+
SubProtocol * createSubProtocol(SubProtocolContext *subProtocolContext)
+ + + +
SubProtocolFactory(const std::string &name)
+
SubProtocolFactory(SubProtocolFactory &)=delete
+
SubProtocolFactory & operator=(SubProtocolFactory &&)=delete
+
void sendMessageEnd(const char *message, std::size_t messageLength)
@@ -313,7 +323,7 @@ diff --git a/html/SubscribtionTree_8cpp.html b/html/SubscribtionTree_8cpp.html index 41ff5c273a..8b1cb53c5c 100644 --- a/html/SubscribtionTree_8cpp.html +++ b/html/SubscribtionTree_8cpp.html @@ -122,7 +122,7 @@ diff --git a/html/SubscribtionTree_8cpp_source.html b/html/SubscribtionTree_8cpp_source.html index 07fdb5c134..a08205e681 100644 --- a/html/SubscribtionTree_8cpp_source.html +++ b/html/SubscribtionTree_8cpp_source.html @@ -200,7 +200,7 @@
101 if (leafFound) {
102 LOG(DEBUG) << "MQTT Broker: Found match:";
103 LOG(DEBUG) << "MQTT Broker: Topic: '" << message.getTopic() << "';";
-
104 LOG(DEBUG) << "MQTT Broker: Message:\n" << iot::mqtt::Mqtt::stringToHexString(message.getMessage());
+
104 LOG(DEBUG) << "MQTT Broker: Message:\n" << iot::mqtt::Mqtt::toHexString(message.getMessage());
105 LOG(DEBUG) << "MQTT Broker: Distribute Publish for match ...";
106
107 for (auto& [clientId, clientQoS] : clientIds) {
@@ -213,7 +213,7 @@
114 if (nextHashLevel != topicLevels.end()) {
115 LOG(DEBUG) << "MQTT Broker: Found parent match:";
116 LOG(DEBUG) << "MQTT Broker: Topic: '" << message.getTopic() << "'";
-
117 LOG(DEBUG) << "MQTT Broker: Message:\n" << iot::mqtt::Mqtt::stringToHexString(message.getMessage());
+
117 LOG(DEBUG) << "MQTT Broker: Message:\n" << iot::mqtt::Mqtt::toHexString(message.getMessage());
118 LOG(DEBUG) << "MQTT Broker: Distribute Publish for match ...";
119
120 for (auto& [clientId, clientQoS] : nextHashLevel->second.clientIds) {
@@ -242,7 +242,7 @@
143 if (foundNode != topicLevels.end()) {
144 LOG(DEBUG) << "MQTT: Found match:";
145 LOG(DEBUG) << "MQTT Broker: Topic: '" << message.getTopic() << "';";
-
146 LOG(DEBUG) << "MQTT Broker: Message:\n" << iot::mqtt::Mqtt::stringToHexString(message.getMessage());
+
146 LOG(DEBUG) << "MQTT Broker: Message:\n" << iot::mqtt::Mqtt::toHexString(message.getMessage());
147 LOG(DEBUG) << "MQTT Broker: Distribute Publish for match ...";
148
149 for (auto& [clientId, clientQoS] : foundNode->second.clientIds) {
@@ -335,7 +335,7 @@
236
237} // namespace iot::mqtt::server::broker
-
static std::string stringToHexString(const std::string &data)
Definition Mqtt.cpp:367
+
static std::string toHexString(const std::string &data)
Definition Mqtt.cpp:352
void appear(const std::string &clientId, const std::string &topic, uint8_t qoS)
Definition Broker.cpp:127
void sendPublish(const std::string &clientId, Message &message, uint8_t qoS, bool retain)
Definition Broker.cpp:206
@@ -371,7 +371,7 @@ diff --git a/html/SubscribtionTree_8h.html b/html/SubscribtionTree_8h.html index 85f70cadfb..b1da1a5663 100644 --- a/html/SubscribtionTree_8h.html +++ b/html/SubscribtionTree_8h.html @@ -127,7 +127,7 @@ diff --git a/html/SubscribtionTree_8h_source.html b/html/SubscribtionTree_8h_source.html index a79b79107c..8f6b7bacac 100644 --- a/html/SubscribtionTree_8h_source.html +++ b/html/SubscribtionTree_8h_source.html @@ -407,7 +407,7 @@ diff --git a/html/TLSHandshake_8cpp.html b/html/TLSHandshake_8cpp.html index 5d8530d03d..38319fdea6 100644 --- a/html/TLSHandshake_8cpp.html +++ b/html/TLSHandshake_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/TLSHandshake_8cpp_source.html b/html/TLSHandshake_8cpp_source.html index 151819f0eb..b5fdfec65c 100644 --- a/html/TLSHandshake_8cpp_source.html +++ b/html/TLSHandshake_8cpp_source.html @@ -143,8 +143,8 @@
44 const std::function<void(void)>& onTimeout,
45 const std::function<void(int)>& onStatus,
46 const utils::Timeval& timeout)
-
47 : ReadEventReceiver(instanceName + " SSL/TLS handshake:", timeout)
-
48 , WriteEventReceiver(instanceName + " SSL/TLS handshake:", timeout)
+
47 : ReadEventReceiver(instanceName + " SSL/TLS: Handshake", timeout)
+
48 , WriteEventReceiver(instanceName + " SSL/TLS: Handshake", timeout)
49 , ssl(ssl)
50 , onSuccess(onSuccess)
51 , onTimeout(onTimeout)
@@ -269,10 +269,10 @@
170 }
171
172} // namespace core::socket::stream::tls
- - - - + + + +
ReadEventReceiver(const std::string &name, const utils::Timeval &timeout)
@@ -303,7 +303,7 @@ diff --git a/html/TLSHandshake_8h.html b/html/TLSHandshake_8h.html index c94edbe21e..e600899c3e 100644 --- a/html/TLSHandshake_8h.html +++ b/html/TLSHandshake_8h.html @@ -132,7 +132,7 @@ diff --git a/html/TLSHandshake_8h_source.html b/html/TLSHandshake_8h_source.html index b264f64191..188b6ef41d 100644 --- a/html/TLSHandshake_8h_source.html +++ b/html/TLSHandshake_8h_source.html @@ -183,10 +183,10 @@
84} // namespace core::socket::stream::tls
85
86#endif // CORE_SOCKET_STREAM_TLS_TLSHANDSHAKE_H
- - - - + + + +
ReadEventReceiver(const std::string &name, const utils::Timeval &timeout)
@@ -218,7 +218,7 @@ diff --git a/html/TLSShutdown_8cpp.html b/html/TLSShutdown_8cpp.html index 26cba9dc49..356d020035 100644 --- a/html/TLSShutdown_8cpp.html +++ b/html/TLSShutdown_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/TLSShutdown_8cpp_source.html b/html/TLSShutdown_8cpp_source.html index 49a4212fc9..b183a63803 100644 --- a/html/TLSShutdown_8cpp_source.html +++ b/html/TLSShutdown_8cpp_source.html @@ -143,8 +143,8 @@
44 const std::function<void(void)>& onTimeout,
45 const std::function<void(int)>& onStatus,
46 const utils::Timeval& timeout)
-
47 : ReadEventReceiver(instanceName + " SSL/TLS shutdown:", timeout)
-
48 , WriteEventReceiver(instanceName + " SSL/TLS shutdown:", timeout)
+
47 : ReadEventReceiver(instanceName + " SSL/TLS: Shutdown", timeout)
+
48 , WriteEventReceiver(instanceName + " SSL/TLS: Shutdown", timeout)
49 , ssl(ssl)
50 , onSuccess(onSuccess)
51 , onTimeout(onTimeout)
@@ -269,10 +269,10 @@
170 }
171
172} // namespace core::socket::stream::tls
- - - - + + + +
ReadEventReceiver(const std::string &name, const utils::Timeval &timeout)
@@ -303,7 +303,7 @@ diff --git a/html/TLSShutdown_8h.html b/html/TLSShutdown_8h.html index 4a8652fd10..2dc021b511 100644 --- a/html/TLSShutdown_8h.html +++ b/html/TLSShutdown_8h.html @@ -132,7 +132,7 @@ diff --git a/html/TLSShutdown_8h_source.html b/html/TLSShutdown_8h_source.html index 0b20b92997..88e53516f8 100644 --- a/html/TLSShutdown_8h_source.html +++ b/html/TLSShutdown_8h_source.html @@ -183,10 +183,10 @@
84} // namespace core::socket::stream::tls
85
86#endif // CORE_SOCKET_STREAM_TLS_TLSSHUTDOWN_H
- - - - + + + +
ReadEventReceiver(const std::string &name, const utils::Timeval &timeout)
@@ -218,7 +218,7 @@ diff --git a/html/TickStatus_8h.html b/html/TickStatus_8h.html index 9f9a14c1c7..82577864cc 100644 --- a/html/TickStatus_8h.html +++ b/html/TickStatus_8h.html @@ -123,7 +123,7 @@ diff --git a/html/TickStatus_8h_source.html b/html/TickStatus_8h_source.html index ade537286c..bab620ea40 100644 --- a/html/TickStatus_8h_source.html +++ b/html/TickStatus_8h_source.html @@ -135,7 +135,7 @@
std::map< int, std::list< DescriptorEventReceiver * > > observedEventReceivers
- + @@ -230,7 +230,7 @@ diff --git a/html/TimerEventPublisher_8cpp.html b/html/TimerEventPublisher_8cpp.html index 35268ea472..023b2ed8fe 100644 --- a/html/TimerEventPublisher_8cpp.html +++ b/html/TimerEventPublisher_8cpp.html @@ -115,7 +115,7 @@ diff --git a/html/TimerEventPublisher_8cpp_source.html b/html/TimerEventPublisher_8cpp_source.html index d41606fe86..5c5ca18c60 100644 --- a/html/TimerEventPublisher_8cpp_source.html +++ b/html/TimerEventPublisher_8cpp_source.html @@ -220,7 +220,7 @@ diff --git a/html/TimerEventPublisher_8h.html b/html/TimerEventPublisher_8h.html index 00c0d77ccd..f482cd3316 100644 --- a/html/TimerEventPublisher_8h.html +++ b/html/TimerEventPublisher_8h.html @@ -121,7 +121,7 @@ diff --git a/html/TimerEventPublisher_8h_source.html b/html/TimerEventPublisher_8h_source.html index 432933fcd6..97ba4b9084 100644 --- a/html/TimerEventPublisher_8h_source.html +++ b/html/TimerEventPublisher_8h_source.html @@ -173,7 +173,7 @@ - +
static void execDlCloseDeleyed()
@@ -241,15 +241,15 @@ - - + + diff --git a/html/TimerEventReceiver_8cpp.html b/html/TimerEventReceiver_8cpp.html index 75b1fcccf0..4e522b1100 100644 --- a/html/TimerEventReceiver_8cpp.html +++ b/html/TimerEventReceiver_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/TimerEventReceiver_8cpp_source.html b/html/TimerEventReceiver_8cpp_source.html index 2dfb3cad75..a07fe2701a 100644 --- a/html/TimerEventReceiver_8cpp_source.html +++ b/html/TimerEventReceiver_8cpp_source.html @@ -235,7 +235,7 @@ diff --git a/html/TimerEventReceiver_8h.html b/html/TimerEventReceiver_8h.html index 5eb9b829e3..8c21d6c688 100644 --- a/html/TimerEventReceiver_8h.html +++ b/html/TimerEventReceiver_8h.html @@ -125,7 +125,7 @@ diff --git a/html/TimerEventReceiver_8h_source.html b/html/TimerEventReceiver_8h_source.html index 912fe505b1..432abf202b 100644 --- a/html/TimerEventReceiver_8h_source.html +++ b/html/TimerEventReceiver_8h_source.html @@ -217,7 +217,7 @@ diff --git a/html/Timer_8cpp.html b/html/Timer_8cpp.html index bf7cd24f24..6ceeed7e3b 100644 --- a/html/Timer_8cpp.html +++ b/html/Timer_8cpp.html @@ -115,7 +115,7 @@ diff --git a/html/Timer_8cpp_source.html b/html/Timer_8cpp_source.html index 13e59ff563..a57b43b22d 100644 --- a/html/Timer_8cpp_source.html +++ b/html/Timer_8cpp_source.html @@ -196,7 +196,7 @@ diff --git a/html/Timer_8h.html b/html/Timer_8h.html index eae48ecc56..b1ae1afbbf 100644 --- a/html/Timer_8h.html +++ b/html/Timer_8h.html @@ -119,7 +119,7 @@ diff --git a/html/Timer_8h_source.html b/html/Timer_8h_source.html index 96f28555eb..aebc6819dc 100644 --- a/html/Timer_8h_source.html +++ b/html/Timer_8h_source.html @@ -177,7 +177,7 @@ diff --git a/html/Timeval_8cpp.html b/html/Timeval_8cpp.html index 749b3cf3a3..f0e099e59f 100644 --- a/html/Timeval_8cpp.html +++ b/html/Timeval_8cpp.html @@ -116,7 +116,7 @@ diff --git a/html/Timeval_8cpp_source.html b/html/Timeval_8cpp_source.html index 2eea1f2ccf..f3818336c9 100644 --- a/html/Timeval_8cpp_source.html +++ b/html/Timeval_8cpp_source.html @@ -345,7 +345,7 @@ diff --git a/html/Timeval_8h.html b/html/Timeval_8h.html index 2ce018b561..d1dbc96b69 100644 --- a/html/Timeval_8h.html +++ b/html/Timeval_8h.html @@ -114,7 +114,7 @@ diff --git a/html/Timeval_8h_source.html b/html/Timeval_8h_source.html index c58cff794d..467a7c2a43 100644 --- a/html/Timeval_8h_source.html +++ b/html/Timeval_8h_source.html @@ -222,7 +222,7 @@ diff --git a/html/TransferEncoding_8h.html b/html/TransferEncoding_8h.html index 440a0ece8a..a40cedd023 100644 --- a/html/TransferEncoding_8h.html +++ b/html/TransferEncoding_8h.html @@ -130,7 +130,7 @@ diff --git a/html/TransferEncoding_8h_source.html b/html/TransferEncoding_8h_source.html index 13d62b9446..fddf134654 100644 --- a/html/TransferEncoding_8h_source.html +++ b/html/TransferEncoding_8h_source.html @@ -232,7 +232,6 @@ -
void deliverRequest(web::http::server::Request &&request)
std::shared_ptr< Response > masterResponse
std::list< Request > pendingRequests
@@ -243,6 +242,7 @@
SocketContext(core::socket::stream::SocketConnection *socketConnection, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &onRequestReady)
std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> onRequestReady
+
void deliverRequest(web::http::server::Request &request)
@@ -264,7 +264,7 @@ diff --git a/html/Transmitter_8cpp.html b/html/Transmitter_8cpp.html index 93ce2cdc64..422ee8826f 100644 --- a/html/Transmitter_8cpp.html +++ b/html/Transmitter_8cpp.html @@ -149,7 +149,7 @@

    - +
diff --git a/html/Transmitter_8cpp_source.html b/html/Transmitter_8cpp_source.html index 702aa969d5..0717cf74ba 100644 --- a/html/Transmitter_8cpp_source.html +++ b/html/Transmitter_8cpp_source.html @@ -244,7 +244,7 @@ diff --git a/html/Transmitter_8h.html b/html/Transmitter_8h.html index 988b18d9fb..c72a134579 100644 --- a/html/Transmitter_8h.html +++ b/html/Transmitter_8h.html @@ -121,7 +121,7 @@ diff --git a/html/Transmitter_8h_source.html b/html/Transmitter_8h_source.html index 7a5c320d95..4a94da9782 100644 --- a/html/Transmitter_8h_source.html +++ b/html/Transmitter_8h_source.html @@ -233,8 +233,8 @@
SubProtocolContext(const SubProtocolContext &)=delete
void unload(SubProtocolFactory *subProtocolFactory)
SubProtocolFactory * select(const std::string &subProtocolName, Role role)
-
virtual std::size_t deleteSubProtocol(SubProtocol *subProtocol)
-
SubProtocol * createSubProtocol(SubProtocolContext *subProtocolContext)
+
virtual std::size_t deleteSubProtocol(SubProtocol *subProtocol)
+
SubProtocol * createSubProtocol(SubProtocolContext *subProtocolContext)
void sendMessageEnd(const char *message, std::size_t messageLength)
Transmitter & operator=(const Transmitter &)=delete
@@ -275,7 +275,7 @@ diff --git a/html/TypeBase_8cpp.html b/html/TypeBase_8cpp.html index db7ff2f7bb..453414aa62 100644 --- a/html/TypeBase_8cpp.html +++ b/html/TypeBase_8cpp.html @@ -119,7 +119,7 @@ diff --git a/html/TypeBase_8cpp_source.html b/html/TypeBase_8cpp_source.html index 60686cb1b1..b2095a40a3 100644 --- a/html/TypeBase_8cpp_source.html +++ b/html/TypeBase_8cpp_source.html @@ -173,7 +173,7 @@ diff --git a/html/TypeBase_8hpp.html b/html/TypeBase_8hpp.html index 084d4e9660..aae6424da8 100644 --- a/html/TypeBase_8hpp.html +++ b/html/TypeBase_8hpp.html @@ -124,7 +124,7 @@ diff --git a/html/TypeBase_8hpp_source.html b/html/TypeBase_8hpp_source.html index e59fdd00fb..a8ebdd1849 100644 --- a/html/TypeBase_8hpp_source.html +++ b/html/TypeBase_8hpp_source.html @@ -213,7 +213,7 @@ diff --git a/html/UInt16_8cpp.html b/html/UInt16_8cpp.html index d2a0f074ce..281674d2b3 100644 --- a/html/UInt16_8cpp.html +++ b/html/UInt16_8cpp.html @@ -119,7 +119,7 @@ diff --git a/html/UInt16_8cpp_source.html b/html/UInt16_8cpp_source.html index 7a5e96758e..f7477360fe 100644 --- a/html/UInt16_8cpp_source.html +++ b/html/UInt16_8cpp_source.html @@ -157,7 +157,7 @@ diff --git a/html/UInt16_8h.html b/html/UInt16_8h.html index 0babee5ca6..6b78d7bf85 100644 --- a/html/UInt16_8h.html +++ b/html/UInt16_8h.html @@ -129,7 +129,7 @@ diff --git a/html/UInt16_8h_source.html b/html/UInt16_8h_source.html index 4dbb139cda..61a71f1f15 100644 --- a/html/UInt16_8h_source.html +++ b/html/UInt16_8h_source.html @@ -337,7 +337,7 @@ diff --git a/html/UInt32_8cpp.html b/html/UInt32_8cpp.html index 42a35fcf06..a699a4dfdc 100644 --- a/html/UInt32_8cpp.html +++ b/html/UInt32_8cpp.html @@ -119,7 +119,7 @@ diff --git a/html/UInt32_8cpp_source.html b/html/UInt32_8cpp_source.html index c0a6ad9004..6dcd5f5926 100644 --- a/html/UInt32_8cpp_source.html +++ b/html/UInt32_8cpp_source.html @@ -157,7 +157,7 @@ diff --git a/html/UInt32_8h.html b/html/UInt32_8h.html index 035f10c149..38674e9e03 100644 --- a/html/UInt32_8h.html +++ b/html/UInt32_8h.html @@ -129,7 +129,7 @@ diff --git a/html/UInt32_8h_source.html b/html/UInt32_8h_source.html index 2e736a3c50..6be6af4b07 100644 --- a/html/UInt32_8h_source.html +++ b/html/UInt32_8h_source.html @@ -168,7 +168,7 @@ diff --git a/html/UInt64_8cpp.html b/html/UInt64_8cpp.html index b86430c0e7..0fa99d80a7 100644 --- a/html/UInt64_8cpp.html +++ b/html/UInt64_8cpp.html @@ -119,7 +119,7 @@ diff --git a/html/UInt64_8cpp_source.html b/html/UInt64_8cpp_source.html index 4bd3e86adb..506859a076 100644 --- a/html/UInt64_8cpp_source.html +++ b/html/UInt64_8cpp_source.html @@ -157,7 +157,7 @@ diff --git a/html/UInt64_8h.html b/html/UInt64_8h.html index e2fd639846..7d96afa155 100644 --- a/html/UInt64_8h.html +++ b/html/UInt64_8h.html @@ -129,7 +129,7 @@ diff --git a/html/UInt64_8h_source.html b/html/UInt64_8h_source.html index c6cb47ad9b..6579ccd00f 100644 --- a/html/UInt64_8h_source.html +++ b/html/UInt64_8h_source.html @@ -168,7 +168,7 @@ diff --git a/html/UInt8List_8cpp.html b/html/UInt8List_8cpp.html index 6419228625..26b5ff78dc 100644 --- a/html/UInt8List_8cpp.html +++ b/html/UInt8List_8cpp.html @@ -119,7 +119,7 @@ diff --git a/html/UInt8List_8cpp_source.html b/html/UInt8List_8cpp_source.html index d3e11a4cff..ca9ab4d488 100644 --- a/html/UInt8List_8cpp_source.html +++ b/html/UInt8List_8cpp_source.html @@ -166,7 +166,7 @@ diff --git a/html/UInt8List_8h.html b/html/UInt8List_8h.html index 8ec14fac3f..8e18d3c7b7 100644 --- a/html/UInt8List_8h.html +++ b/html/UInt8List_8h.html @@ -129,7 +129,7 @@ diff --git a/html/UInt8List_8h_source.html b/html/UInt8List_8h_source.html index 91a0b1bcfa..ebc567c12c 100644 --- a/html/UInt8List_8h_source.html +++ b/html/UInt8List_8h_source.html @@ -172,7 +172,7 @@ diff --git a/html/UInt8_8cpp.html b/html/UInt8_8cpp.html index e189bf2335..c54c82ad16 100644 --- a/html/UInt8_8cpp.html +++ b/html/UInt8_8cpp.html @@ -119,7 +119,7 @@ diff --git a/html/UInt8_8cpp_source.html b/html/UInt8_8cpp_source.html index 7dd9310b6d..0e03ba7c88 100644 --- a/html/UInt8_8cpp_source.html +++ b/html/UInt8_8cpp_source.html @@ -156,7 +156,7 @@ diff --git a/html/UInt8_8h.html b/html/UInt8_8h.html index c056c45e3a..d3944c3a20 100644 --- a/html/UInt8_8h.html +++ b/html/UInt8_8h.html @@ -129,7 +129,7 @@ diff --git a/html/UInt8_8h_source.html b/html/UInt8_8h_source.html index 9c94288284..cdf51ae9a3 100644 --- a/html/UInt8_8h_source.html +++ b/html/UInt8_8h_source.html @@ -213,7 +213,7 @@ diff --git a/html/UIntV_8cpp.html b/html/UIntV_8cpp.html index c72d3a26d5..d44f04ad4d 100644 --- a/html/UIntV_8cpp.html +++ b/html/UIntV_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/UIntV_8cpp_source.html b/html/UIntV_8cpp_source.html index 94bdc594a2..0a62bba136 100644 --- a/html/UIntV_8cpp_source.html +++ b/html/UIntV_8cpp_source.html @@ -218,7 +218,7 @@ diff --git a/html/UIntV_8h.html b/html/UIntV_8h.html index 606855ab0a..da049c4ecf 100644 --- a/html/UIntV_8h.html +++ b/html/UIntV_8h.html @@ -129,7 +129,7 @@ diff --git a/html/UIntV_8h_source.html b/html/UIntV_8h_source.html index 41a1026fe0..01e9e6d9e7 100644 --- a/html/UIntV_8h_source.html +++ b/html/UIntV_8h_source.html @@ -205,13 +205,14 @@
MqttContext * mqttContext
Definition Mqtt.h:135
+
static std::string toHexString(const std::string &data)
Definition Mqtt.cpp:352
virtual void onConnected()
Definition Mqtt.cpp:64
+
static std::string toHexString(const std::vector< char > &data)
Definition Mqtt.cpp:347
virtual void onPubcomp(const iot::mqtt::packets::Pubcomp &pubcomp)
Definition Mqtt.cpp:227
virtual void onPublish(const iot::mqtt::packets::Publish &publish)
Definition Mqtt.cpp:215
core::timer::Timer keepAliveTimer
Definition Mqtt.h:128
Mqtt(const std::string &clientId)
Definition Mqtt.cpp:47
iot::mqtt::FixedHeader fixedHeader
Definition Mqtt.h:123
-
static std::string stringToHexString(const std::string &data)
Definition Mqtt.cpp:367
std::size_t onReceivedFromPeer()
Definition Mqtt.cpp:68
virtual void onDisconnected()
Definition Mqtt.cpp:135
void send(const std::vector< char > &data) const
Definition Mqtt.cpp:180
@@ -221,7 +222,7 @@
void _onPubrec(const iot::mqtt::packets::Pubrec &pubrec)
Definition Mqtt.cpp:281
virtual void deliverPacket(iot::mqtt::ControlPacketDeserializer *controlPacketDeserializer)=0
void sendPubrel(uint16_t packetIdentifier) const
Definition Mqtt.cpp:207
-
uint16_t getPacketIdentifier()
Definition Mqtt.cpp:371
+
uint16_t getPacketIdentifier()
Definition Mqtt.cpp:356
bool _onPublish(const iot::mqtt::packets::Publish &publish)
Definition Mqtt.cpp:230
virtual iot::mqtt::ControlPacketDeserializer * createControlPacketDeserializer(iot::mqtt::FixedHeader &staticHeader)=0
Mqtt & operator=(Mqtt &&)=delete
@@ -232,7 +233,6 @@
Session * session
Definition Mqtt.h:132
void _onPubrel(const iot::mqtt::packets::Pubrel &pubrel)
Definition Mqtt.cpp:297
-
static std::string dataToHexString(const std::vector< char > &data)
Definition Mqtt.cpp:344
virtual void onPubrec(const iot::mqtt::packets::Pubrec &pubrec)
Definition Mqtt.cpp:221
virtual void onPubrel(const iot::mqtt::packets::Pubrel &pubrel)
Definition Mqtt.cpp:224
void send(const iot::mqtt::ControlPacket &controlPacket) const
Definition Mqtt.cpp:174
@@ -247,7 +247,7 @@
iot::mqtt::ControlPacketDeserializer * controlPacketDeserializer
Definition Mqtt.h:124
void sendPubcomp(uint16_t packetIdentifier) const
Definition Mqtt.cpp:211
void sendPubrec(uint16_t packetIdentifier) const
Definition Mqtt.cpp:203
-
static void printFixedHeader(const iot::mqtt::FixedHeader &fixedHeader)
Definition Mqtt.cpp:332
+
static void printFixedHeader(const iot::mqtt::FixedHeader &fixedHeader)
Definition Mqtt.cpp:335
void _onPubcomp(const iot::mqtt::packets::Pubcomp &pubcomp)
Definition Mqtt.cpp:312
void _onPuback(const iot::mqtt::packets::Puback &puback)
Definition Mqtt.cpp:270
@@ -351,7 +351,7 @@ diff --git a/html/UpgradeCommand_8cpp.html b/html/UpgradeCommand_8cpp.html index c454129cf2..d508fefd1d 100644 --- a/html/UpgradeCommand_8cpp.html +++ b/html/UpgradeCommand_8cpp.html @@ -121,7 +121,7 @@ diff --git a/html/UpgradeCommand_8cpp_source.html b/html/UpgradeCommand_8cpp_source.html index b899c0a56a..3cfa85b6df 100644 --- a/html/UpgradeCommand_8cpp_source.html +++ b/html/UpgradeCommand_8cpp_source.html @@ -137,7 +137,7 @@
38
39} // namespace web::http::client::commands
-
bool executeUpgrade(const std::string &url, const std::string &protocols)
Definition Request.cpp:463
+
bool executeUpgrade(const std::string &url, const std::string &protocols)
Definition Request.cpp:468
@@ -150,7 +150,7 @@ diff --git a/html/UpgradeCommand_8h.html b/html/UpgradeCommand_8h.html index 7e4256ab01..0ed2c5b3b3 100644 --- a/html/UpgradeCommand_8h.html +++ b/html/UpgradeCommand_8h.html @@ -131,7 +131,7 @@ diff --git a/html/UpgradeCommand_8h_source.html b/html/UpgradeCommand_8h_source.html index 388cb133d2..d259027bdd 100644 --- a/html/UpgradeCommand_8h_source.html +++ b/html/UpgradeCommand_8h_source.html @@ -147,7 +147,7 @@
48#endif // WEB_HTTP_CLIENT_COMMANDS_UPGRADE1COMMAND_H
-
bool executeUpgrade(const std::string &url, const std::string &protocols)
Definition Request.cpp:463
+
bool executeUpgrade(const std::string &url, const std::string &protocols)
Definition Request.cpp:468
@@ -161,7 +161,7 @@ diff --git a/html/Uuid_8cpp.html b/html/Uuid_8cpp.html index e21f5cf768..6403649f4d 100644 --- a/html/Uuid_8cpp.html +++ b/html/Uuid_8cpp.html @@ -114,7 +114,7 @@ diff --git a/html/Uuid_8cpp_source.html b/html/Uuid_8cpp_source.html index 69083f4798..b993fb8d1e 100644 --- a/html/Uuid_8cpp_source.html +++ b/html/Uuid_8cpp_source.html @@ -156,7 +156,7 @@ diff --git a/html/Uuid_8h.html b/html/Uuid_8h.html index 3744f91cc6..5000fc97e9 100644 --- a/html/Uuid_8h.html +++ b/html/Uuid_8h.html @@ -119,7 +119,7 @@ diff --git a/html/Uuid_8h_source.html b/html/Uuid_8h_source.html index 92b011528e..6691384557 100644 --- a/html/Uuid_8h_source.html +++ b/html/Uuid_8h_source.html @@ -178,7 +178,7 @@ diff --git a/html/VHost_8cpp.html b/html/VHost_8cpp.html index cb43aaa405..5e1b4f043e 100644 --- a/html/VHost_8cpp.html +++ b/html/VHost_8cpp.html @@ -122,7 +122,7 @@ diff --git a/html/VHost_8cpp_source.html b/html/VHost_8cpp_source.html index e88cb7b882..71325b6fe9 100644 --- a/html/VHost_8cpp_source.html +++ b/html/VHost_8cpp_source.html @@ -169,7 +169,7 @@ diff --git a/html/VHost_8h.html b/html/VHost_8h.html index fd318c7f56..91e2d078bc 100644 --- a/html/VHost_8h.html +++ b/html/VHost_8h.html @@ -133,7 +133,7 @@ diff --git a/html/VHost_8h_source.html b/html/VHost_8h_source.html index 2444b6fc4c..f28dbae8f6 100644 --- a/html/VHost_8h_source.html +++ b/html/VHost_8h_source.html @@ -161,7 +161,7 @@ diff --git a/html/VerboseRequest_8cpp.html b/html/VerboseRequest_8cpp.html index 22eabc2ace..d3d71bb804 100644 --- a/html/VerboseRequest_8cpp.html +++ b/html/VerboseRequest_8cpp.html @@ -124,7 +124,7 @@ diff --git a/html/VerboseRequest_8cpp_source.html b/html/VerboseRequest_8cpp_source.html index 0d7fb56651..e3bc93dbf6 100644 --- a/html/VerboseRequest_8cpp_source.html +++ b/html/VerboseRequest_8cpp_source.html @@ -190,7 +190,7 @@ diff --git a/html/VerboseRequest_8h.html b/html/VerboseRequest_8h.html index 6623717d56..4d5664207f 100644 --- a/html/VerboseRequest_8h.html +++ b/html/VerboseRequest_8h.html @@ -133,7 +133,7 @@ diff --git a/html/VerboseRequest_8h_source.html b/html/VerboseRequest_8h_source.html index 8b22727909..4f9d1c7095 100644 --- a/html/VerboseRequest_8h_source.html +++ b/html/VerboseRequest_8h_source.html @@ -190,7 +190,7 @@ diff --git a/html/WebAppT_8h.html b/html/WebAppT_8h.html index dd48141a71..74926f67ee 100644 --- a/html/WebAppT_8h.html +++ b/html/WebAppT_8h.html @@ -125,7 +125,7 @@ diff --git a/html/WebAppT_8h_source.html b/html/WebAppT_8h_source.html index f06b105467..f47a551951 100644 --- a/html/WebAppT_8h_source.html +++ b/html/WebAppT_8h_source.html @@ -188,7 +188,7 @@ diff --git a/html/WebApp_8cpp.html b/html/WebApp_8cpp.html index 2afc28b443..98191cb166 100644 --- a/html/WebApp_8cpp.html +++ b/html/WebApp_8cpp.html @@ -115,7 +115,7 @@ diff --git a/html/WebApp_8cpp_source.html b/html/WebApp_8cpp_source.html index 8f4cc886e9..7a0a6edbca 100644 --- a/html/WebApp_8cpp_source.html +++ b/html/WebApp_8cpp_source.html @@ -184,7 +184,7 @@ diff --git a/html/WebApp_8h.html b/html/WebApp_8h.html index 7e52b9cc1e..a4de08130b 100644 --- a/html/WebApp_8h.html +++ b/html/WebApp_8h.html @@ -127,7 +127,7 @@ diff --git a/html/WebApp_8h_source.html b/html/WebApp_8h_source.html index c36693dd8e..60786a8c61 100644 --- a/html/WebApp_8h_source.html +++ b/html/WebApp_8h_source.html @@ -180,7 +180,7 @@ diff --git a/html/WriteEventReceiver_8cpp.html b/html/WriteEventReceiver_8cpp.html index c203a05eb6..59308e7775 100644 --- a/html/WriteEventReceiver_8cpp.html +++ b/html/WriteEventReceiver_8cpp.html @@ -118,7 +118,7 @@ diff --git a/html/WriteEventReceiver_8cpp_source.html b/html/WriteEventReceiver_8cpp_source.html index 0a2c800fd6..333cc0c32d 100644 --- a/html/WriteEventReceiver_8cpp_source.html +++ b/html/WriteEventReceiver_8cpp_source.html @@ -129,7 +129,7 @@
30
31 WriteEventReceiver::WriteEventReceiver(const std::string& name, const utils::Timeval& timeout)
-
33 name + " write",
+
33 name + " Write",
35 timeout) {
36 }
@@ -151,9 +151,9 @@
52 }
53
54} // namespace core::eventreceiver
- -
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
- + +
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
+
EventMultiplexer & getEventMultiplexer()
Definition EventLoop.cpp:69
static EventLoop & instance()
Definition EventLoop.cpp:59
@@ -178,7 +178,7 @@ diff --git a/html/WriteEventReceiver_8h.html b/html/WriteEventReceiver_8h.html index 31b4b535ad..7ab82a12cf 100644 --- a/html/WriteEventReceiver_8h.html +++ b/html/WriteEventReceiver_8h.html @@ -127,7 +127,7 @@ diff --git a/html/WriteEventReceiver_8h_source.html b/html/WriteEventReceiver_8h_source.html index a24debc53a..b532daf4d9 100644 --- a/html/WriteEventReceiver_8h_source.html +++ b/html/WriteEventReceiver_8h_source.html @@ -147,9 +147,9 @@
48} // namespace core::eventreceiver
49
50#endif // CORE_EVENTRECEIVER_WRITEEVENTRECEIVER_H
- -
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
- + +
DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
+
EventMultiplexer & getEventMultiplexer()
Definition EventLoop.cpp:69
static EventLoop & instance()
Definition EventLoop.cpp:59
@@ -174,7 +174,7 @@ diff --git a/html/annotated.html b/html/annotated.html index 4639a79c8c..e9862275f0 100644 --- a/html/annotated.html +++ b/html/annotated.html @@ -524,14 +524,15 @@  CSendHeaderCommand  CUpgradeCommand  CClient - CRequest - CRequestCommand - CResponse - CResponseParser - CSocketContext - CSocketContextFactory - CSocketContextUpgradeFactory - CSocketContextUpgradeFactorySelector + CConfigHTTP + CRequest + CRequestCommand + CResponse + CResponseParser + CSocketContext + CSocketContextFactory + CSocketContextUpgradeFactory + CSocketContextUpgradeFactorySelector  Ndecoder  CChunked  CChunk @@ -587,7 +588,7 @@ diff --git a/html/annotated_dup.js b/html/annotated_dup.js index efe414e87a..e3138a54cb 100644 --- a/html/annotated_dup.js +++ b/html/annotated_dup.js @@ -514,6 +514,7 @@ var annotated_dup = [ "UpgradeCommand", "classweb_1_1http_1_1client_1_1commands_1_1UpgradeCommand.html", "classweb_1_1http_1_1client_1_1commands_1_1UpgradeCommand" ] ] ], [ "Client", "classweb_1_1http_1_1client_1_1Client.html", "classweb_1_1http_1_1client_1_1Client" ], + [ "ConfigHTTP", "classweb_1_1http_1_1client_1_1ConfigHTTP.html", "classweb_1_1http_1_1client_1_1ConfigHTTP" ], [ "Request", "classweb_1_1http_1_1client_1_1Request.html", "classweb_1_1http_1_1client_1_1Request" ], [ "RequestCommand", "classweb_1_1http_1_1client_1_1RequestCommand.html", "classweb_1_1http_1_1client_1_1RequestCommand" ], [ "Response", "classweb_1_1http_1_1client_1_1Response.html", "classweb_1_1http_1_1client_1_1Response" ], diff --git a/html/base64_8cpp.html b/html/base64_8cpp.html index 439f65f5e8..700bc13cdf 100644 --- a/html/base64_8cpp.html +++ b/html/base64_8cpp.html @@ -120,7 +120,7 @@ diff --git a/html/base64_8cpp_source.html b/html/base64_8cpp_source.html index 4991d6114d..40dab69d53 100644 --- a/html/base64_8cpp_source.html +++ b/html/base64_8cpp_source.html @@ -252,7 +252,7 @@ diff --git a/html/base64_8h.html b/html/base64_8h.html index ad7466ca44..0e5140c96a 100644 --- a/html/base64_8h.html +++ b/html/base64_8h.html @@ -118,7 +118,7 @@ diff --git a/html/base64_8h_source.html b/html/base64_8h_source.html index 30a298a6e8..25ae58f2e0 100644 --- a/html/base64_8h_source.html +++ b/html/base64_8h_source.html @@ -145,7 +145,7 @@ diff --git a/html/classCLI_1_1CallForCommandline-members.html b/html/classCLI_1_1CallForCommandline-members.html index 7a7fb57e01..ffd7bea44d 100644 --- a/html/classCLI_1_1CallForCommandline-members.html +++ b/html/classCLI_1_1CallForCommandline-members.html @@ -107,7 +107,7 @@ diff --git a/html/classCLI_1_1CallForCommandline.html b/html/classCLI_1_1CallForCommandline.html index bf99f465fb..9103b33e59 100644 --- a/html/classCLI_1_1CallForCommandline.html +++ b/html/classCLI_1_1CallForCommandline.html @@ -219,11 +219,11 @@

References app, and mode.

-

Referenced by utils::Config::add_standard_flags().

+

Referenced by utils::Config::add_standard_flags().

Here is the caller graph for this function:
-
+
@@ -280,7 +280,7 @@

References app.

-

Referenced by utils::Config::parse2().

+

Referenced by utils::Config::parse2().

Here is the caller graph for this function:
@@ -311,7 +311,7 @@

References mode.

-

Referenced by utils::Config::parse2().

+

Referenced by utils::Config::parse2().

Here is the caller graph for this function:
@@ -383,7 +383,7 @@

    - +

diff --git a/html/classCLI_1_1CallForCommandline_a7ea3f08f04bde7338cc490daa90627a9_icgraph.map b/html/classCLI_1_1CallForCommandline_a7ea3f08f04bde7338cc490daa90627a9_icgraph.map index fdfb6885d7..a38f0a308b 100644 --- a/html/classCLI_1_1CallForCommandline_a7ea3f08f04bde7338cc490daa90627a9_icgraph.map +++ b/html/classCLI_1_1CallForCommandline_a7ea3f08f04bde7338cc490daa90627a9_icgraph.map @@ -1,37 +1,41 @@ - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/classCLI_1_1CallForCommandline_a7ea3f08f04bde7338cc490daa90627a9_icgraph.md5 b/html/classCLI_1_1CallForCommandline_a7ea3f08f04bde7338cc490daa90627a9_icgraph.md5 index 8782353246..2648fa62da 100644 --- a/html/classCLI_1_1CallForCommandline_a7ea3f08f04bde7338cc490daa90627a9_icgraph.md5 +++ b/html/classCLI_1_1CallForCommandline_a7ea3f08f04bde7338cc490daa90627a9_icgraph.md5 @@ -1 +1 @@ -adb10793d797b3fd67da9da237dbedb3 \ No newline at end of file +c2ed249a12b6c6280ed6c155241e5593 \ No newline at end of file diff --git a/html/classCLI_1_1CallForCommandline_a7ea3f08f04bde7338cc490daa90627a9_icgraph.svg b/html/classCLI_1_1CallForCommandline_a7ea3f08f04bde7338cc490daa90627a9_icgraph.svg index ba2061ae21..bbc9270401 100644 --- a/html/classCLI_1_1CallForCommandline_a7ea3f08f04bde7338cc490daa90627a9_icgraph.svg +++ b/html/classCLI_1_1CallForCommandline_a7ea3f08f04bde7338cc490daa90627a9_icgraph.svg @@ -4,17 +4,17 @@ - - + + CLI::CallForCommandline::CallForCommandline Node1 - -CLI::CallForCommandline -::CallForCommandline + +CLI::CallForCommandline +::CallForCommandline @@ -22,9 +22,9 @@ Node2 - -utils::Config::add -_standard_flags + +utils::Config::add +_standard_flags @@ -32,8 +32,8 @@ Node1->Node2 - - + + @@ -41,9 +41,9 @@ Node3 - -net::config::ConfigInstance -::add_section + +net::config::ConfigInstance +::add_section @@ -51,45 +51,45 @@ Node2->Node3 - - + + - - -Node14 - - -net::config::ConfigInstance -::ConfigInstance + + +Node16 + + +net::config::ConfigInstance +::ConfigInstance - - -Node2->Node14 - - - + + +Node2->Node16 + + + - - -Node15 - - -utils::Config::init + + +Node17 + + +utils::Config::init - - -Node2->Node15 - - - + + +Node2->Node17 + + + @@ -97,9 +97,9 @@ Node4 - -net::config::ConfigSection -::ConfigSection + +net::config::ConfigSection +::ConfigSection @@ -107,8 +107,8 @@ Node3->Node4 - - + + @@ -116,9 +116,9 @@ Node5 - -net::config::ConfigConnection -::ConfigConnection + +net::config::ConfigConnection +::ConfigConnection @@ -126,18 +126,18 @@ Node4->Node5 - - + + Node6 - - -net::config::ConfigLegacy -::ConfigLegacy + + +web::http::client:: +ConfigHTTP::ConfigHTTP @@ -145,72 +145,111 @@ Node4->Node6 - - + + - - -Node7 - + + +Node8 + + +net::config::ConfigLegacy +::ConfigLegacy + + + + + +Node4->Node8 + + + + + + + + +Node9 + net::config::ConfigListen ::ConfigListen - - -Node4->Node7 - - - + + +Node4->Node9 + + + - - -Node8 - + + +Node10 + net::config::ConfigPhysical Socket::ConfigPhysicalSocket - - -Node4->Node8 - - - + + +Node4->Node10 + + + - - -Node11 - + + +Node13 + net::config::ConfigTls ::ConfigTls - - -Node4->Node11 - - - + + +Node4->Node13 + + + - - -Node9 - + + +Node7 + + +web::http::client:: +SocketContextFactory +::SocketContextFactory + + + + + +Node6->Node7 + + + + + + + + +Node11 + net::config::ConfigPhysical SocketClient::ConfigPhysicalSocket @@ -218,19 +257,19 @@ - - -Node8->Node9 - + + +Node10->Node11 + - - -Node10 - + + +Node12 + net::config::ConfigPhysical SocketServer::ConfigPhysicalSocket @@ -238,102 +277,102 @@ - - -Node8->Node10 - + + +Node10->Node12 + - - -Node12 - + + +Node14 + net::config::ConfigTlsClient ::ConfigTlsClient - - -Node11->Node12 - + + +Node13->Node14 + - - -Node13 - + + +Node15 + net::config::ConfigTlsServer ::ConfigTlsServer - - -Node11->Node13 - + + +Node13->Node15 + - - -Node16 - - -core::EventLoop::init + + +Node18 + + +core::EventLoop::init - - -Node15->Node16 - - - + + +Node17->Node18 + + + - - -Node17 - + + +Node19 + core::SNodeC::init - - -Node16->Node17 - - - + + +Node18->Node19 + + + - - -Node18 - + + +Node20 + express::WebApp::init - - -Node17->Node18 - + + +Node19->Node20 + diff --git a/html/classCLI_1_1CallForShowConfig-members.html b/html/classCLI_1_1CallForShowConfig-members.html index a978e6f828..1276464461 100644 --- a/html/classCLI_1_1CallForShowConfig-members.html +++ b/html/classCLI_1_1CallForShowConfig-members.html @@ -104,7 +104,7 @@ diff --git a/html/classCLI_1_1CallForShowConfig.html b/html/classCLI_1_1CallForShowConfig.html index a27473dfc2..d3f6ea3598 100644 --- a/html/classCLI_1_1CallForShowConfig.html +++ b/html/classCLI_1_1CallForShowConfig.html @@ -151,11 +151,11 @@

References app.

-

Referenced by utils::Config::add_standard_flags().

+

Referenced by utils::Config::add_standard_flags().

Here is the caller graph for this function:
-
+

@@ -212,7 +212,7 @@

References app.

-

Referenced by utils::Config::parse2().

+

Referenced by utils::Config::parse2().

Here is the caller graph for this function:
@@ -258,7 +258,7 @@

    - +

diff --git a/html/classCLI_1_1CallForShowConfig_acee4bf9f19f239f5190f93e360166fd1_icgraph.map b/html/classCLI_1_1CallForShowConfig_acee4bf9f19f239f5190f93e360166fd1_icgraph.map index e26678b500..12fbc236d6 100644 --- a/html/classCLI_1_1CallForShowConfig_acee4bf9f19f239f5190f93e360166fd1_icgraph.map +++ b/html/classCLI_1_1CallForShowConfig_acee4bf9f19f239f5190f93e360166fd1_icgraph.map @@ -1,37 +1,41 @@ - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/classCLI_1_1CallForShowConfig_acee4bf9f19f239f5190f93e360166fd1_icgraph.md5 b/html/classCLI_1_1CallForShowConfig_acee4bf9f19f239f5190f93e360166fd1_icgraph.md5 index 87b509a3e8..2d2d6fa8c6 100644 --- a/html/classCLI_1_1CallForShowConfig_acee4bf9f19f239f5190f93e360166fd1_icgraph.md5 +++ b/html/classCLI_1_1CallForShowConfig_acee4bf9f19f239f5190f93e360166fd1_icgraph.md5 @@ -1 +1 @@ -e8dc0718b68d5247fca90fc9083a3a3b \ No newline at end of file +4a7cc601de74a6dea2384bd6bde685e9 \ No newline at end of file diff --git a/html/classCLI_1_1CallForShowConfig_acee4bf9f19f239f5190f93e360166fd1_icgraph.svg b/html/classCLI_1_1CallForShowConfig_acee4bf9f19f239f5190f93e360166fd1_icgraph.svg index 2d573ce86c..920b1acd30 100644 --- a/html/classCLI_1_1CallForShowConfig_acee4bf9f19f239f5190f93e360166fd1_icgraph.svg +++ b/html/classCLI_1_1CallForShowConfig_acee4bf9f19f239f5190f93e360166fd1_icgraph.svg @@ -4,17 +4,17 @@ - - + + CLI::CallForShowConfig::CallForShowConfig Node1 - -CLI::CallForShowConfig -::CallForShowConfig + +CLI::CallForShowConfig +::CallForShowConfig @@ -22,9 +22,9 @@ Node2 - -utils::Config::add -_standard_flags + +utils::Config::add +_standard_flags @@ -32,8 +32,8 @@ Node1->Node2 - - + + @@ -41,9 +41,9 @@ Node3 - -net::config::ConfigInstance -::add_section + +net::config::ConfigInstance +::add_section @@ -51,45 +51,45 @@ Node2->Node3 - - + + - - -Node14 - - -net::config::ConfigInstance -::ConfigInstance + + +Node16 + + +net::config::ConfigInstance +::ConfigInstance - - -Node2->Node14 - - - + + +Node2->Node16 + + + - - -Node15 - - -utils::Config::init + + +Node17 + + +utils::Config::init - - -Node2->Node15 - - - + + +Node2->Node17 + + + @@ -97,9 +97,9 @@ Node4 - -net::config::ConfigSection -::ConfigSection + +net::config::ConfigSection +::ConfigSection @@ -107,8 +107,8 @@ Node3->Node4 - - + + @@ -116,9 +116,9 @@ Node5 - -net::config::ConfigConnection -::ConfigConnection + +net::config::ConfigConnection +::ConfigConnection @@ -126,18 +126,18 @@ Node4->Node5 - - + + Node6 - - -net::config::ConfigLegacy -::ConfigLegacy + + +web::http::client:: +ConfigHTTP::ConfigHTTP @@ -145,72 +145,111 @@ Node4->Node6 - - + + - - -Node7 - + + +Node8 + + +net::config::ConfigLegacy +::ConfigLegacy + + + + + +Node4->Node8 + + + + + + + + +Node9 + net::config::ConfigListen ::ConfigListen - - -Node4->Node7 - - - + + +Node4->Node9 + + + - - -Node8 - + + +Node10 + net::config::ConfigPhysical Socket::ConfigPhysicalSocket - - -Node4->Node8 - - - + + +Node4->Node10 + + + - - -Node11 - + + +Node13 + net::config::ConfigTls ::ConfigTls - - -Node4->Node11 - - - + + +Node4->Node13 + + + - - -Node9 - + + +Node7 + + +web::http::client:: +SocketContextFactory +::SocketContextFactory + + + + + +Node6->Node7 + + + + + + + + +Node11 + net::config::ConfigPhysical SocketClient::ConfigPhysicalSocket @@ -218,19 +257,19 @@ - - -Node8->Node9 - + + +Node10->Node11 + - - -Node10 - + + +Node12 + net::config::ConfigPhysical SocketServer::ConfigPhysicalSocket @@ -238,102 +277,102 @@ - - -Node8->Node10 - + + +Node10->Node12 + - - -Node12 - + + +Node14 + net::config::ConfigTlsClient ::ConfigTlsClient - - -Node11->Node12 - + + +Node13->Node14 + - - -Node13 - + + +Node15 + net::config::ConfigTlsServer ::ConfigTlsServer - - -Node11->Node13 - + + +Node13->Node15 + - - -Node16 - - -core::EventLoop::init + + +Node18 + + +core::EventLoop::init - - -Node15->Node16 - - - + + +Node17->Node18 + + + - - -Node17 - + + +Node19 + core::SNodeC::init - - -Node16->Node17 - - - + + +Node18->Node19 + + + - - -Node18 - + + +Node20 + express::WebApp::init - - -Node17->Node18 - + + +Node19->Node20 + diff --git a/html/classCLI_1_1CallForWriteConfig-members.html b/html/classCLI_1_1CallForWriteConfig-members.html index 567c236486..5194287487 100644 --- a/html/classCLI_1_1CallForWriteConfig-members.html +++ b/html/classCLI_1_1CallForWriteConfig-members.html @@ -104,7 +104,7 @@ diff --git a/html/classCLI_1_1CallForWriteConfig.html b/html/classCLI_1_1CallForWriteConfig.html index df73f10a2d..f1e80b45ed 100644 --- a/html/classCLI_1_1CallForWriteConfig.html +++ b/html/classCLI_1_1CallForWriteConfig.html @@ -159,7 +159,7 @@

References configFile.

-

Referenced by utils::Config::parse2().

+

Referenced by utils::Config::parse2().

Here is the caller graph for this function:
@@ -220,7 +220,7 @@

References configFile.

-

Referenced by utils::Config::parse2().

+

Referenced by utils::Config::parse2().

Here is the caller graph for this function:
@@ -266,7 +266,7 @@

    - +

diff --git a/html/classCLI_1_1ConfigFormatter-members.html b/html/classCLI_1_1ConfigFormatter-members.html index 0fa2be71ea..c351fa29e6 100644 --- a/html/classCLI_1_1ConfigFormatter-members.html +++ b/html/classCLI_1_1ConfigFormatter-members.html @@ -102,7 +102,7 @@ diff --git a/html/classCLI_1_1ConfigFormatter.html b/html/classCLI_1_1ConfigFormatter.html index e36c0f6544..24884f0521 100644 --- a/html/classCLI_1_1ConfigFormatter.html +++ b/html/classCLI_1_1ConfigFormatter.html @@ -336,7 +336,7 @@

    - +

diff --git a/html/classCLI_1_1HelpFormatter-members.html b/html/classCLI_1_1HelpFormatter-members.html index 9ef4a4aeed..79f95d1d57 100644 --- a/html/classCLI_1_1HelpFormatter-members.html +++ b/html/classCLI_1_1HelpFormatter-members.html @@ -108,7 +108,7 @@ diff --git a/html/classCLI_1_1HelpFormatter.html b/html/classCLI_1_1HelpFormatter.html index 4d934642bb..ba87ae30c6 100644 --- a/html/classCLI_1_1HelpFormatter.html +++ b/html/classCLI_1_1HelpFormatter.html @@ -677,7 +677,7 @@

    - +
diff --git a/html/classSHA1-members.html b/html/classSHA1-members.html index 9d61412fe4..a41cfb3132 100644 --- a/html/classSHA1-members.html +++ b/html/classSHA1-members.html @@ -114,7 +114,7 @@ diff --git a/html/classSHA1.html b/html/classSHA1.html index 6385f065bc..de0f71e708 100644 --- a/html/classSHA1.html +++ b/html/classSHA1.html @@ -819,7 +819,7 @@

    - +
diff --git a/html/classcore_1_1Descriptor-members.html b/html/classcore_1_1Descriptor-members.html index 8818e82761..44fa4baf84 100644 --- a/html/classcore_1_1Descriptor-members.html +++ b/html/classcore_1_1Descriptor-members.html @@ -110,7 +110,7 @@ diff --git a/html/classcore_1_1Descriptor.html b/html/classcore_1_1Descriptor.html index 0c81bb7557..ff7dbc1e3e 100644 --- a/html/classcore_1_1Descriptor.html +++ b/html/classcore_1_1Descriptor.html @@ -465,7 +465,7 @@

    - +
diff --git a/html/classcore_1_1DescriptorEventPublisher-members.html b/html/classcore_1_1DescriptorEventPublisher-members.html index c60bf4a080..aae08df7dc 100644 --- a/html/classcore_1_1DescriptorEventPublisher-members.html +++ b/html/classcore_1_1DescriptorEventPublisher-members.html @@ -126,7 +126,7 @@ diff --git a/html/classcore_1_1DescriptorEventPublisher.html b/html/classcore_1_1DescriptorEventPublisher.html index faeb8b12d2..422acefa89 100644 --- a/html/classcore_1_1DescriptorEventPublisher.html +++ b/html/classcore_1_1DescriptorEventPublisher.html @@ -324,7 +324,7 @@

69 }
std::map< int, std::list< DescriptorEventReceiver * > > observedEventReceivers
-

References core::DescriptorEventReceiver::checkTimeout(), and observedEventReceivers.

+

References core::DescriptorEventReceiver::checkTimeout(), and observedEventReceivers.

Referenced by core::EventMultiplexer::checkTimedOutEvents().

@@ -364,7 +364,7 @@

144 }

145 }
-

References core::DescriptorEventReceiver::disable(), and observedEventReceivers.

+

References core::DescriptorEventReceiver::disable(), and observedEventReceivers.

Referenced by core::EventMultiplexer::terminate().

@@ -404,7 +404,7 @@

References observedEventReceiversDirty.

-

Referenced by core::DescriptorEventReceiver::disable().

+

Referenced by core::DescriptorEventReceiver::disable().

Here is the caller graph for this function:
@@ -443,9 +443,9 @@

virtual void muxOff(DescriptorEventReceiver *descriptorEventReceiver)=0

static Timeval currentTime()
Definition Timeval.cpp:54

-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::isSuspended(), muxAdd(), muxOff(), observedEventReceivers, and core::DescriptorEventReceiver::setEnabled().

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::isSuspended(), muxAdd(), muxOff(), observedEventReceivers, and core::DescriptorEventReceiver::setEnabled().

-

Referenced by core::DescriptorEventReceiver::enable().

+

Referenced by core::DescriptorEventReceiver::enable().

Here is the call graph for this function:
@@ -514,9 +514,9 @@

128 return nextTimeout;

129 }
- + -

References core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::TIMEOUT::MAX, observedEventReceivers, observedEventReceiversDirty, and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::TIMEOUT::MAX, observedEventReceivers, observedEventReceiversDirty, and utils::Timeval::operator=().

Referenced by core::EventMultiplexer::getNextTimeout().

@@ -818,7 +818,7 @@

virtual void muxDel(int fd)=0

virtual void muxOn(DescriptorEventReceiver *descriptorEventReceiver)=0
-

References core::DescriptorEventReceiver::isSuspended(), muxDel(), muxOff(), muxOn(), observedEventReceivers, observedEventReceiversDirty, and core::DescriptorEventReceiver::triggered().

+

References core::DescriptorEventReceiver::isSuspended(), muxDel(), muxOff(), muxOn(), observedEventReceivers, observedEventReceiversDirty, and core::DescriptorEventReceiver::triggered().

Referenced by core::EventMultiplexer::releaseExpiredResources().

@@ -857,7 +857,7 @@

References muxOn().

-

Referenced by core::DescriptorEventReceiver::resume().

+

Referenced by core::DescriptorEventReceiver::resume().

Here is the call graph for this function:
@@ -896,7 +896,7 @@

136 }

137 }

-

References observedEventReceivers, and core::DescriptorEventReceiver::onSignal().

+

References observedEventReceivers, and core::DescriptorEventReceiver::onSignal().

Referenced by core::EventMultiplexer::signal().

@@ -969,7 +969,7 @@

References muxOff().

-

Referenced by core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::suspend().

Here is the call graph for this function:
@@ -1098,7 +1098,7 @@

    - +

diff --git a/html/classcore_1_1DescriptorEventReceiver-members.html b/html/classcore_1_1DescriptorEventReceiver-members.html index 011615d257..8fe7be9bd6 100644 --- a/html/classcore_1_1DescriptorEventReceiver-members.html +++ b/html/classcore_1_1DescriptorEventReceiver-members.html @@ -99,53 +99,56 @@ checkTimeout(const utils::Timeval &currentTime)core::DescriptorEventReceiver descriptorEventPublishercore::DescriptorEventReceiverprivate DescriptorEventPublishercore::DescriptorEventReceiverfriend - DescriptorEventReceiver(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiver - DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiver - destruct()core::EventReceivervirtual - disable()core::DescriptorEventReceiverprotected - dispatchEvent()=0core::DescriptorEventReceiverprivatepure virtual - enable(int fd)core::DescriptorEventReceiverprotected - enabledcore::DescriptorEventReceiverprivate - eventcore::EventReceiverprivate - eventCountercore::DescriptorEventReceiverprivate - EventReceiver(const std::string &name)core::EventReceiver - getName() constcore::EventReceiver - getRegisteredFd() constcore::DescriptorEventReceiver - getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiver - initialTimeoutcore::DescriptorEventReceiverprivate - isEnabled() constcore::DescriptorEventReceiver - isSuspended() constcore::DescriptorEventReceiver - lastTriggeredcore::DescriptorEventReceiverprivate - maxInactivitycore::DescriptorEventReceiverprivate - observationCountercore::Observerprivate - observed()core::Observerprotected - observedFdcore::DescriptorEventReceiverprivate - Observer()=defaultcore::Observerprotected - Observer(const Observer &observer)core::Observerprotected + DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiver + destruct()core::EventReceivervirtual + disable()core::DescriptorEventReceiverprotected + dispatchEvent()=0core::DescriptorEventReceiverprivatepure virtual + enable(int fd)core::DescriptorEventReceiverprotected + enabledcore::DescriptorEventReceiverprivate + eventcore::EventReceiverprivate + eventCountercore::DescriptorEventReceiverprivate + EventReceiver(const std::string &name)core::EventReceiver + EventReceiver(EventReceiver &)=deletecore::EventReceiver + EventReceiver(EventReceiver &&)=deletecore::EventReceiver + getName() constcore::EventReceiver + getRegisteredFd() constcore::DescriptorEventReceiver + getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiver + initialTimeoutcore::DescriptorEventReceiverprivate + isEnabled() constcore::DescriptorEventReceiver + isSuspended() constcore::DescriptorEventReceiver + lastTriggeredcore::DescriptorEventReceiverprivate + maxInactivitycore::DescriptorEventReceiverprivate + observationCountercore::Observerprivate + observed()core::Observerprotected + observedFdcore::DescriptorEventReceiverprivate + Observer()=defaultcore::Observerprotected + Observer(Observer &)=deletecore::Observerprotected + Observer(Observer &&)=deletecore::Observerprotected onEvent(const utils::Timeval &currentTime) finalcore::DescriptorEventReceiverprivatevirtual onSignal(int signum)core::DescriptorEventReceiverprivate - operator=(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiver - relax()core::EventReceiver - resume()core::DescriptorEventReceiverprotected - setDisabled()core::DescriptorEventReceiverprivate - setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiver - signalEvent(int signum)=0core::DescriptorEventReceiverprivatepure virtual - span()core::EventReceiver - suspend()core::DescriptorEventReceiverprotected - suspendedcore::DescriptorEventReceiverprivate - timeoutEvent()=0core::DescriptorEventReceiverprivatepure virtual - triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - unObserved()core::Observerprotected - unobservedEvent()=0core::Observerprotectedpure virtual - ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual - ~Observer()core::Observerprotectedvirtual + operator=(EventReceiver &)=deletecore::EventReceiver + operator=(EventReceiver &&)=deletecore::EventReceiver + relax()core::EventReceiver + resume()core::DescriptorEventReceiverprotected + setDisabled()core::DescriptorEventReceiverprivate + setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiver + signalEvent(int signum)=0core::DescriptorEventReceiverprivatepure virtual + span()core::EventReceiver + suspend()core::DescriptorEventReceiverprotected + suspendedcore::DescriptorEventReceiverprivate + timeoutEvent()=0core::DescriptorEventReceiverprivatepure virtual + triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + unObserved()core::Observerprotected + unobservedEvent()=0core::Observerprotectedpure virtual + ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual + ~Observer()core::Observerprotectedvirtual

diff --git a/html/classcore_1_1DescriptorEventReceiver.html b/html/classcore_1_1DescriptorEventReceiver.html index be10b5639c..9dcac8534d 100644 --- a/html/classcore_1_1DescriptorEventReceiver.html +++ b/html/classcore_1_1DescriptorEventReceiver.html @@ -121,10 +121,6 @@ - - - - @@ -219,36 +215,10 @@

Public Member Functions

 DescriptorEventReceiver (const DescriptorEventReceiver &)=delete
 
DescriptorEventReceiveroperator= (const DescriptorEventReceiver &)=delete
 
 DescriptorEventReceiver (const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)
 
int getRegisteredFd () const

Detailed Description

-

Definition at line 56 of file DescriptorEventReceiver.h.

+

Definition at line 57 of file DescriptorEventReceiver.h.

Constructor & Destructor Documentation

- -

◆ DescriptorEventReceiver() [1/2]

- -
-
- - - - - -
- - - - - - - - -
core::DescriptorEventReceiver::DescriptorEventReceiver (const DescriptorEventReceiver)
-
-delete
-
- -
-
-

◆ DescriptorEventReceiver() [2/2]

+

◆ DescriptorEventReceiver()

@@ -279,18 +249,18 @@

-

Definition at line 57 of file DescriptorEventReceiver.cpp.

-
60 : EventReceiver(name)
- -
62 , maxInactivity(timeout)
-
63 , initialTimeout(timeout) {
-
64 }
- - -
DescriptorEventPublisher & descriptorEventPublisher
+

Definition at line 54 of file DescriptorEventReceiver.cpp.

+
57 : EventReceiver(name)
+ +
59 , maxInactivity(timeout)
+
60 , initialTimeout(timeout) {
+
61 }
+ + +
DescriptorEventPublisher & descriptorEventPublisher
EventReceiver(const std::string &name)
-

References descriptorEventPublisher, core::EventReceiver::EventReceiver(), initialTimeout, maxInactivity, and utils::Timeval::Timeval().

+

References descriptorEventPublisher, core::EventReceiver::EventReceiver(), initialTimeout, maxInactivity, and utils::Timeval::Timeval().

Referenced by core::eventreceiver::AcceptEventReceiver::AcceptEventReceiver(), core::eventreceiver::ConnectEventReceiver::ConnectEventReceiver(), core::eventreceiver::ExceptionalConditionEventReceiver::ExceptionalConditionEventReceiver(), core::eventreceiver::ReadEventReceiver::ReadEventReceiver(), and core::eventreceiver::WriteEventReceiver::WriteEventReceiver().

@@ -359,7 +329,7 @@

References core::EventReceiver::EventReceiver(), and core::EventReceiver::span().

-

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::responseDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

Here is the call graph for this function:
-
+

@@ -389,16 +359,16 @@

-

Definition at line 171 of file DescriptorEventReceiver.cpp.

-
171 {
-
172 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
-
173 timeoutEvent();
-
174 }
-
175 }
- +

Definition at line 168 of file DescriptorEventReceiver.cpp.

+
168 {
+
169 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
+
170 timeoutEvent();
+
171 }
+
172 }
+
virtual void timeoutEvent()=0
-

References lastTriggered, maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and timeoutEvent().

+

References lastTriggered, maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and timeoutEvent().

Referenced by core::DescriptorEventPublisher::checkTimedOutEvents().

@@ -476,25 +446,25 @@

-

Definition at line 93 of file DescriptorEventReceiver.cpp.

-
93 {
-
94 if (enabled) {
-
95 enabled = false;
- -
97 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
-
98 } else {
-
99 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
-
100 }
-
101 }
+

Definition at line 90 of file DescriptorEventReceiver.cpp.

+
90 {
+
91 if (enabled) {
+
92 enabled = false;
+ +
94 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
+
95 } else {
+
96 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
+
97 }
+
98 }
void disable(DescriptorEventReceiver *descriptorEventReceiver)
- - + +
const std::string & getName() const
-

References descriptorEventPublisher, core::DescriptorEventPublisher::disable(), enabled, core::EventReceiver::getName(), and observedFd.

+

References descriptorEventPublisher, core::DescriptorEventPublisher::disable(), enabled, core::EventReceiver::getName(), and observedFd.

-

Referenced by core::eventreceiver::AcceptEventReceiver::acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::eventreceiver::ConnectEventReceiver::connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::eof(), core::eventreceiver::ExceptionalConditionEventReceiver::outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSink::readEvent(), core::eventreceiver::ReadEventReceiver::readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), core::eventreceiver::AcceptEventReceiver::signalEvent(), core::eventreceiver::ConnectEventReceiver::signalEvent(), core::eventreceiver::ExceptionalConditionEventReceiver::signalEvent(), core::eventreceiver::ReadEventReceiver::signalEvent(), core::eventreceiver::WriteEventReceiver::signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), core::pipe::PipeSource::writeEvent(), core::eventreceiver::WriteEventReceiver::writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

+

Referenced by core::eventreceiver::AcceptEventReceiver::acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::eventreceiver::ConnectEventReceiver::connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::eof(), core::eventreceiver::ExceptionalConditionEventReceiver::outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSink::readEvent(), core::eventreceiver::ReadEventReceiver::readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), core::eventreceiver::AcceptEventReceiver::signalEvent(), core::eventreceiver::ConnectEventReceiver::signalEvent(), core::eventreceiver::ExceptionalConditionEventReceiver::signalEvent(), core::eventreceiver::ReadEventReceiver::signalEvent(), core::eventreceiver::WriteEventReceiver::signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), core::pipe::PipeSource::writeEvent(), core::eventreceiver::WriteEventReceiver::writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

Here is the call graph for this function:
@@ -533,7 +503,7 @@

core::eventreceiver::AcceptEventReceiver, core::eventreceiver::ConnectEventReceiver, core::eventreceiver::ExceptionalConditionEventReceiver, core::eventreceiver::ReadEventReceiver, and core::eventreceiver::WriteEventReceiver.

-

Referenced by onEvent().

+

Referenced by onEvent().

Here is the caller graph for this function:
@@ -566,30 +536,30 @@

-

Definition at line 70 of file DescriptorEventReceiver.cpp.

-
70 {
- -
72 if (!enabled) {
-
73 observedFd = fd;
-
74
-
75 enabled = true;
- -
77 } else {
-
78 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
-
79 }
-
80 } else {
-
81 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
-
82 }
-
83
-
84 return enabled;
-
85 }
+

Definition at line 67 of file DescriptorEventReceiver.cpp.

+
67 {
+ +
69 if (!enabled) {
+
70 observedFd = fd;
+
71
+
72 enabled = true;
+ +
74 } else {
+
75 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
+
76 }
+
77 } else {
+
78 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
+
79 }
+
80
+
81 return enabled;
+
82 }
void enable(DescriptorEventReceiver *descriptorEventReceiver)
State eventLoopState()
Definition State.cpp:30
-

References descriptorEventPublisher, core::DescriptorEventPublisher::enable(), enabled, core::eventLoopState(), core::EventReceiver::getName(), observedFd, and core::STOPPING.

+

References descriptorEventPublisher, core::DescriptorEventPublisher::enable(), enabled, core::eventLoopState(), core::EventReceiver::getName(), observedFd, and core::STOPPING.

-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::pipe::PipeSink::PipeSink(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::pipe::PipeSink::PipeSink(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

Here is the call graph for this function:
@@ -631,9 +601,9 @@

66 return event.getName();

67 }
-

References core::EventReceiver::event, and core::Event::getName().

+

References core::EventReceiver::event, and core::Event::getName().

-

Referenced by disable(), enable(), core::socket::stream::tls::SocketReader::read(), resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), suspend(), and core::socket::stream::tls::SocketWriter::write().

+

Referenced by disable(), enable(), core::socket::stream::tls::SocketReader::read(), resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), suspend(), and core::socket::stream::tls::SocketWriter::write().

Here is the call graph for this function:
@@ -662,12 +632,12 @@

-

Definition at line 66 of file DescriptorEventReceiver.cpp.

-
66 {
-
67 return observedFd;
-
68 }
+

Definition at line 63 of file DescriptorEventReceiver.cpp.

+
63 {
+
64 return observedFd;
+
65 }
-

References observedFd.

+

References observedFd.

Referenced by core::DescriptorEventPublisher::enable(), core::epoll::DescriptorEventPublisher::EPollEvents::muxAdd(), core::select::DescriptorEventPublisher::muxAdd(), core::poll::PollFdsManager::muxAdd(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOff(), core::select::DescriptorEventPublisher::muxOff(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOn(), core::select::DescriptorEventPublisher::muxOn(), core::socket::stream::legacy::SocketReader::read(), core::pipe::PipeSink::readEvent(), core::socket::stream::legacy::SocketWriter::write(), core::pipe::PipeSource::writeEvent(), core::pipe::PipeSink::~PipeSink(), and core::pipe::PipeSource::~PipeSource().

@@ -694,12 +664,12 @@

-

Definition at line 152 of file DescriptorEventReceiver.cpp.

-
152 {
-
153 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
-
154 }
+

Definition at line 149 of file DescriptorEventReceiver.cpp.

+
149 {
+
150 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
+
151 }
-

References lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

+

References lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

Referenced by core::DescriptorEventPublisher::getNextTimeout().

@@ -730,14 +700,14 @@

-

Definition at line 107 of file DescriptorEventReceiver.cpp.

-
107 {
-
108 return enabled;
-
109 }
+

Definition at line 104 of file DescriptorEventReceiver.cpp.

+
104 {
+
105 return enabled;
+
106 }
-

References enabled.

+

References enabled.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

Here is the caller graph for this function:
@@ -761,15 +731,15 @@

-

Definition at line 138 of file DescriptorEventReceiver.cpp.

-
138 {
-
139 return suspended;
-
140 }
- +

Definition at line 135 of file DescriptorEventReceiver.cpp.

+
135 {
+
136 return suspended;
+
137 }
+
-

References suspended.

+

References suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::pipe::PipeSource::send().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::pipe::PipeSource::send().

Here is the caller graph for this function:
@@ -801,15 +771,15 @@

-

Definition at line 41 of file DescriptorEventReceiver.cpp.

-
41 {
- -
43 }
- +

Definition at line 38 of file DescriptorEventReceiver.cpp.

+
38 {
+ +
40 }
+
-

References core::Observer::observationCounter.

+

References core::Observer::observationCounter.

-

Referenced by setEnabled().

+

Referenced by setEnabled().

Here is the caller graph for this function:
@@ -844,18 +814,18 @@

core::EventReceiver.

-

Definition at line 156 of file DescriptorEventReceiver.cpp.

-
156 {
-
157 eventCounter++;
-
158 triggered(currentTime);
-
159
- -
161 }
-
void triggered(const utils::Timeval &currentTime)
+

Definition at line 153 of file DescriptorEventReceiver.cpp.

+
153 {
+
154 eventCounter++;
+
155 triggered(currentTime);
+
156
+ +
158 }
+
void triggered(const utils::Timeval &currentTime)
virtual void dispatchEvent()=0
- +
-

References dispatchEvent(), eventCounter, and triggered().

+

References dispatchEvent(), eventCounter, and triggered().

Here is the call graph for this function:
@@ -888,10 +858,10 @@

-

Definition at line 163 of file DescriptorEventReceiver.cpp.

-
163 {
-
164 signalEvent(signum);
-
165 }
+

Definition at line 160 of file DescriptorEventReceiver.cpp.

+
160 {
+
161 signalEvent(signum);
+
162 }
virtual void signalEvent(int signum)=0

References signalEvent().

@@ -908,32 +878,6 @@

-
-

- -

◆ operator=()

- -
-
- - - - - -
- - - - - - - - -
DescriptorEventReceiver & core::DescriptorEventReceiver::operator= (const DescriptorEventReceiver)
-
-delete
-
-
@@ -964,7 +908,7 @@

62 event.relax();

63 }

-

References core::EventReceiver::event, and core::Event::relax().

+

References core::EventReceiver::event, and core::Event::relax().

Here is the call graph for this function:
@@ -996,26 +940,26 @@

-

Definition at line 124 of file DescriptorEventReceiver.cpp.

-
124 {
-
125 if (enabled) {
-
126 if (suspended) {
-
127 suspended = false;
- - -
130 } else {
-
131 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
-
132 }
-
133 } else {
-
134 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
-
135 }
-
136 }
+

Definition at line 121 of file DescriptorEventReceiver.cpp.

+
121 {
+
122 if (enabled) {
+
123 if (suspended) {
+
124 suspended = false;
+ + +
127 } else {
+
128 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
+
129 }
+
130 } else {
+
131 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
+
132 }
+
133 }
void resume(DescriptorEventReceiver *descriptorEventReceiver)
static Timeval currentTime()
Definition Timeval.cpp:54
-

References utils::Timeval::currentTime(), descriptorEventPublisher, enabled, core::EventReceiver::getName(), lastTriggered, observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and suspended.

+

References utils::Timeval::currentTime(), descriptorEventPublisher, enabled, core::EventReceiver::getName(), lastTriggered, observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSource::send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSource::send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

Here is the call graph for this function:
@@ -1052,13 +996,13 @@

-

Definition at line 103 of file DescriptorEventReceiver.cpp.

-
103 {
-
104 unObserved();
-
105 }
- +

Definition at line 100 of file DescriptorEventReceiver.cpp.

+
100 {
+
101 unObserved();
+
102 }
+
-

References core::Observer::unObserved().

+

References core::Observer::unObserved().

Here is the call graph for this function:
@@ -1091,15 +1035,15 @@

-

Definition at line 87 of file DescriptorEventReceiver.cpp.

-
87 {
-
88 lastTriggered = currentTime;
-
89
-
90 observed();
-
91 }
- +

Definition at line 84 of file DescriptorEventReceiver.cpp.

+
84 {
+
85 lastTriggered = currentTime;
+
86
+
87 observed();
+
88 }
+
-

References lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

+

References lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

Referenced by core::DescriptorEventPublisher::enable().

@@ -1131,21 +1075,21 @@

-

Definition at line 142 of file DescriptorEventReceiver.cpp.

-
142 {
-
143 if (timeout == TIMEOUT::DEFAULT) {
- -
145 } else {
-
146 this->maxInactivity = timeout;
-
147 }
-
148
- -
150 }
- +

Definition at line 139 of file DescriptorEventReceiver.cpp.

+
139 {
+
140 if (timeout == TIMEOUT::DEFAULT) {
+ +
142 } else {
+
143 this->maxInactivity = timeout;
+
144 }
+
145
+ +
147 }
+
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, initialTimeout, maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and triggered().

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, initialTimeout, maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and triggered().

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

Here is the call graph for this function:
-

References core::EventReceiver::event, and core::Event::span().

+

References core::EventReceiver::event, and core::Event::span().

-

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

+

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

Here is the call graph for this function:
-
+
@@ -1261,24 +1205,24 @@

-

Definition at line 111 of file DescriptorEventReceiver.cpp.

-
111 {
-
112 if (enabled) {
-
113 if (!suspended) {
-
114 suspended = true;
- -
116 } else {
-
117 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
-
118 }
-
119 } else {
-
120 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
-
121 }
-
122 }
+

Definition at line 108 of file DescriptorEventReceiver.cpp.

+
108 {
+
109 if (enabled) {
+
110 if (!suspended) {
+
111 suspended = true;
+ +
113 } else {
+
114 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
+
115 }
+
116 } else {
+
117 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
+
118 }
+
119 }
void suspend(DescriptorEventReceiver *descriptorEventReceiver)
-

References descriptorEventPublisher, enabled, core::EventReceiver::getName(), observedFd, core::DescriptorEventPublisher::suspend(), and suspended.

+

References descriptorEventPublisher, enabled, core::EventReceiver::getName(), observedFd, core::DescriptorEventPublisher::suspend(), and suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and core::pipe::PipeSource::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and core::pipe::PipeSource::writeEvent().

Here is the call graph for this function:
@@ -1317,7 +1261,7 @@

core::eventreceiver::AcceptEventReceiver, core::eventreceiver::ConnectEventReceiver, core::eventreceiver::ExceptionalConditionEventReceiver, core::eventreceiver::ReadEventReceiver, and core::eventreceiver::WriteEventReceiver.

-

Referenced by checkTimeout().

+

Referenced by checkTimeout().

Here is the caller graph for this function:
@@ -1350,14 +1294,14 @@

-

Definition at line 167 of file DescriptorEventReceiver.cpp.

-
167 {
-
168 lastTriggered = currentTime;
-
169 }
+

Definition at line 164 of file DescriptorEventReceiver.cpp.

+
164 {
+
165 lastTriggered = currentTime;
+
166 }
-

References lastTriggered, and utils::Timeval::operator=().

+

References lastTriggered, and utils::Timeval::operator=().

-

Referenced by onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and setTimeout().

+

Referenced by onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and setTimeout().

Here is the call graph for this function:
@@ -1394,19 +1338,19 @@

-

Definition at line 45 of file DescriptorEventReceiver.cpp.

-
45 {
- -
47
-
48 if (observationCounter == 0) {
- -
50 }
-
51 }
+

Definition at line 42 of file DescriptorEventReceiver.cpp.

+
42 {
+ +
44
+
45 if (observationCounter == 0) {
+ +
47 }
+
48 }
virtual void unobservedEvent()=0
-

References core::Observer::observationCounter, and core::Observer::unobservedEvent().

+

References core::Observer::observationCounter, and core::Observer::unobservedEvent().

-

Referenced by setDisabled().

+

Referenced by setDisabled().

Here is the call graph for this function:
@@ -1500,9 +1444,9 @@

-

Definition at line 104 of file DescriptorEventReceiver.h.

+

Definition at line 101 of file DescriptorEventReceiver.h.

-

Referenced by DescriptorEventReceiver(), disable(), enable(), resume(), and suspend().

+

Referenced by DescriptorEventReceiver(), disable(), enable(), resume(), and suspend().

@@ -1526,9 +1470,9 @@

-

Definition at line 108 of file DescriptorEventReceiver.h.

+

Definition at line 105 of file DescriptorEventReceiver.h.

-

Referenced by disable(), enable(), isEnabled(), resume(), and suspend().

+

Referenced by disable(), enable(), isEnabled(), resume(), and suspend().

@@ -1552,7 +1496,7 @@

-

Definition at line 59 of file EventReceiver.h.

+

Definition at line 65 of file EventReceiver.h.

Referenced by core::EventReceiver::EventReceiver(), core::EventReceiver::getName(), core::EventReceiver::relax(), and core::EventReceiver::span().

@@ -1578,9 +1522,9 @@

-

Definition at line 115 of file DescriptorEventReceiver.h.

+

Definition at line 112 of file DescriptorEventReceiver.h.

-

Referenced by onEvent().

+

Referenced by onEvent().

@@ -1604,9 +1548,9 @@

-

Definition at line 113 of file DescriptorEventReceiver.h.

+

Definition at line 110 of file DescriptorEventReceiver.h.

-

Referenced by DescriptorEventReceiver(), and setTimeout().

+

Referenced by DescriptorEventReceiver(), and setTimeout().

@@ -1630,9 +1574,9 @@

-

Definition at line 111 of file DescriptorEventReceiver.h.

+

Definition at line 108 of file DescriptorEventReceiver.h.

-

Referenced by checkTimeout(), getTimeout(), resume(), setEnabled(), and triggered().

+

Referenced by checkTimeout(), getTimeout(), resume(), setEnabled(), and triggered().

@@ -1656,9 +1600,9 @@

-

Definition at line 112 of file DescriptorEventReceiver.h.

+

Definition at line 109 of file DescriptorEventReceiver.h.

-

Referenced by checkTimeout(), DescriptorEventReceiver(), getTimeout(), and setTimeout().

+

Referenced by checkTimeout(), DescriptorEventReceiver(), getTimeout(), and setTimeout().

@@ -1682,9 +1626,9 @@

-

Definition at line 53 of file DescriptorEventReceiver.h.

+

Definition at line 54 of file DescriptorEventReceiver.h.

-

Referenced by core::Observer::observed(), and core::Observer::unObserved().

+

Referenced by core::Observer::observed(), and core::Observer::unObserved().

@@ -1708,9 +1652,9 @@

-

Definition at line 106 of file DescriptorEventReceiver.h.

+

Definition at line 103 of file DescriptorEventReceiver.h.

-

Referenced by disable(), enable(), getRegisteredFd(), resume(), and suspend().

+

Referenced by disable(), enable(), getRegisteredFd(), resume(), and suspend().

@@ -1734,9 +1678,9 @@

-

Definition at line 109 of file DescriptorEventReceiver.h.

+

Definition at line 106 of file DescriptorEventReceiver.h.

-

Referenced by isSuspended(), resume(), and suspend().

+

Referenced by isSuspended(), resume(), and suspend().

@@ -1750,7 +1694,7 @@

    - +

diff --git a/html/classcore_1_1DescriptorEventReceiver.js b/html/classcore_1_1DescriptorEventReceiver.js index 1871c43076..93a7df7f65 100644 --- a/html/classcore_1_1DescriptorEventReceiver.js +++ b/html/classcore_1_1DescriptorEventReceiver.js @@ -1,7 +1,6 @@ var classcore_1_1DescriptorEventReceiver = [ [ "TIMEOUT", "structcore_1_1DescriptorEventReceiver_1_1TIMEOUT.html", "structcore_1_1DescriptorEventReceiver_1_1TIMEOUT" ], - [ "DescriptorEventReceiver", "classcore_1_1DescriptorEventReceiver.html#acda68fdd6262cecc1c4814b42a1d2a52", null ], [ "DescriptorEventReceiver", "classcore_1_1DescriptorEventReceiver.html#a1c88ab07dd31cc902fdfeb071f11956e", null ], [ "atNextTick", "classcore_1_1DescriptorEventReceiver.html#a2e8d915eca53e827be4f493a63ae058d", null ], [ "checkTimeout", "classcore_1_1DescriptorEventReceiver.html#ae04e87c4f44979a04d3839759a63220a", null ], @@ -17,7 +16,6 @@ var classcore_1_1DescriptorEventReceiver = [ "observed", "classcore_1_1DescriptorEventReceiver.html#aeff595f74f25efea85406cf700e13550", null ], [ "onEvent", "classcore_1_1DescriptorEventReceiver.html#aa0c0922c02cd86d913987035fe3a8f80", null ], [ "onSignal", "classcore_1_1DescriptorEventReceiver.html#a4f774310060571d7d0c1cb53129333e1", null ], - [ "operator=", "classcore_1_1DescriptorEventReceiver.html#a5347f00976f5a8abb84ff3a690d9fea9", null ], [ "relax", "classcore_1_1DescriptorEventReceiver.html#a748159baa69a639df53ac5675ae8425f", null ], [ "resume", "classcore_1_1DescriptorEventReceiver.html#afa983ac6b0ba8f28ce4c0fc16cd914f8", null ], [ "setDisabled", "classcore_1_1DescriptorEventReceiver.html#a53b16eb14da654bfaf9a7e28e3024ff1", null ], diff --git a/html/classcore_1_1DynamicLoader-members.html b/html/classcore_1_1DynamicLoader-members.html index 4c60e79e0d..7523424aa0 100644 --- a/html/classcore_1_1DynamicLoader-members.html +++ b/html/classcore_1_1DynamicLoader-members.html @@ -115,7 +115,7 @@ diff --git a/html/classcore_1_1DynamicLoader.html b/html/classcore_1_1DynamicLoader.html index 0ad322a6b2..7ee57eb304 100644 --- a/html/classcore_1_1DynamicLoader.html +++ b/html/classcore_1_1DynamicLoader.html @@ -818,7 +818,7 @@

    - +

diff --git a/html/classcore_1_1Event-members.html b/html/classcore_1_1Event-members.html index a596289c3d..983dbc307e 100644 --- a/html/classcore_1_1Event-members.html +++ b/html/classcore_1_1Event-members.html @@ -111,7 +111,7 @@ diff --git a/html/classcore_1_1Event.html b/html/classcore_1_1Event.html index eb24bcd5e4..d3f57f916e 100644 --- a/html/classcore_1_1Event.html +++ b/html/classcore_1_1Event.html @@ -191,7 +191,7 @@

Here is the caller graph for this function:

-
+

@@ -404,7 +404,7 @@

Here is the caller graph for this function:

-
+
@@ -524,7 +524,7 @@

    - +

diff --git a/html/classcore_1_1EventLoop-members.html b/html/classcore_1_1EventLoop-members.html index 13cb9af618..a3e6b50c2f 100644 --- a/html/classcore_1_1EventLoop-members.html +++ b/html/classcore_1_1EventLoop-members.html @@ -120,7 +120,7 @@ diff --git a/html/classcore_1_1EventLoop.html b/html/classcore_1_1EventLoop.html index cc739f9c69..75d03984fa 100644 --- a/html/classcore_1_1EventLoop.html +++ b/html/classcore_1_1EventLoop.html @@ -383,15 +383,15 @@

258 timeout -= seconds.count();

260
-
261 LOG(TRACE) << "Core: Terminating all stalled DescriptorEventReceivers";
+
261 LOG(TRACE) << "Core: Terminate all stalled DescriptorEventReceivers";
262
264
-
265 LOG(TRACE) << "Core: Closing all libraries opened during runtime";
+
265 LOG(TRACE) << "Core: Close all libraries opened during runtime";
266
268
-
269 LOG(TRACE) << "Core:: Cleaning up filesystem";
+
269 LOG(TRACE) << "Core:: Clean up the filesystem";
270
272
@@ -405,14 +405,14 @@

static int stopsig
Definition EventLoop.h:71

-
static void terminate()
Definition Config.cpp:620
+
static void terminate()
Definition Config.cpp:621
sighandler_t signal(int sig, sighandler_t handler)
Definition signal.cpp:31
std::string sigabbrev_np(int sig)
Definition signal.cpp:36

-

References _tick(), eventLoopState, eventMultiplexer, core::DynamicLoader::execDlCloseAll(), instance(), core::INTERRUPTED, utils::Timeval::operator-=(), utils::Timeval::operator>(), utils::system::sigabbrev_np(), core::EventMultiplexer::signal(), core::STOPPING, stopsig, core::SUCCESS, core::EventMultiplexer::terminate(), and utils::Config::terminate().

+

References _tick(), eventLoopState, eventMultiplexer, core::DynamicLoader::execDlCloseAll(), instance(), core::INTERRUPTED, utils::Timeval::operator-=(), utils::Timeval::operator>(), utils::system::sigabbrev_np(), core::EventMultiplexer::signal(), core::STOPPING, stopsig, core::SUCCESS, core::EventMultiplexer::terminate(), and utils::Config::terminate().

Referenced by core::SNodeC::free(), start(), and tick().

-
+
@@ -665,7 +665,7 @@

Here is the caller graph for this function:
-
+
@@ -786,10 +786,10 @@

static void free()
static void stoponsig(int sig)
-
static bool bootstrap()
Definition Config.cpp:339
+
static bool bootstrap()
Definition Config.cpp:340
-

References _tick(), utils::Config::bootstrap(), core::EventMultiplexer::clearEventQueue(), eventLoopState, eventMultiplexer, free(), core::INITIALIZED, instance(), core::INTERRUPTED, core::NOOBSERVER, core::RUNNING, stoponsig(), stopsig, core::SUCCESS, and core::TRACE.

+

References _tick(), utils::Config::bootstrap(), core::EventMultiplexer::clearEventQueue(), eventLoopState, eventMultiplexer, free(), core::INITIALIZED, instance(), core::INTERRUPTED, core::NOOBSERVER, core::RUNNING, stoponsig(), stopsig, core::SUCCESS, and core::TRACE.

Referenced by core::SNodeC::start().

@@ -1098,7 +1098,7 @@

    - +

diff --git a/html/classcore_1_1EventLoop_a17f1623de6ca2ea2682c63cf502c3c36_icgraph.map b/html/classcore_1_1EventLoop_a17f1623de6ca2ea2682c63cf502c3c36_icgraph.map index f19b4bd699..99230f60ad 100644 --- a/html/classcore_1_1EventLoop_a17f1623de6ca2ea2682c63cf502c3c36_icgraph.map +++ b/html/classcore_1_1EventLoop_a17f1623de6ca2ea2682c63cf502c3c36_icgraph.map @@ -1,209 +1,218 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/classcore_1_1EventLoop_a17f1623de6ca2ea2682c63cf502c3c36_icgraph.md5 b/html/classcore_1_1EventLoop_a17f1623de6ca2ea2682c63cf502c3c36_icgraph.md5 index 05f7184393..345f90ca60 100644 --- a/html/classcore_1_1EventLoop_a17f1623de6ca2ea2682c63cf502c3c36_icgraph.md5 +++ b/html/classcore_1_1EventLoop_a17f1623de6ca2ea2682c63cf502c3c36_icgraph.md5 @@ -1 +1 @@ -6aa7d8ad4e6285b787c868d522ecef84 \ No newline at end of file +83d384c53f42e449424173859047e4c9 \ No newline at end of file diff --git a/html/classcore_1_1EventLoop_a17f1623de6ca2ea2682c63cf502c3c36_icgraph.svg b/html/classcore_1_1EventLoop_a17f1623de6ca2ea2682c63cf502c3c36_icgraph.svg index 6287b240b7..76755b6a85 100644 --- a/html/classcore_1_1EventLoop_a17f1623de6ca2ea2682c63cf502c3c36_icgraph.svg +++ b/html/classcore_1_1EventLoop_a17f1623de6ca2ea2682c63cf502c3c36_icgraph.svg @@ -4,17 +4,17 @@ - - + + core::EventLoop::getEventMultiplexer Node1 - -core::EventLoop::getEvent -Multiplexer + +core::EventLoop::getEvent +Multiplexer @@ -22,10 +22,10 @@ Node2 - -core::eventreceiver -::AcceptEventReceiver -::AcceptEventReceiver + +core::eventreceiver +::AcceptEventReceiver +::AcceptEventReceiver @@ -33,8 +33,8 @@ Node1->Node2 - - + + @@ -42,10 +42,10 @@ Node3 - -core::eventreceiver -::ConnectEventReceiver -::ConnectEventReceiver + +core::eventreceiver +::ConnectEventReceiver +::ConnectEventReceiver @@ -53,8 +53,8 @@ Node1->Node3 - - + + @@ -62,8 +62,8 @@ Node4 - -core::Event::Event + +core::Event::Event @@ -71,88 +71,88 @@ Node1->Node4 - - + + - - -Node59 - - -core::eventreceiver -::ExceptionalConditionEvent -Receiver::ExceptionalConditionEvent -Receiver + + +Node63 + + +core::eventreceiver +::ExceptionalConditionEvent +Receiver::ExceptionalConditionEvent +Receiver - - -Node1->Node59 - - - + + +Node1->Node63 + + + - - -Node60 - - -core::eventreceiver -::ReadEventReceiver -::ReadEventReceiver + + +Node64 + + +core::eventreceiver +::ReadEventReceiver +::ReadEventReceiver - - -Node1->Node60 - - - + + +Node1->Node64 + + + - - -Node70 - - -core::eventreceiver -::WriteEventReceiver -::WriteEventReceiver + + +Node74 + + +core::eventreceiver +::WriteEventReceiver +::WriteEventReceiver - - -Node1->Node70 - - - + + +Node1->Node74 + + + - - -Node83 - - -core::TimerEventReceiver -::TimerEventReceiver + + +Node87 + + +core::TimerEventReceiver +::TimerEventReceiver - - -Node1->Node83 - - - + + +Node1->Node87 + + + @@ -160,9 +160,9 @@ Node5 - -core::EventReceiver -::EventReceiver + +core::EventReceiver +::EventReceiver @@ -170,8 +170,8 @@ Node4->Node5 - - + + @@ -179,9 +179,9 @@ Node6 - -core::EventReceiver -::atNextTick + +core::EventReceiver +::atNextTick @@ -189,94 +189,94 @@ Node5->Node6 - - + + - - -Node58 - - -core::DescriptorEventReceiver -::DescriptorEventReceiver + + +Node62 + + +core::DescriptorEventReceiver +::DescriptorEventReceiver - - -Node5->Node58 - - - + + +Node5->Node62 + + + - - -Node73 - - -core::file::FileReader -::FileReader + + +Node77 + + +core::file::FileReader +::FileReader - - -Node5->Node73 - - - + + +Node5->Node77 + + + - - -Node81 - - -database::mariadb:: -MariaDBCommandStartEvent -::MariaDBCommandStartEvent + + +Node85 + + +database::mariadb:: +MariaDBCommandStartEvent +::MariaDBCommandStartEvent - - -Node5->Node81 - - - + + +Node5->Node85 + + + - - -Node82 - - -iot::mqtt::OnReceivedFrom -PeerEvent::OnReceivedFromPeerEvent + + +Node86 + + +iot::mqtt::OnReceivedFrom +PeerEvent::OnReceivedFromPeerEvent - - -Node5->Node82 - - - + + +Node5->Node86 + + + - - -Node5->Node83 - - - + + +Node5->Node87 + + + @@ -284,9 +284,9 @@ Node7 - -web::http::client:: -SocketContext::initiateRequest + +web::http::client:: +SocketContext::initiateRequest @@ -294,8 +294,8 @@ Node6->Node7 - - + + @@ -303,113 +303,132 @@ Node8 - -web::http::client:: -SocketContext::requestDelivered + +web::http::client:: +SocketContext::requestDelivered - + Node6->Node8 - - - + + + - - -Node19 - - -web::http::server:: -SocketContext::requestCompleted + + +Node20 + + +web::http::client:: +SocketContext::responseDelivered - - -Node6->Node19 - - - + + +Node6->Node20 + + + - - -Node54 - - -core::socket::stream -::SocketAcceptor::SocketAcceptor + + +Node23 + + +web::http::server:: +SocketContext::requestCompleted - - -Node6->Node54 - - - + + +Node6->Node23 + + + - - -Node55 - - -core::socket::stream -::SocketAcceptor::SocketAcceptor + + +Node58 + + +core::socket::stream +::SocketAcceptor::SocketAcceptor - - -Node6->Node55 - - - + + +Node6->Node58 + + + - - -Node56 - - -core::socket::stream -::SocketConnector::SocketConnector + + +Node59 + + +core::socket::stream +::SocketAcceptor::SocketAcceptor - - -Node6->Node56 - - - + + +Node6->Node59 + + + - - -Node57 - - -core::socket::stream -::SocketConnector::SocketConnector + + +Node60 + + +core::socket::stream +::SocketConnector::SocketConnector - - -Node6->Node57 - - - + + +Node6->Node60 + + + + + + + + +Node61 + + +core::socket::stream +::SocketConnector::SocketConnector + + + + + +Node6->Node61 + + + @@ -417,8 +436,8 @@ Node7->Node7 - - + + @@ -426,18 +445,18 @@ Node7->Node8 - - + + Node13 - - -web::http::client:: -SocketContext::requestPrepared + + +web::http::client:: +SocketContext::requestPrepared @@ -445,8 +464,17 @@ Node7->Node13 - - + + + + + + + +Node7->Node20 + + + @@ -454,9 +482,9 @@ Node9 - -web::http::client:: -Request::requestDelivered + +web::http::client:: +Request::requestDelivered @@ -464,8 +492,8 @@ Node8->Node9 - - + + @@ -473,9 +501,9 @@ Node10 - -web::http::client:: -Request::initiate + +web::http::client:: +Request::initiate @@ -483,8 +511,8 @@ Node9->Node10 - - + + @@ -492,9 +520,9 @@ Node11 - -web::http::client:: -Request::onSourceEof + +web::http::client:: +Request::onSourceEof @@ -502,8 +530,8 @@ Node9->Node11 - - + + @@ -511,9 +539,9 @@ Node12 - -web::http::client:: -Request::onSourceError + +web::http::client:: +Request::onSourceError @@ -521,8 +549,8 @@ Node9->Node12 - - + + @@ -530,18 +558,18 @@ Node10->Node7 - - + + Node14 - - -web::http::client:: -Request::end + + +web::http::client:: +Request::requestPrepared @@ -549,113 +577,113 @@ Node13->Node14 - - + + Node15 - - -web::http::client:: -Request::send + + +web::http::client:: +Request::end - - -Node13->Node15 - - - + + +Node14->Node15 + + + - - -Node17 - - -web::http::client:: -Request::sendFile + + +Node16 + + +web::http::client:: +Request::send - - -Node13->Node17 - - - + + +Node14->Node16 + + + Node18 - - -web::http::client:: -Request::upgrade + + +web::http::client:: +Request::sendFile - - -Node13->Node18 - - - + + +Node14->Node18 + + + - - -Node16 - - -web::http::client:: -Request::send + + +Node19 + + +web::http::client:: +Request::upgrade - - -Node15->Node16 - - - + + +Node14->Node19 + + + - - -Node20 - - -web::http::server:: -SocketContext::responseCompleted + + +Node17 + + +web::http::client:: +Request::send - - -Node19->Node20 - - - + + +Node16->Node17 + + + Node21 - - -web::http::server:: -Response::sendCompleted + + +web::http::client:: +SocketContext::deliverResponse @@ -663,18 +691,18 @@ Node20->Node21 - - + + Node22 - - -web::http::server:: -Response::onSourceEof + + +web::http::client:: +SocketContext::onDisconnected @@ -682,55 +710,37 @@ Node21->Node22 - - - - - - - -Node23 - - -web::http::server:: -Response::onSourceError - - - - - -Node21->Node23 - - - + + Node24 - - -web::http::server:: -Response::send + + +web::http::server:: +SocketContext::responseCompleted - - -Node21->Node24 - - - + + +Node23->Node24 + + + Node25 - - -express::Response::send + + +web::http::server:: +Response::sendCompleted @@ -738,112 +748,74 @@ Node24->Node25 - - + + Node26 - - -web::http::server:: -Response::send + + +web::http::server:: +Response::onSourceEof - - -Node24->Node26 - - - + + +Node25->Node26 + + + Node27 - - -web::http::server:: -Response::end + + +web::http::server:: +Response::onSourceError - - -Node26->Node27 - - - - - - - - -Node34 - - -express::Response::send - - - - - -Node26->Node34 - - - + + +Node25->Node27 + + + Node28 - - -express::Response::end - - - - - -Node27->Node28 - - - - - - - - -Node32 - - -web::http::server:: -Response::upgrade + + +web::http::server:: +Response::send - - -Node27->Node32 - - - + + +Node25->Node28 + + + Node29 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +express::Response::send @@ -851,39 +823,37 @@ Node28->Node29 - - + + Node30 - - -express::middleware -::StaticMiddleware:: -instance + + +web::http::server:: +Response::send - - -Node29->Node30 - - - + + +Node28->Node30 + + + Node31 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +web::http::server:: +Response::end @@ -891,162 +861,151 @@ Node30->Node31 - - + + - - -Node33 - - -express::Response:: -upgrade + + +Node38 + + +express::Response::send - - -Node32->Node33 - - - + + +Node30->Node38 + + + - - -Node35 - - -express::Response::json + + +Node32 + + +express::Response::end - - -Node34->Node35 - - - + + +Node31->Node32 + + + Node36 - - -express::Response:: -sendStatus - - - - - -Node34->Node36 - - - + + +web::http::server:: +Response::upgrade - - -Node36->Node29 - - - + + +Node31->Node36 + + + - - -Node37 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +Node33 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node36->Node37 - - - + + +Node32->Node33 + + + - - -Node40 - - -express::RootRoute -::dispatch + + +Node34 + + +express::middleware +::StaticMiddleware:: +instance - - -Node36->Node40 - - - + + +Node33->Node34 + + + - - -Node52 - - -express::Response:: -redirect + + +Node35 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node36->Node52 - - - + + +Node34->Node35 + + + - - -Node38 - - -express::middleware -::BasicAuthentication -::instance + + +Node37 + + +express::Response:: +upgrade - - -Node37->Node38 - - - + + +Node36->Node37 + + + Node39 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +express::Response::json @@ -1054,18 +1013,47 @@ Node38->Node39 - - + + + + + + + +Node40 + + +express::Response:: +sendStatus + + + + + +Node38->Node40 + + + + + + + + +Node40->Node33 + + + Node41 - - -express::RootRoute -::dispatch + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -1073,36 +1061,77 @@ Node40->Node41 - - + + + + + + + +Node44 + + +express::RootRoute +::dispatch + + + + + +Node40->Node44 + + + + + + + + +Node56 + + +express::Response:: +redirect + + + + + +Node40->Node56 + + + Node42 - - -express::Controller -::next + + +express::middleware +::BasicAuthentication +::instance - - -Node40->Node42 - - - + + +Node41->Node42 + + + Node43 - - -express::Next::operator() + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -1110,822 +1139,813 @@ Node42->Node43 - - + + - - -Node43->Node29 - - - + + +Node45 + + +express::RootRoute +::dispatch - - -Node43->Node37 - - - + + +Node44->Node45 + + + - - -Node44 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node46 + + +express::Controller +::next - - -Node43->Node44 - - - + + +Node44->Node46 + + + Node47 - - -express::middleware -::VerboseRequest::VerboseRequest + + +express::Next::operator() - - -Node43->Node47 - - - + + +Node46->Node47 + + + - - -Node49 - - -express::middleware -::VHost::VHost + + +Node47->Node33 + + + - - -Node43->Node49 - - - + + +Node47->Node41 + + + - - -Node45 - - -express::middleware -::JsonMiddleware::instance + + +Node48 + + +express::middleware +::JsonMiddleware::JsonMiddleware - - -Node44->Node45 - - - + + +Node47->Node48 + + + - - -Node46 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node51 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node45->Node46 - - - + + +Node47->Node51 + + + - - -Node48 - - -express::middleware -::VerboseRequest::VerboseRequest + + +Node53 + + +express::middleware +::VHost::VHost - - -Node47->Node48 - - - + + +Node47->Node53 + + + + + + + + +Node49 + + +express::middleware +::JsonMiddleware::instance + + + + + +Node48->Node49 + + + Node50 - - -express::middleware -::VHost::instance + + +express::middleware +::JsonMiddleware::JsonMiddleware - + Node49->Node50 - - - + + + - - -Node51 - - -express::middleware -::VHost::VHost + + +Node52 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node50->Node51 - - - + + +Node51->Node52 + + + - - -Node52->Node29 - - - + + +Node54 + + +express::middleware +::VHost::instance - - -Node53 - - -express::Response:: -redirect + + +Node53->Node54 + + + - - -Node52->Node53 - - - + + +Node55 + + +express::middleware +::VHost::VHost - - -Node58->Node2 - - - + + +Node54->Node55 + + + - - -Node58->Node3 - - - + + +Node56->Node33 + + + - - -Node58->Node59 - - - + + +Node57 + + +express::Response:: +redirect - - -Node58->Node60 - - - + + +Node56->Node57 + + + - - -Node58->Node70 - - - + + +Node62->Node2 + + + - - -Node61 - - -core::pipe::PipeSink -::PipeSink + + +Node62->Node3 + + + - - -Node60->Node61 - - - + + +Node62->Node63 + + + - - -Node63 - - -core::socket::stream -::SocketReader::SocketReader + + +Node62->Node64 + + + - - -Node60->Node63 - - - + + +Node62->Node74 + + + - - -Node64 - - -core::socket::stream -::tls::TLSHandshake:: -TLSHandshake + + +Node65 + + +core::pipe::PipeSink +::PipeSink - - -Node60->Node64 - - - + + +Node64->Node65 + + + Node67 - - -core::socket::stream -::tls::TLSShutdown::TLSShutdown + + +core::socket::stream +::SocketReader::SocketReader - - -Node60->Node67 - - - + + +Node64->Node67 + + + - - -Node62 - - -core::pipe::Pipe::Pipe + + +Node68 + + +core::socket::stream +::tls::TLSHandshake:: +TLSHandshake - - -Node61->Node62 - - - + + +Node64->Node68 + + + - - -Node65 - - -core::socket::stream -::tls::TLSHandshake:: -doHandshake + + +Node71 + + +core::socket::stream +::tls::TLSShutdown::TLSShutdown - - -Node64->Node65 - - - + + +Node64->Node71 + + + Node66 - - -core::socket::stream -::tls::SocketConnection -::doSSLHandshake + + +core::pipe::Pipe::Pipe - + Node65->Node66 - - - - - - - - -Node68 - - -core::socket::stream -::tls::TLSShutdown::doShutdown - - - - - -Node67->Node68 - - - + + + Node69 - - -core::socket::stream -::tls::SocketConnection -::doSSLShutdown + + +core::socket::stream +::tls::TLSHandshake:: +doHandshake - + Node68->Node69 - - - - - - - - -Node70->Node64 - - - + + + - - -Node70->Node67 - - - - - - - - -Node71 - - -core::pipe::PipeSource -::PipeSource + + +Node70 + + +core::socket::stream +::tls::SocketConnection +::doSSLHandshake - - -Node70->Node71 - - - + + +Node69->Node70 + + + Node72 - - -core::socket::stream -::SocketWriter::SocketWriter + + +core::socket::stream +::tls::TLSShutdown::doShutdown - - -Node70->Node72 - - - + + +Node71->Node72 + + + - - -Node71->Node62 - - - + + +Node73 + + +core::socket::stream +::tls::SocketConnection +::doSSLShutdown - - -Node74 - - -core::file::FileReader -::open + + +Node72->Node73 + + + + + + + + +Node74->Node68 + + + - - -Node73->Node74 - - - + + +Node74->Node71 + + + Node75 - - -web::http::client:: -Request::executeSendFile + + +core::pipe::PipeSource +::PipeSource - + Node74->Node75 - - - - - - - - -Node77 - - -web::http::server:: -Response::sendFile - - - - - -Node74->Node77 - - - + + + Node76 - - -web::http::client:: -commands::SendFileCommand -::execute + + +core::socket::stream +::SocketWriter::SocketWriter + + + + + +Node74->Node76 + + + - - -Node75->Node76 - - - + + +Node75->Node66 + + + Node78 - - -express::Response:: -sendFile + + +core::file::FileReader +::open - + Node77->Node78 - - - - - - - - -Node78->Node29 - - - + + + Node79 - - -express::Response:: -download + + +web::http::client:: +Request::executeSendFile - + Node78->Node79 - - - + + + + + + + + +Node81 + + +web::http::server:: +Response::sendFile + + + + + +Node78->Node81 + + + Node80 - - -express::Response:: -download + + +web::http::client:: +commands::SendFileCommand +::execute - + Node79->Node80 - - - + + + - - -Node84 - - -core::timer::IntervalTimer -::IntervalTimer + + +Node82 + + +express::Response:: +sendFile - - -Node83->Node84 - - - + + +Node81->Node82 + + + - - -Node88 - - -core::timer::IntervalTimer -Stopable::IntervalTimerStopable + + +Node82->Node33 + + + - - -Node83->Node88 - - - + + +Node83 + + +express::Response:: +download - - -Node90 - - -core::timer::SingleshotTimer -::SingleshotTimer + + +Node82->Node83 + + + - - -Node83->Node90 - - - + + +Node84 + + +express::Response:: +download - - -Node85 - - -core::timer::Timer -::intervalTimer + + +Node83->Node84 + + + - - -Node84->Node85 - - - + + +Node88 + + +core::timer::IntervalTimer +::IntervalTimer - - -Node86 - - -iot::mqtt::client:: -Mqtt::_onConnack + + +Node87->Node88 + + + - - -Node85->Node86 - - - + + +Node92 + + +core::timer::IntervalTimer +Stopable::IntervalTimerStopable - - -Node87 - - -iot::mqtt::client:: -packets::Connack::deliverPacket + + +Node87->Node92 + + + - - -Node86->Node87 - - - + + +Node94 + + +core::timer::SingleshotTimer +::SingleshotTimer + + + + + +Node87->Node94 + + + Node89 - - -core::timer::Timer -::intervalTimer + + +core::timer::Timer +::intervalTimer - + Node88->Node89 - - - + + + - - -Node91 - - -core::timer::Timer -::singleshotTimer - - - - - -Node90->Node91 - - - + + +Node90 + + +iot::mqtt::client:: +Mqtt::_onConnack - - -Node92 - - -iot::mqtt::Mqtt::initSession + + +Node89->Node90 + + + - - -Node91->Node92 - - - + + +Node91 + + +iot::mqtt::client:: +packets::Connack::deliverPacket - - -Node92->Node86 - - - + + +Node90->Node91 + + + Node93 - - -iot::mqtt::server:: -Mqtt::initSession + + +core::timer::Timer +::intervalTimer @@ -1933,37 +1953,18 @@ Node92->Node93 - - - - - - - -Node94 - - -iot::mqtt::server:: -Mqtt::_onConnect - - - - - -Node93->Node94 - - - + + Node95 - - -iot::mqtt::server:: -packets::Connect::deliverPacket + + +core::timer::Timer +::singleshotTimer @@ -1971,8 +1972,92 @@ Node94->Node95 - - + + + + + + + +Node96 + + +iot::mqtt::Mqtt::initSession + + + + + +Node95->Node96 + + + + + + + + +Node96->Node90 + + + + + + + + +Node97 + + +iot::mqtt::server:: +Mqtt::initSession + + + + + +Node96->Node97 + + + + + + + + +Node98 + + +iot::mqtt::server:: +Mqtt::_onConnect + + + + + +Node97->Node98 + + + + + + + + +Node99 + + +iot::mqtt::server:: +packets::Connect::deliverPacket + + + + + +Node98->Node99 + + + diff --git a/html/classcore_1_1EventLoop_a413d227511f68c2c9939719bd2590794_icgraph.map b/html/classcore_1_1EventLoop_a413d227511f68c2c9939719bd2590794_icgraph.map index c929ab376a..f75387d55a 100644 --- a/html/classcore_1_1EventLoop_a413d227511f68c2c9939719bd2590794_icgraph.map +++ b/html/classcore_1_1EventLoop_a413d227511f68c2c9939719bd2590794_icgraph.map @@ -1,229 +1,238 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/classcore_1_1EventLoop_a413d227511f68c2c9939719bd2590794_icgraph.md5 b/html/classcore_1_1EventLoop_a413d227511f68c2c9939719bd2590794_icgraph.md5 index 317f126576..677c782050 100644 --- a/html/classcore_1_1EventLoop_a413d227511f68c2c9939719bd2590794_icgraph.md5 +++ b/html/classcore_1_1EventLoop_a413d227511f68c2c9939719bd2590794_icgraph.md5 @@ -1 +1 @@ -1ab0f14c8146f9e288cae2694e53ccda \ No newline at end of file +115eb41071170ab722a796d086711127 \ No newline at end of file diff --git a/html/classcore_1_1EventLoop_a413d227511f68c2c9939719bd2590794_icgraph.svg b/html/classcore_1_1EventLoop_a413d227511f68c2c9939719bd2590794_icgraph.svg index 92c6c3569f..8c55cd7e46 100644 --- a/html/classcore_1_1EventLoop_a413d227511f68c2c9939719bd2590794_icgraph.svg +++ b/html/classcore_1_1EventLoop_a413d227511f68c2c9939719bd2590794_icgraph.svg @@ -4,16 +4,16 @@ - - + + core::EventLoop::instance Node1 - -core::EventLoop::instance + +core::EventLoop::instance @@ -21,10 +21,10 @@ Node2 - -core::eventreceiver -::AcceptEventReceiver -::AcceptEventReceiver + +core::eventreceiver +::AcceptEventReceiver +::AcceptEventReceiver @@ -32,8 +32,8 @@ Node1->Node2 - - + + @@ -41,10 +41,10 @@ Node3 - -core::eventreceiver -::ConnectEventReceiver -::ConnectEventReceiver + +core::eventreceiver +::ConnectEventReceiver +::ConnectEventReceiver @@ -52,8 +52,8 @@ Node1->Node3 - - + + @@ -61,8 +61,8 @@ Node4 - -core::Event::Event + +core::Event::Event @@ -70,142 +70,142 @@ Node1->Node4 - - + + - - -Node59 - - -core::eventreceiver -::ExceptionalConditionEvent -Receiver::ExceptionalConditionEvent -Receiver + + +Node63 + + +core::eventreceiver +::ExceptionalConditionEvent +Receiver::ExceptionalConditionEvent +Receiver - - -Node1->Node59 - - - + + +Node1->Node63 + + + - - -Node60 - - -core::eventreceiver -::ReadEventReceiver -::ReadEventReceiver + + +Node64 + + +core::eventreceiver +::ReadEventReceiver +::ReadEventReceiver - - -Node1->Node60 - - - + + +Node1->Node64 + + + - - -Node70 - - -core::eventreceiver -::WriteEventReceiver -::WriteEventReceiver + + +Node74 + + +core::eventreceiver +::WriteEventReceiver +::WriteEventReceiver - - -Node1->Node70 - - - + + +Node1->Node74 + + + - - -Node83 - - -core::TimerEventReceiver -::TimerEventReceiver + + +Node87 + + +core::TimerEventReceiver +::TimerEventReceiver - - -Node1->Node83 - - - + + +Node1->Node87 + + + - - -Node96 - - -core::EventLoop::free + + +Node100 + + +core::EventLoop::free - - -Node1->Node96 - - - + + +Node1->Node100 + + + - - -Node99 - - -core::EventLoop::start + + +Node103 + + +core::EventLoop::start - - -Node1->Node99 - - - + + +Node1->Node103 + + + - - -Node102 - - -core::EventLoop::tick + + +Node106 + + +core::EventLoop::tick - - -Node1->Node102 - - - + + +Node1->Node106 + + + @@ -213,9 +213,9 @@ Node5 - -core::EventReceiver -::EventReceiver + +core::EventReceiver +::EventReceiver @@ -223,8 +223,8 @@ Node4->Node5 - - + + @@ -232,9 +232,9 @@ Node6 - -core::EventReceiver -::atNextTick + +core::EventReceiver +::atNextTick @@ -242,94 +242,94 @@ Node5->Node6 - - + + - - -Node58 - - -core::DescriptorEventReceiver -::DescriptorEventReceiver + + +Node62 + + +core::DescriptorEventReceiver +::DescriptorEventReceiver - - -Node5->Node58 - - - + + +Node5->Node62 + + + - - -Node73 - - -core::file::FileReader -::FileReader + + +Node77 + + +core::file::FileReader +::FileReader - - -Node5->Node73 - - - + + +Node5->Node77 + + + - - -Node81 - - -database::mariadb:: -MariaDBCommandStartEvent -::MariaDBCommandStartEvent + + +Node85 + + +database::mariadb:: +MariaDBCommandStartEvent +::MariaDBCommandStartEvent - - -Node5->Node81 - - - + + +Node5->Node85 + + + - - -Node82 - - -iot::mqtt::OnReceivedFrom -PeerEvent::OnReceivedFromPeerEvent + + +Node86 + + +iot::mqtt::OnReceivedFrom +PeerEvent::OnReceivedFromPeerEvent - - -Node5->Node82 - - - + + +Node5->Node86 + + + - - -Node5->Node83 - - - + + +Node5->Node87 + + + @@ -337,9 +337,9 @@ Node7 - -web::http::client:: -SocketContext::initiateRequest + +web::http::client:: +SocketContext::initiateRequest @@ -347,8 +347,8 @@ Node6->Node7 - - + + @@ -356,113 +356,132 @@ Node8 - -web::http::client:: -SocketContext::requestDelivered + +web::http::client:: +SocketContext::requestDelivered - + Node6->Node8 - - - + + + - - -Node19 - - -web::http::server:: -SocketContext::requestCompleted + + +Node20 + + +web::http::client:: +SocketContext::responseDelivered - - -Node6->Node19 - - - + + +Node6->Node20 + + + - - -Node54 - - -core::socket::stream -::SocketAcceptor::SocketAcceptor + + +Node23 + + +web::http::server:: +SocketContext::requestCompleted - - -Node6->Node54 - - - + + +Node6->Node23 + + + - - -Node55 - - -core::socket::stream -::SocketAcceptor::SocketAcceptor + + +Node58 + + +core::socket::stream +::SocketAcceptor::SocketAcceptor - - -Node6->Node55 - - - + + +Node6->Node58 + + + - - -Node56 - - -core::socket::stream -::SocketConnector::SocketConnector + + +Node59 + + +core::socket::stream +::SocketAcceptor::SocketAcceptor - - -Node6->Node56 - - - + + +Node6->Node59 + + + - - -Node57 - - -core::socket::stream -::SocketConnector::SocketConnector + + +Node60 + + +core::socket::stream +::SocketConnector::SocketConnector + + + + + +Node6->Node60 + + + - - -Node6->Node57 - - - + + +Node61 + + +core::socket::stream +::SocketConnector::SocketConnector + + + + + +Node6->Node61 + + + @@ -470,8 +489,8 @@ Node7->Node7 - - + + @@ -479,18 +498,18 @@ Node7->Node8 - - + + Node13 - - -web::http::client:: -SocketContext::requestPrepared + + +web::http::client:: +SocketContext::requestPrepared @@ -498,8 +517,17 @@ Node7->Node13 - - + + + + + + + +Node7->Node20 + + + @@ -507,9 +535,9 @@ Node9 - -web::http::client:: -Request::requestDelivered + +web::http::client:: +Request::requestDelivered @@ -517,8 +545,8 @@ Node8->Node9 - - + + @@ -526,9 +554,9 @@ Node10 - -web::http::client:: -Request::initiate + +web::http::client:: +Request::initiate @@ -536,8 +564,8 @@ Node9->Node10 - - + + @@ -545,9 +573,9 @@ Node11 - -web::http::client:: -Request::onSourceEof + +web::http::client:: +Request::onSourceEof @@ -555,8 +583,8 @@ Node9->Node11 - - + + @@ -564,9 +592,9 @@ Node12 - -web::http::client:: -Request::onSourceError + +web::http::client:: +Request::onSourceError @@ -574,8 +602,8 @@ Node9->Node12 - - + + @@ -583,18 +611,18 @@ Node10->Node7 - - + + Node14 - - -web::http::client:: -Request::end + + +web::http::client:: +Request::requestPrepared @@ -602,113 +630,113 @@ Node13->Node14 - - + + Node15 - - -web::http::client:: -Request::send + + +web::http::client:: +Request::end - - -Node13->Node15 - - - + + +Node14->Node15 + + + - - -Node17 - - -web::http::client:: -Request::sendFile + + +Node16 + + +web::http::client:: +Request::send - - -Node13->Node17 - - - + + +Node14->Node16 + + + Node18 - - -web::http::client:: -Request::upgrade + + +web::http::client:: +Request::sendFile - - -Node13->Node18 - - - + + +Node14->Node18 + + + - - -Node16 - - -web::http::client:: -Request::send + + +Node19 + + +web::http::client:: +Request::upgrade - - -Node15->Node16 - - - + + +Node14->Node19 + + + - - -Node20 - - -web::http::server:: -SocketContext::responseCompleted + + +Node17 + + +web::http::client:: +Request::send - - -Node19->Node20 - - - + + +Node16->Node17 + + + Node21 - - -web::http::server:: -Response::sendCompleted + + +web::http::client:: +SocketContext::deliverResponse @@ -716,18 +744,18 @@ Node20->Node21 - - + + Node22 - - -web::http::server:: -Response::onSourceEof + + +web::http::client:: +SocketContext::onDisconnected @@ -735,55 +763,37 @@ Node21->Node22 - - - - - - - -Node23 - - -web::http::server:: -Response::onSourceError - - - - - -Node21->Node23 - - - + + Node24 - - -web::http::server:: -Response::send + + +web::http::server:: +SocketContext::responseCompleted - - -Node21->Node24 - - - + + +Node23->Node24 + + + Node25 - - -express::Response::send + + +web::http::server:: +Response::sendCompleted @@ -791,112 +801,74 @@ Node24->Node25 - - + + Node26 - - -web::http::server:: -Response::send + + +web::http::server:: +Response::onSourceEof - - -Node24->Node26 - - - + + +Node25->Node26 + + + Node27 - - -web::http::server:: -Response::end - - - - - -Node26->Node27 - - - - - - - - -Node34 - - -express::Response::send + + +web::http::server:: +Response::onSourceError - - -Node26->Node34 - - - + + +Node25->Node27 + + + Node28 - - -express::Response::end - - - - - -Node27->Node28 - - - + + +web::http::server:: +Response::send - - -Node32 - - -web::http::server:: -Response::upgrade - - - - - -Node27->Node32 - - - + + +Node25->Node28 + + + Node29 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +express::Response::send @@ -904,39 +876,37 @@ Node28->Node29 - - + + Node30 - - -express::middleware -::StaticMiddleware:: -instance + + +web::http::server:: +Response::send - - -Node29->Node30 - - - + + +Node28->Node30 + + + Node31 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +web::http::server:: +Response::end @@ -944,162 +914,151 @@ Node30->Node31 - - + + - - -Node33 - - -express::Response:: -upgrade + + +Node38 + + +express::Response::send - - -Node32->Node33 - - - + + +Node30->Node38 + + + - - -Node35 - - -express::Response::json + + +Node32 + + +express::Response::end - - -Node34->Node35 - - - + + +Node31->Node32 + + + Node36 - - -express::Response:: -sendStatus - - - - - -Node34->Node36 - - - + + +web::http::server:: +Response::upgrade - - -Node36->Node29 - - - + + +Node31->Node36 + + + - - -Node37 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +Node33 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node36->Node37 - - - + + +Node32->Node33 + + + - - -Node40 - - -express::RootRoute -::dispatch + + +Node34 + + +express::middleware +::StaticMiddleware:: +instance - - -Node36->Node40 - - - + + +Node33->Node34 + + + - - -Node52 - - -express::Response:: -redirect + + +Node35 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node36->Node52 - - - + + +Node34->Node35 + + + - - -Node38 - - -express::middleware -::BasicAuthentication -::instance + + +Node37 + + +express::Response:: +upgrade - - -Node37->Node38 - - - + + +Node36->Node37 + + + Node39 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +express::Response::json @@ -1107,18 +1066,47 @@ Node38->Node39 - - + + + + + + + +Node40 + + +express::Response:: +sendStatus + + + + + +Node38->Node40 + + + + + + + + +Node40->Node33 + + + Node41 - - -express::RootRoute -::dispatch + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -1126,36 +1114,77 @@ Node40->Node41 - - + + + + + + + +Node44 + + +express::RootRoute +::dispatch + + + + + +Node40->Node44 + + + + + + + + +Node56 + + +express::Response:: +redirect + + + + + +Node40->Node56 + + + Node42 - - -express::Controller -::next + + +express::middleware +::BasicAuthentication +::instance - - -Node40->Node42 - - - + + +Node41->Node42 + + + Node43 - - -express::Next::operator() + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -1163,822 +1192,813 @@ Node42->Node43 - - + + - - -Node43->Node29 - - - + + +Node45 + + +express::RootRoute +::dispatch - - -Node43->Node37 - - - + + +Node44->Node45 + + + - - -Node44 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node46 + + +express::Controller +::next - - -Node43->Node44 - - - + + +Node44->Node46 + + + Node47 - - -express::middleware -::VerboseRequest::VerboseRequest + + +express::Next::operator() - - -Node43->Node47 - - - + + +Node46->Node47 + + + - - -Node49 - - -express::middleware -::VHost::VHost + + +Node47->Node33 + + + - - -Node43->Node49 - - - + + +Node47->Node41 + + + - - -Node45 - - -express::middleware -::JsonMiddleware::instance + + +Node48 + + +express::middleware +::JsonMiddleware::JsonMiddleware - - -Node44->Node45 - - - + + +Node47->Node48 + + + - - -Node46 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node51 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node45->Node46 - - - + + +Node47->Node51 + + + - - -Node48 - - -express::middleware -::VerboseRequest::VerboseRequest + + +Node53 + + +express::middleware +::VHost::VHost - - -Node47->Node48 - - - + + +Node47->Node53 + + + + + + + + +Node49 + + +express::middleware +::JsonMiddleware::instance + + + + + +Node48->Node49 + + + Node50 - - -express::middleware -::VHost::instance + + +express::middleware +::JsonMiddleware::JsonMiddleware - + Node49->Node50 - - - + + + - - -Node51 - - -express::middleware -::VHost::VHost + + +Node52 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node50->Node51 - - - + + +Node51->Node52 + + + - - -Node52->Node29 - - - + + +Node54 + + +express::middleware +::VHost::instance - - -Node53 - - -express::Response:: -redirect + + +Node53->Node54 + + + - - -Node52->Node53 - - - + + +Node55 + + +express::middleware +::VHost::VHost - - -Node58->Node2 - - - + + +Node54->Node55 + + + - - -Node58->Node3 - - - + + +Node56->Node33 + + + - - -Node58->Node59 - - - + + +Node57 + + +express::Response:: +redirect - - -Node58->Node60 - - - + + +Node56->Node57 + + + - - -Node58->Node70 - - - + + +Node62->Node2 + + + - - -Node61 - - -core::pipe::PipeSink -::PipeSink + + +Node62->Node3 + + + - - -Node60->Node61 - - - + + +Node62->Node63 + + + - - -Node63 - - -core::socket::stream -::SocketReader::SocketReader + + +Node62->Node64 + + + - - -Node60->Node63 - - - + + +Node62->Node74 + + + - - -Node64 - - -core::socket::stream -::tls::TLSHandshake:: -TLSHandshake + + +Node65 + + +core::pipe::PipeSink +::PipeSink - - -Node60->Node64 - - - + + +Node64->Node65 + + + Node67 - - -core::socket::stream -::tls::TLSShutdown::TLSShutdown + + +core::socket::stream +::SocketReader::SocketReader - - -Node60->Node67 - - - + + +Node64->Node67 + + + - - -Node62 - - -core::pipe::Pipe::Pipe + + +Node68 + + +core::socket::stream +::tls::TLSHandshake:: +TLSHandshake - - -Node61->Node62 - - - + + +Node64->Node68 + + + - - -Node65 - - -core::socket::stream -::tls::TLSHandshake:: -doHandshake + + +Node71 + + +core::socket::stream +::tls::TLSShutdown::TLSShutdown - - -Node64->Node65 - - - + + +Node64->Node71 + + + Node66 - - -core::socket::stream -::tls::SocketConnection -::doSSLHandshake + + +core::pipe::Pipe::Pipe - + Node65->Node66 - - - - - - - - -Node68 - - -core::socket::stream -::tls::TLSShutdown::doShutdown - - - - - -Node67->Node68 - - - + + + Node69 - - -core::socket::stream -::tls::SocketConnection -::doSSLShutdown + + +core::socket::stream +::tls::TLSHandshake:: +doHandshake - + Node68->Node69 - - - - - - - - -Node70->Node64 - - - - - - - - -Node70->Node67 - - - + + + - - -Node71 - - -core::pipe::PipeSource -::PipeSource + + +Node70 + + +core::socket::stream +::tls::SocketConnection +::doSSLHandshake - - -Node70->Node71 - - - + + +Node69->Node70 + + + Node72 - - -core::socket::stream -::SocketWriter::SocketWriter + + +core::socket::stream +::tls::TLSShutdown::doShutdown - - -Node70->Node72 - - - + + +Node71->Node72 + + + - - -Node71->Node62 - - - + + +Node73 + + +core::socket::stream +::tls::SocketConnection +::doSSLShutdown - - -Node74 - - -core::file::FileReader -::open + + +Node72->Node73 + + + - - -Node73->Node74 - - - + + +Node74->Node68 + + + + + + + + +Node74->Node71 + + + Node75 - - -web::http::client:: -Request::executeSendFile + + +core::pipe::PipeSource +::PipeSource - + Node74->Node75 - - - - - - - - -Node77 - - -web::http::server:: -Response::sendFile - - - - - -Node74->Node77 - - - + + + Node76 - - -web::http::client:: -commands::SendFileCommand -::execute + + +core::socket::stream +::SocketWriter::SocketWriter + + + + + +Node74->Node76 + + + - - -Node75->Node76 - - - + + +Node75->Node66 + + + Node78 - - -express::Response:: -sendFile + + +core::file::FileReader +::open - + Node77->Node78 - - - - - - - - -Node78->Node29 - - - + + + Node79 - - -express::Response:: -download + + +web::http::client:: +Request::executeSendFile - + Node78->Node79 - - - + + + + + + + + +Node81 + + +web::http::server:: +Response::sendFile + + + + + +Node78->Node81 + + + Node80 - - -express::Response:: -download + + +web::http::client:: +commands::SendFileCommand +::execute - + Node79->Node80 - - - + + + - - -Node84 - - -core::timer::IntervalTimer -::IntervalTimer + + +Node82 + + +express::Response:: +sendFile - - -Node83->Node84 - - - + + +Node81->Node82 + + + - - -Node88 - - -core::timer::IntervalTimer -Stopable::IntervalTimerStopable + + +Node82->Node33 + + + - - -Node83->Node88 - - - + + +Node83 + + +express::Response:: +download - - -Node90 - - -core::timer::SingleshotTimer -::SingleshotTimer + + +Node82->Node83 + + + - - -Node83->Node90 - - - + + +Node84 + + +express::Response:: +download - - -Node85 - - -core::timer::Timer -::intervalTimer + + +Node83->Node84 + + + + + + + + +Node88 + + +core::timer::IntervalTimer +::IntervalTimer - - -Node84->Node85 - - - + + +Node87->Node88 + + + - - -Node86 - - -iot::mqtt::client:: -Mqtt::_onConnack + + +Node92 + + +core::timer::IntervalTimer +Stopable::IntervalTimerStopable - - -Node85->Node86 - - - + + +Node87->Node92 + + + - - -Node87 - - -iot::mqtt::client:: -packets::Connack::deliverPacket + + +Node94 + + +core::timer::SingleshotTimer +::SingleshotTimer - - -Node86->Node87 - - - + + +Node87->Node94 + + + Node89 - - -core::timer::Timer -::intervalTimer + + +core::timer::Timer +::intervalTimer - + Node88->Node89 - - - + + + - - -Node91 - - -core::timer::Timer -::singleshotTimer - - - - - -Node90->Node91 - - - + + +Node90 + + +iot::mqtt::client:: +Mqtt::_onConnack - - -Node92 - - -iot::mqtt::Mqtt::initSession + + +Node89->Node90 + + + - - -Node91->Node92 - - - + + +Node91 + + +iot::mqtt::client:: +packets::Connack::deliverPacket - - -Node92->Node86 - - - + + +Node90->Node91 + + + Node93 - - -iot::mqtt::server:: -Mqtt::initSession + + +core::timer::Timer +::intervalTimer @@ -1986,37 +2006,18 @@ Node92->Node93 - - - - - - - -Node94 - - -iot::mqtt::server:: -Mqtt::_onConnect - - - - - -Node93->Node94 - - - + + Node95 - - -iot::mqtt::server:: -packets::Connect::deliverPacket + + +core::timer::Timer +::singleshotTimer @@ -2024,17 +2025,45 @@ Node94->Node95 - - + + + + + + + +Node96 + + +iot::mqtt::Mqtt::initSession + + + + + +Node95->Node96 + + + + + + + + +Node96->Node90 + + + Node97 - - -core::SNodeC::free + + +iot::mqtt::server:: +Mqtt::initSession @@ -2042,35 +2071,18 @@ Node96->Node97 - - - - - - - -Node96->Node99 - - - - - - - - -Node96->Node102 - - - + + Node98 - - -express::WebApp::free + + +iot::mqtt::server:: +Mqtt::_onConnect @@ -2078,80 +2090,153 @@ Node97->Node98 - - + + - - -Node100 - - -core::SNodeC::start + + +Node99 + + +iot::mqtt::server:: +packets::Connect::deliverPacket - - -Node99->Node100 - - - + + +Node98->Node99 + + + Node101 - - -express::WebApp::start + + +core::SNodeC::free - + Node100->Node101 - - - + + + - - -Node103 - - -core::SNodeC::tick + + +Node100->Node103 + + + + + + + + +Node100->Node106 + + + - - -Node102->Node103 - - - + + +Node102 + + +express::WebApp::free + + + + + +Node101->Node102 + + + Node104 - - -express::WebApp::tick + + +core::SNodeC::start - + Node103->Node104 - - - + + + + + + + + +Node105 + + +express::WebApp::start + + + + + +Node104->Node105 + + + + + + + + +Node107 + + +core::SNodeC::tick + + + + + +Node106->Node107 + + + + + + + + +Node108 + + +express::WebApp::tick + + + + + +Node107->Node108 + + + diff --git a/html/classcore_1_1EventMultiplexer-members.html b/html/classcore_1_1EventMultiplexer-members.html index 37d2f2c00a..331d7a4e84 100644 --- a/html/classcore_1_1EventMultiplexer-members.html +++ b/html/classcore_1_1EventMultiplexer-members.html @@ -129,7 +129,7 @@ diff --git a/html/classcore_1_1EventMultiplexer.html b/html/classcore_1_1EventMultiplexer.html index 4fc296f1dc..ec5a10e7ee 100644 --- a/html/classcore_1_1EventMultiplexer.html +++ b/html/classcore_1_1EventMultiplexer.html @@ -544,9 +544,9 @@

bool empty() const
utils::Timeval getNextTimeout(const utils::Timeval &currentTime)
- + -

References descriptorEventPublishers, core::EventMultiplexer::EventQueue::empty(), eventQueue, core::TimerEventPublisher::getNextTimeout(), core::DescriptorEventPublisher::getNextTimeout(), core::DescriptorEventReceiver::TIMEOUT::MAX, utils::Timeval::operator=(), timerEventPublisher, and utils::Timeval::Timeval().

+

References descriptorEventPublishers, core::EventMultiplexer::EventQueue::empty(), eventQueue, core::TimerEventPublisher::getNextTimeout(), core::DescriptorEventPublisher::getNextTimeout(), core::DescriptorEventReceiver::TIMEOUT::MAX, utils::Timeval::operator=(), timerEventPublisher, and utils::Timeval::Timeval().

Referenced by waitForEvents().

-
+
@@ -1314,7 +1314,7 @@

    - +
diff --git a/html/classcore_1_1EventMultiplexer_1_1EventQueue-members.html b/html/classcore_1_1EventMultiplexer_1_1EventQueue-members.html index d31f6e8478..7c65208b2c 100644 --- a/html/classcore_1_1EventMultiplexer_1_1EventQueue-members.html +++ b/html/classcore_1_1EventMultiplexer_1_1EventQueue-members.html @@ -113,7 +113,7 @@ diff --git a/html/classcore_1_1EventMultiplexer_1_1EventQueue.html b/html/classcore_1_1EventMultiplexer_1_1EventQueue.html index a5af96aff7..0cfad51f65 100644 --- a/html/classcore_1_1EventMultiplexer_1_1EventQueue.html +++ b/html/classcore_1_1EventMultiplexer_1_1EventQueue.html @@ -385,7 +385,7 @@

Here is the caller graph for this function:
-
+
@@ -537,7 +537,7 @@

diff --git a/html/classcore_1_1EventMultiplexer_1_1EventQueue_a009075f2f16a78d3bf8d9e3a20226336_icgraph.map b/html/classcore_1_1EventMultiplexer_1_1EventQueue_a009075f2f16a78d3bf8d9e3a20226336_icgraph.map index c8e19edfb4..722c536617 100644 --- a/html/classcore_1_1EventMultiplexer_1_1EventQueue_a009075f2f16a78d3bf8d9e3a20226336_icgraph.map +++ b/html/classcore_1_1EventMultiplexer_1_1EventQueue_a009075f2f16a78d3bf8d9e3a20226336_icgraph.map @@ -1,182 +1,191 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/classcore_1_1EventMultiplexer_1_1EventQueue_a009075f2f16a78d3bf8d9e3a20226336_icgraph.md5 b/html/classcore_1_1EventMultiplexer_1_1EventQueue_a009075f2f16a78d3bf8d9e3a20226336_icgraph.md5 index ed70c43f79..92a9e0d729 100644 --- a/html/classcore_1_1EventMultiplexer_1_1EventQueue_a009075f2f16a78d3bf8d9e3a20226336_icgraph.md5 +++ b/html/classcore_1_1EventMultiplexer_1_1EventQueue_a009075f2f16a78d3bf8d9e3a20226336_icgraph.md5 @@ -1 +1 @@ -32fda4bfbd1eb4fc880af8d010dd16fd \ No newline at end of file +633d283ef0f4c01a72da7c0fbb9ed70b \ No newline at end of file diff --git a/html/classcore_1_1EventMultiplexer_1_1EventQueue_a009075f2f16a78d3bf8d9e3a20226336_icgraph.svg b/html/classcore_1_1EventMultiplexer_1_1EventQueue_a009075f2f16a78d3bf8d9e3a20226336_icgraph.svg index ea871b4f77..5ab74b0a3f 100644 --- a/html/classcore_1_1EventMultiplexer_1_1EventQueue_a009075f2f16a78d3bf8d9e3a20226336_icgraph.svg +++ b/html/classcore_1_1EventMultiplexer_1_1EventQueue_a009075f2f16a78d3bf8d9e3a20226336_icgraph.svg @@ -4,17 +4,17 @@ - - + + core::EventMultiplexer::EventQueue::insert Node1 - -core::EventMultiplexer -::EventQueue::insert + +core::EventMultiplexer +::EventQueue::insert @@ -22,9 +22,9 @@ Node2 - -core::EventMultiplexer -::span + +core::EventMultiplexer +::span @@ -32,8 +32,8 @@ Node1->Node2 - - + + @@ -41,8 +41,8 @@ Node3 - -core::Event::span + +core::Event::span @@ -50,8 +50,8 @@ Node2->Node3 - - + + @@ -59,9 +59,9 @@ Node4 - -core::EventReceiver -::span + +core::EventReceiver +::span @@ -69,8 +69,8 @@ Node3->Node4 - - + + @@ -78,9 +78,9 @@ Node5 - -core::EventReceiver -::atNextTick + +core::EventReceiver +::atNextTick @@ -88,274 +88,274 @@ Node4->Node5 - - - - - - - -Node57 - - -database::mariadb:: -MariaDBConnection::checkStatus - - - - - -Node4->Node57 - - - - - - - - -Node59 - - -core::socket::stream -::SocketReader::doRead - - - - - -Node4->Node59 - - - + + Node61 - - -core::socket::stream -::SocketWriter::doWrite + + +database::mariadb:: +MariaDBConnection::checkStatus - + Node4->Node61 - - - + + + Node63 - - -database::mariadb:: -MariaDBConnection::execute_async + + +core::socket::stream +::SocketReader::doRead - + Node4->Node63 - - - + + + Node65 - - -core::file::FileReader -::onEvent + + +core::socket::stream +::SocketWriter::doWrite - + Node4->Node65 - - - - - - - - -Node66 - - -iot::mqtt::SubProtocol -::onMessageEnd - - - - - -Node4->Node66 - - - + + + Node67 - - -core::file::FileReader -::resume + + +database::mariadb:: +MariaDBConnection::execute_async - + Node4->Node67 - - - - - - - - -Node68 - - -core::epoll::DescriptorEvent -Publisher::spanActiveEvents - - - - - -Node4->Node68 - - - + + + Node69 - - -core::poll::DescriptorEvent -Publisher::spanActiveEvents + + +core::file::FileReader +::onEvent - + Node4->Node69 - - - + + + Node70 - - -core::select::Descriptor -EventPublisher::spanActiveEvents + + +iot::mqtt::SubProtocol +::onMessageEnd - + Node4->Node70 - - - + + + Node71 - - -core::TimerEventPublisher -::spanActiveEvents + + +core::file::FileReader +::resume - + Node4->Node71 - - - + + + - - -Node84 - - -core::file::FileReader -::start + + +Node72 + + +core::epoll::DescriptorEvent +Publisher::spanActiveEvents - - -Node4->Node84 - - - + + +Node4->Node72 + + + - - -Node85 - - -core::file::FileReader -::stop + + +Node73 + + +core::poll::DescriptorEvent +Publisher::spanActiveEvents - - -Node4->Node85 - - - + + +Node4->Node73 + + + - - -Node86 - - -iot::mqtt::SubProtocol -::SubProtocol + + +Node74 + + +core::select::Descriptor +EventPublisher::spanActiveEvents - - -Node4->Node86 - - - + + +Node4->Node74 + + + + + + + + +Node75 + + +core::TimerEventPublisher +::spanActiveEvents + + + + + +Node4->Node75 + + + + + + + + +Node88 + + +core::file::FileReader +::start + + + + + +Node4->Node88 + + + + + + + + +Node89 + + +core::file::FileReader +::stop + + + + + +Node4->Node89 + + + + + + + + +Node90 + + +iot::mqtt::SubProtocol +::SubProtocol + + + + + +Node4->Node90 + + + @@ -363,9 +363,9 @@ Node6 - -web::http::client:: -SocketContext::initiateRequest + +web::http::client:: +SocketContext::initiateRequest @@ -373,8 +373,8 @@ Node5->Node6 - - + + @@ -382,113 +382,132 @@ Node7 - -web::http::client:: -SocketContext::requestDelivered + +web::http::client:: +SocketContext::requestDelivered - + Node5->Node7 - - - + + + - - -Node18 - - -web::http::server:: -SocketContext::requestCompleted + + +Node19 + + +web::http::client:: +SocketContext::responseDelivered - - -Node5->Node18 - - - + + +Node5->Node19 + + + - - -Node53 - - -core::socket::stream -::SocketAcceptor::SocketAcceptor + + +Node22 + + +web::http::server:: +SocketContext::requestCompleted - - -Node5->Node53 - - - + + +Node5->Node22 + + + - - -Node54 - - -core::socket::stream -::SocketAcceptor::SocketAcceptor + + +Node57 + + +core::socket::stream +::SocketAcceptor::SocketAcceptor - - -Node5->Node54 - - - + + +Node5->Node57 + + + - - -Node55 - - -core::socket::stream -::SocketConnector::SocketConnector + + +Node58 + + +core::socket::stream +::SocketAcceptor::SocketAcceptor - - -Node5->Node55 - - - + + +Node5->Node58 + + + - - -Node56 - - -core::socket::stream -::SocketConnector::SocketConnector + + +Node59 + + +core::socket::stream +::SocketConnector::SocketConnector + + + + + +Node5->Node59 + + + + + + + + +Node60 + + +core::socket::stream +::SocketConnector::SocketConnector - - -Node5->Node56 - - - + + +Node5->Node60 + + + @@ -496,8 +515,8 @@ Node6->Node6 - - + + @@ -505,18 +524,18 @@ Node6->Node7 - - + + Node12 - - -web::http::client:: -SocketContext::requestPrepared + + +web::http::client:: +SocketContext::requestPrepared @@ -524,8 +543,17 @@ Node6->Node12 - - + + + + + + + +Node6->Node19 + + + @@ -533,9 +561,9 @@ Node8 - -web::http::client:: -Request::requestDelivered + +web::http::client:: +Request::requestDelivered @@ -543,8 +571,8 @@ Node7->Node8 - - + + @@ -552,9 +580,9 @@ Node9 - -web::http::client:: -Request::initiate + +web::http::client:: +Request::initiate @@ -562,8 +590,8 @@ Node8->Node9 - - + + @@ -571,9 +599,9 @@ Node10 - -web::http::client:: -Request::onSourceEof + +web::http::client:: +Request::onSourceEof @@ -581,8 +609,8 @@ Node8->Node10 - - + + @@ -590,9 +618,9 @@ Node11 - -web::http::client:: -Request::onSourceError + +web::http::client:: +Request::onSourceError @@ -600,8 +628,8 @@ Node8->Node11 - - + + @@ -609,18 +637,18 @@ Node9->Node6 - - + + Node13 - - -web::http::client:: -Request::end + + +web::http::client:: +Request::requestPrepared @@ -628,113 +656,113 @@ Node12->Node13 - - + + Node14 - - -web::http::client:: -Request::send + + +web::http::client:: +Request::end - - -Node12->Node14 - - - + + +Node13->Node14 + + + - - -Node16 - - -web::http::client:: -Request::sendFile + + +Node15 + + +web::http::client:: +Request::send - - -Node12->Node16 - - - + + +Node13->Node15 + + + Node17 - - -web::http::client:: -Request::upgrade + + +web::http::client:: +Request::sendFile - - -Node12->Node17 - - - + + +Node13->Node17 + + + - - -Node15 - - -web::http::client:: -Request::send + + +Node18 + + +web::http::client:: +Request::upgrade - - -Node14->Node15 - - - + + +Node13->Node18 + + + - - -Node19 - - -web::http::server:: -SocketContext::responseCompleted + + +Node16 + + +web::http::client:: +Request::send - - -Node18->Node19 - - - + + +Node15->Node16 + + + Node20 - - -web::http::server:: -Response::sendCompleted + + +web::http::client:: +SocketContext::deliverResponse @@ -742,18 +770,18 @@ Node19->Node20 - - + + Node21 - - -web::http::server:: -Response::onSourceEof + + +web::http::client:: +SocketContext::onDisconnected @@ -761,55 +789,37 @@ Node20->Node21 - - - - - - - -Node22 - - -web::http::server:: -Response::onSourceError - - - - - -Node20->Node22 - - - + + Node23 - - -web::http::server:: -Response::send + + +web::http::server:: +SocketContext::responseCompleted - - -Node20->Node23 - - - + + +Node22->Node23 + + + Node24 - - -express::Response::send + + +web::http::server:: +Response::sendCompleted @@ -817,112 +827,74 @@ Node23->Node24 - - + + Node25 - - -web::http::server:: -Response::send + + +web::http::server:: +Response::onSourceEof - - -Node23->Node25 - - - + + +Node24->Node25 + + + Node26 - - -web::http::server:: -Response::end + + +web::http::server:: +Response::onSourceError - - -Node25->Node26 - - - - - - - - -Node33 - - -express::Response::send - - - - - -Node25->Node33 - - - + + +Node24->Node26 + + + Node27 - - -express::Response::end - - - - - -Node26->Node27 - - - - - - - - -Node31 - - -web::http::server:: -Response::upgrade + + +web::http::server:: +Response::send - - -Node26->Node31 - - - + + +Node24->Node27 + + + Node28 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +express::Response::send @@ -930,39 +902,37 @@ Node27->Node28 - - + + Node29 - - -express::middleware -::StaticMiddleware:: -instance + + +web::http::server:: +Response::send - - -Node28->Node29 - - - + + +Node27->Node29 + + + Node30 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +web::http::server:: +Response::end @@ -970,162 +940,151 @@ Node29->Node30 - - + + - - -Node32 - - -express::Response:: -upgrade + + +Node37 + + +express::Response::send - - -Node31->Node32 - - - + + +Node29->Node37 + + + - - -Node34 - - -express::Response::json + + +Node31 + + +express::Response::end - - -Node33->Node34 - - - + + +Node30->Node31 + + + Node35 - - -express::Response:: -sendStatus - - - - - -Node33->Node35 - - - + + +web::http::server:: +Response::upgrade - - -Node35->Node28 - - - + + +Node30->Node35 + + + - - -Node36 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +Node32 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node35->Node36 - - - + + +Node31->Node32 + + + - - -Node39 - - -express::RootRoute -::dispatch + + +Node33 + + +express::middleware +::StaticMiddleware:: +instance - - -Node35->Node39 - - - + + +Node32->Node33 + + + - - -Node51 - - -express::Response:: -redirect + + +Node34 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node35->Node51 - - - + + +Node33->Node34 + + + - - -Node37 - - -express::middleware -::BasicAuthentication -::instance + + +Node36 + + +express::Response:: +upgrade - - -Node36->Node37 - - - + + +Node35->Node36 + + + Node38 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +express::Response::json @@ -1133,18 +1092,47 @@ Node37->Node38 - - + + + + + + + +Node39 + + +express::Response:: +sendStatus + + + + + +Node37->Node39 + + + + + + + + +Node39->Node32 + + + Node40 - - -express::RootRoute -::dispatch + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -1152,36 +1140,77 @@ Node39->Node40 - - + + + + + + + +Node43 + + +express::RootRoute +::dispatch + + + + + +Node39->Node43 + + + + + + + + +Node55 + + +express::Response:: +redirect + + + + + +Node39->Node55 + + + Node41 - - -express::Controller -::next + + +express::middleware +::BasicAuthentication +::instance - - -Node39->Node41 - - - + + +Node40->Node41 + + + Node42 - - -express::Next::operator() + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -1189,517 +1218,573 @@ Node41->Node42 - - + + - - -Node42->Node28 - - - + + +Node44 + + +express::RootRoute +::dispatch - - -Node42->Node36 - - - + + +Node43->Node44 + + + - - -Node43 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node45 + + +express::Controller +::next - - -Node42->Node43 - - - + + +Node43->Node45 + + + Node46 - - -express::middleware -::VerboseRequest::VerboseRequest + + +express::Next::operator() - - -Node42->Node46 - - - + + +Node45->Node46 + + + - - -Node48 - - -express::middleware -::VHost::VHost + + +Node46->Node32 + + + - - -Node42->Node48 - - - + + +Node46->Node40 + + + - - -Node44 - - -express::middleware -::JsonMiddleware::instance + + +Node47 + + +express::middleware +::JsonMiddleware::JsonMiddleware - - -Node43->Node44 - - - + + +Node46->Node47 + + + - - -Node45 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node50 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node44->Node45 - - - + + +Node46->Node50 + + + - - -Node47 - - -express::middleware -::VerboseRequest::VerboseRequest + + +Node52 + + +express::middleware +::VHost::VHost - - -Node46->Node47 - - - + + +Node46->Node52 + + + + + + + + +Node48 + + +express::middleware +::JsonMiddleware::instance + + + + + +Node47->Node48 + + + Node49 - - -express::middleware -::VHost::instance + + +express::middleware +::JsonMiddleware::JsonMiddleware - + Node48->Node49 - - - + + + - - -Node50 - - -express::middleware -::VHost::VHost + + +Node51 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node49->Node50 - - - + + +Node50->Node51 + + + - - -Node51->Node28 - - - + + +Node53 + + +express::middleware +::VHost::instance - - -Node52 - - -express::Response:: -redirect + + +Node52->Node53 + + + - - -Node51->Node52 - - - + + +Node54 + + +express::middleware +::VHost::VHost - - -Node58 - - -database::mariadb:: -MariaDBConnection::command -Continue + + +Node53->Node54 + + + - - -Node57->Node58 - - - + + +Node55->Node32 + + + - - -Node60 - - -core::socket::stream -::SocketReader::readEvent + + +Node56 + + +express::Response:: +redirect - - -Node59->Node60 - - - + + +Node55->Node56 + + + Node62 - - -core::socket::stream -::SocketWriter::writeEvent + + +database::mariadb:: +MariaDBConnection::command +Continue - + Node61->Node62 - - - + + + Node64 - - -database::mariadb:: -MariaDBClient::execute_async + + +core::socket::stream +::SocketReader::readEvent - + Node63->Node64 - - - + + + - - -Node72 - - -core::EventMultiplexer -::spanActiveEvents + + +Node66 + + +core::socket::stream +::SocketWriter::writeEvent - - -Node71->Node72 - - - + + +Node65->Node66 + + + - - -Node73 - - -core::EventMultiplexer -::tick + + +Node68 + + +database::mariadb:: +MariaDBClient::execute_async - - -Node72->Node73 - - - + + +Node67->Node68 + + + - - -Node74 - - -core::EventLoop::_tick + + +Node76 + + +core::EventMultiplexer +::spanActiveEvents - - -Node73->Node74 - - - + + +Node75->Node76 + + + - - -Node75 - - -core::EventLoop::free + + +Node77 + + +core::EventMultiplexer +::tick - - -Node74->Node75 - - - + + +Node76->Node77 + + + Node78 - + + +core::EventLoop::_tick + + + + + +Node77->Node78 + + + + + + + + +Node79 + + +core::EventLoop::free + + + + + +Node78->Node79 + + + + + + + + +Node82 + core::EventLoop::start - - -Node74->Node78 - - - + + +Node78->Node82 + + + - - -Node81 - + + +Node85 + core::EventLoop::tick - - -Node74->Node81 - - - + + +Node78->Node85 + + + - - -Node76 - + + +Node80 + core::SNodeC::free - - -Node75->Node76 - - - + + +Node79->Node80 + + + - - -Node75->Node78 - - - + + +Node79->Node82 + + + - - -Node75->Node81 - - - + + +Node79->Node85 + + + - - -Node77 - + + +Node81 + express::WebApp::free - - -Node76->Node77 - + + +Node80->Node81 + - - -Node79 - + + +Node83 + core::SNodeC::start - - -Node78->Node79 - + + +Node82->Node83 + - - -Node80 - + + +Node84 + express::WebApp::start - - -Node79->Node80 - + + +Node83->Node84 + - - -Node82 - + + +Node86 + core::SNodeC::tick - - -Node81->Node82 - + + +Node85->Node86 + - - -Node83 - + + +Node87 + express::WebApp::tick - - -Node82->Node83 - + + +Node86->Node87 + diff --git a/html/classcore_1_1EventMultiplexer_a61d96e95daaebfe6c3b980a2a847bb21_icgraph.map b/html/classcore_1_1EventMultiplexer_a61d96e95daaebfe6c3b980a2a847bb21_icgraph.map index cdac1cbb21..8ab7375869 100644 --- a/html/classcore_1_1EventMultiplexer_a61d96e95daaebfe6c3b980a2a847bb21_icgraph.map +++ b/html/classcore_1_1EventMultiplexer_a61d96e95daaebfe6c3b980a2a847bb21_icgraph.map @@ -1,180 +1,189 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/classcore_1_1EventMultiplexer_a61d96e95daaebfe6c3b980a2a847bb21_icgraph.md5 b/html/classcore_1_1EventMultiplexer_a61d96e95daaebfe6c3b980a2a847bb21_icgraph.md5 index d6f9aa1541..692df2ca57 100644 --- a/html/classcore_1_1EventMultiplexer_a61d96e95daaebfe6c3b980a2a847bb21_icgraph.md5 +++ b/html/classcore_1_1EventMultiplexer_a61d96e95daaebfe6c3b980a2a847bb21_icgraph.md5 @@ -1 +1 @@ -5e95118dce64d5131672abcc9631161f \ No newline at end of file +3e34f01bad9230cd39aaff02ce48393d \ No newline at end of file diff --git a/html/classcore_1_1EventMultiplexer_a61d96e95daaebfe6c3b980a2a847bb21_icgraph.svg b/html/classcore_1_1EventMultiplexer_a61d96e95daaebfe6c3b980a2a847bb21_icgraph.svg index 7ffa4a6af0..3530b16e8a 100644 --- a/html/classcore_1_1EventMultiplexer_a61d96e95daaebfe6c3b980a2a847bb21_icgraph.svg +++ b/html/classcore_1_1EventMultiplexer_a61d96e95daaebfe6c3b980a2a847bb21_icgraph.svg @@ -4,17 +4,17 @@ - - + + core::EventMultiplexer::span Node1 - -core::EventMultiplexer -::span + +core::EventMultiplexer +::span @@ -22,8 +22,8 @@ Node2 - -core::Event::span + +core::Event::span @@ -31,8 +31,8 @@ Node1->Node2 - - + + @@ -40,9 +40,9 @@ Node3 - -core::EventReceiver -::span + +core::EventReceiver +::span @@ -50,8 +50,8 @@ Node2->Node3 - - + + @@ -59,9 +59,9 @@ Node4 - -core::EventReceiver -::atNextTick + +core::EventReceiver +::atNextTick @@ -69,274 +69,274 @@ Node3->Node4 - - - - - - - -Node56 - - -database::mariadb:: -MariaDBConnection::checkStatus - - - - - -Node3->Node56 - - - - - - - - -Node58 - - -core::socket::stream -::SocketReader::doRead - - - - - -Node3->Node58 - - - + + Node60 - - -core::socket::stream -::SocketWriter::doWrite + + +database::mariadb:: +MariaDBConnection::checkStatus - + Node3->Node60 - - - + + + Node62 - - -database::mariadb:: -MariaDBConnection::execute_async + + +core::socket::stream +::SocketReader::doRead - + Node3->Node62 - - - + + + Node64 - - -core::file::FileReader -::onEvent + + +core::socket::stream +::SocketWriter::doWrite - + Node3->Node64 - - - - - - - - -Node65 - - -iot::mqtt::SubProtocol -::onMessageEnd - - - - - -Node3->Node65 - - - + + + Node66 - - -core::file::FileReader -::resume + + +database::mariadb:: +MariaDBConnection::execute_async - + Node3->Node66 - - - - - - - - -Node67 - - -core::epoll::DescriptorEvent -Publisher::spanActiveEvents - - - - - -Node3->Node67 - - - + + + Node68 - - -core::poll::DescriptorEvent -Publisher::spanActiveEvents + + +core::file::FileReader +::onEvent - + Node3->Node68 - - - + + + Node69 - - -core::select::Descriptor -EventPublisher::spanActiveEvents + + +iot::mqtt::SubProtocol +::onMessageEnd - + Node3->Node69 - - - + + + Node70 - - -core::TimerEventPublisher -::spanActiveEvents + + +core::file::FileReader +::resume - + Node3->Node70 - - - + + + - - -Node83 - - -core::file::FileReader -::start + + +Node71 + + +core::epoll::DescriptorEvent +Publisher::spanActiveEvents - - -Node3->Node83 - - - + + +Node3->Node71 + + + - - -Node84 - - -core::file::FileReader -::stop + + +Node72 + + +core::poll::DescriptorEvent +Publisher::spanActiveEvents - - -Node3->Node84 - - - + + +Node3->Node72 + + + - - -Node85 - - -iot::mqtt::SubProtocol -::SubProtocol + + +Node73 + + +core::select::Descriptor +EventPublisher::spanActiveEvents - - -Node3->Node85 - - - + + +Node3->Node73 + + + + + + + + +Node74 + + +core::TimerEventPublisher +::spanActiveEvents + + + + + +Node3->Node74 + + + + + + + + +Node87 + + +core::file::FileReader +::start + + + + + +Node3->Node87 + + + + + + + + +Node88 + + +core::file::FileReader +::stop + + + + + +Node3->Node88 + + + + + + + + +Node89 + + +iot::mqtt::SubProtocol +::SubProtocol + + + + + +Node3->Node89 + + + @@ -344,9 +344,9 @@ Node5 - -web::http::client:: -SocketContext::initiateRequest + +web::http::client:: +SocketContext::initiateRequest @@ -354,8 +354,8 @@ Node4->Node5 - - + + @@ -363,113 +363,132 @@ Node6 - -web::http::client:: -SocketContext::requestDelivered + +web::http::client:: +SocketContext::requestDelivered - + Node4->Node6 - - - + + + - - -Node17 - - -web::http::server:: -SocketContext::requestCompleted + + +Node18 + + +web::http::client:: +SocketContext::responseDelivered - - -Node4->Node17 - - - + + +Node4->Node18 + + + - - -Node52 - - -core::socket::stream -::SocketAcceptor::SocketAcceptor + + +Node21 + + +web::http::server:: +SocketContext::requestCompleted - - -Node4->Node52 - - - + + +Node4->Node21 + + + - - -Node53 - - -core::socket::stream -::SocketAcceptor::SocketAcceptor + + +Node56 + + +core::socket::stream +::SocketAcceptor::SocketAcceptor - - -Node4->Node53 - - - + + +Node4->Node56 + + + - - -Node54 - - -core::socket::stream -::SocketConnector::SocketConnector + + +Node57 + + +core::socket::stream +::SocketAcceptor::SocketAcceptor - - -Node4->Node54 - - - + + +Node4->Node57 + + + - - -Node55 - - -core::socket::stream -::SocketConnector::SocketConnector + + +Node58 + + +core::socket::stream +::SocketConnector::SocketConnector + + + + + +Node4->Node58 + + + + + + + + +Node59 + + +core::socket::stream +::SocketConnector::SocketConnector - - -Node4->Node55 - - - + + +Node4->Node59 + + + @@ -477,8 +496,8 @@ Node5->Node5 - - + + @@ -486,18 +505,18 @@ Node5->Node6 - - + + Node11 - - -web::http::client:: -SocketContext::requestPrepared + + +web::http::client:: +SocketContext::requestPrepared @@ -505,8 +524,17 @@ Node5->Node11 - - + + + + + + + +Node5->Node18 + + + @@ -514,9 +542,9 @@ Node7 - -web::http::client:: -Request::requestDelivered + +web::http::client:: +Request::requestDelivered @@ -524,8 +552,8 @@ Node6->Node7 - - + + @@ -533,9 +561,9 @@ Node8 - -web::http::client:: -Request::initiate + +web::http::client:: +Request::initiate @@ -543,8 +571,8 @@ Node7->Node8 - - + + @@ -552,9 +580,9 @@ Node9 - -web::http::client:: -Request::onSourceEof + +web::http::client:: +Request::onSourceEof @@ -562,8 +590,8 @@ Node7->Node9 - - + + @@ -571,9 +599,9 @@ Node10 - -web::http::client:: -Request::onSourceError + +web::http::client:: +Request::onSourceError @@ -581,8 +609,8 @@ Node7->Node10 - - + + @@ -590,18 +618,18 @@ Node8->Node5 - - + + Node12 - - -web::http::client:: -Request::end + + +web::http::client:: +Request::requestPrepared @@ -609,113 +637,113 @@ Node11->Node12 - - + + Node13 - - -web::http::client:: -Request::send + + +web::http::client:: +Request::end - - -Node11->Node13 - - - + + +Node12->Node13 + + + - - -Node15 - - -web::http::client:: -Request::sendFile + + +Node14 + + +web::http::client:: +Request::send - - -Node11->Node15 - - - + + +Node12->Node14 + + + Node16 - - -web::http::client:: -Request::upgrade + + +web::http::client:: +Request::sendFile - - -Node11->Node16 - - - + + +Node12->Node16 + + + - - -Node14 - - -web::http::client:: -Request::send + + +Node17 + + +web::http::client:: +Request::upgrade - - -Node13->Node14 - - - + + +Node12->Node17 + + + - - -Node18 - - -web::http::server:: -SocketContext::responseCompleted + + +Node15 + + +web::http::client:: +Request::send - - -Node17->Node18 - - - + + +Node14->Node15 + + + Node19 - - -web::http::server:: -Response::sendCompleted + + +web::http::client:: +SocketContext::deliverResponse @@ -723,18 +751,18 @@ Node18->Node19 - - + + Node20 - - -web::http::server:: -Response::onSourceEof + + +web::http::client:: +SocketContext::onDisconnected @@ -742,55 +770,37 @@ Node19->Node20 - - - - - - - -Node21 - - -web::http::server:: -Response::onSourceError - - - - - -Node19->Node21 - - - + + Node22 - - -web::http::server:: -Response::send + + +web::http::server:: +SocketContext::responseCompleted - - -Node19->Node22 - - - + + +Node21->Node22 + + + Node23 - - -express::Response::send + + +web::http::server:: +Response::sendCompleted @@ -798,112 +808,74 @@ Node22->Node23 - - + + Node24 - - -web::http::server:: -Response::send + + +web::http::server:: +Response::onSourceEof - - -Node22->Node24 - - - + + +Node23->Node24 + + + Node25 - - -web::http::server:: -Response::end + + +web::http::server:: +Response::onSourceError - - -Node24->Node25 - - - - - - - - -Node32 - - -express::Response::send - - - - - -Node24->Node32 - - - + + +Node23->Node25 + + + Node26 - - -express::Response::end - - - - - -Node25->Node26 - - - - - - - - -Node30 - - -web::http::server:: -Response::upgrade + + +web::http::server:: +Response::send - - -Node25->Node30 - - - + + +Node23->Node26 + + + Node27 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +express::Response::send @@ -911,39 +883,37 @@ Node26->Node27 - - + + Node28 - - -express::middleware -::StaticMiddleware:: -instance + + +web::http::server:: +Response::send - - -Node27->Node28 - - - + + +Node26->Node28 + + + Node29 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +web::http::server:: +Response::end @@ -951,162 +921,151 @@ Node28->Node29 - - + + - - -Node31 - - -express::Response:: -upgrade + + +Node36 + + +express::Response::send - - -Node30->Node31 - - - + + +Node28->Node36 + + + - - -Node33 - - -express::Response::json + + +Node30 + + +express::Response::end - - -Node32->Node33 - - - + + +Node29->Node30 + + + Node34 - - -express::Response:: -sendStatus - - - - - -Node32->Node34 - - - + + +web::http::server:: +Response::upgrade - - -Node34->Node27 - - - + + +Node29->Node34 + + + - - -Node35 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +Node31 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node34->Node35 - - - + + +Node30->Node31 + + + - - -Node38 - - -express::RootRoute -::dispatch + + +Node32 + + +express::middleware +::StaticMiddleware:: +instance - - -Node34->Node38 - - - + + +Node31->Node32 + + + - - -Node50 - - -express::Response:: -redirect + + +Node33 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node34->Node50 - - - + + +Node32->Node33 + + + - - -Node36 - - -express::middleware -::BasicAuthentication -::instance + + +Node35 + + +express::Response:: +upgrade - - -Node35->Node36 - - - + + +Node34->Node35 + + + Node37 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +express::Response::json @@ -1114,18 +1073,47 @@ Node36->Node37 - - + + + + + + + +Node38 + + +express::Response:: +sendStatus + + + + + +Node36->Node38 + + + + + + + + +Node38->Node31 + + + Node39 - - -express::RootRoute -::dispatch + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -1133,36 +1121,77 @@ Node38->Node39 - - + + + + + + + +Node42 + + +express::RootRoute +::dispatch + + + + + +Node38->Node42 + + + + + + + + +Node54 + + +express::Response:: +redirect + + + + + +Node38->Node54 + + + Node40 - - -express::Controller -::next + + +express::middleware +::BasicAuthentication +::instance - - -Node38->Node40 - - - + + +Node39->Node40 + + + Node41 - - -express::Next::operator() + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -1170,517 +1199,573 @@ Node40->Node41 - - + + - - -Node41->Node27 - - - + + +Node43 + + +express::RootRoute +::dispatch - - -Node41->Node35 - - - + + +Node42->Node43 + + + - - -Node42 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node44 + + +express::Controller +::next - - -Node41->Node42 - - - + + +Node42->Node44 + + + Node45 - - -express::middleware -::VerboseRequest::VerboseRequest + + +express::Next::operator() - - -Node41->Node45 - - - + + +Node44->Node45 + + + - - -Node47 - - -express::middleware -::VHost::VHost + + +Node45->Node31 + + + - - -Node41->Node47 - - - + + +Node45->Node39 + + + - - -Node43 - - -express::middleware -::JsonMiddleware::instance + + +Node46 + + +express::middleware +::JsonMiddleware::JsonMiddleware - - -Node42->Node43 - - - + + +Node45->Node46 + + + - - -Node44 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node49 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node43->Node44 - - - + + +Node45->Node49 + + + - - -Node46 - - -express::middleware -::VerboseRequest::VerboseRequest + + +Node51 + + +express::middleware +::VHost::VHost - - -Node45->Node46 - - - + + +Node45->Node51 + + + + + + + + +Node47 + + +express::middleware +::JsonMiddleware::instance + + + + + +Node46->Node47 + + + Node48 - - -express::middleware -::VHost::instance + + +express::middleware +::JsonMiddleware::JsonMiddleware - + Node47->Node48 - - - + + + - - -Node49 - - -express::middleware -::VHost::VHost + + +Node50 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node48->Node49 - - - + + +Node49->Node50 + + + - - -Node50->Node27 - - - + + +Node52 + + +express::middleware +::VHost::instance - - -Node51 - - -express::Response:: -redirect + + +Node51->Node52 + + + - - -Node50->Node51 - - - + + +Node53 + + +express::middleware +::VHost::VHost - - -Node57 - - -database::mariadb:: -MariaDBConnection::command -Continue + + +Node52->Node53 + + + - - -Node56->Node57 - - - + + +Node54->Node31 + + + - - -Node59 - - -core::socket::stream -::SocketReader::readEvent + + +Node55 + + +express::Response:: +redirect - - -Node58->Node59 - - - + + +Node54->Node55 + + + Node61 - - -core::socket::stream -::SocketWriter::writeEvent + + +database::mariadb:: +MariaDBConnection::command +Continue - + Node60->Node61 - - - + + + Node63 - - -database::mariadb:: -MariaDBClient::execute_async + + +core::socket::stream +::SocketReader::readEvent - + Node62->Node63 - - - + + + - - -Node71 - - -core::EventMultiplexer -::spanActiveEvents + + +Node65 + + +core::socket::stream +::SocketWriter::writeEvent - - -Node70->Node71 - - - + + +Node64->Node65 + + + - - -Node72 - - -core::EventMultiplexer -::tick + + +Node67 + + +database::mariadb:: +MariaDBClient::execute_async - - -Node71->Node72 - - - + + +Node66->Node67 + + + - - -Node73 - - -core::EventLoop::_tick + + +Node75 + + +core::EventMultiplexer +::spanActiveEvents - - -Node72->Node73 - - - + + +Node74->Node75 + + + - - -Node74 - - -core::EventLoop::free + + +Node76 + + +core::EventMultiplexer +::tick - - -Node73->Node74 - - - + + +Node75->Node76 + + + Node77 - + + +core::EventLoop::_tick + + + + + +Node76->Node77 + + + + + + + + +Node78 + + +core::EventLoop::free + + + + + +Node77->Node78 + + + + + + + + +Node81 + core::EventLoop::start - - -Node73->Node77 - - - + + +Node77->Node81 + + + - - -Node80 - + + +Node84 + core::EventLoop::tick - - -Node73->Node80 - - - + + +Node77->Node84 + + + - - -Node75 - + + +Node79 + core::SNodeC::free - - -Node74->Node75 - - - + + +Node78->Node79 + + + - - -Node74->Node77 - - - + + +Node78->Node81 + + + - - -Node74->Node80 - - - + + +Node78->Node84 + + + - - -Node76 - + + +Node80 + express::WebApp::free - - -Node75->Node76 - + + +Node79->Node80 + - - -Node78 - + + +Node82 + core::SNodeC::start - - -Node77->Node78 - + + +Node81->Node82 + - - -Node79 - + + +Node83 + express::WebApp::start - - -Node78->Node79 - + + +Node82->Node83 + - - -Node81 - + + +Node85 + core::SNodeC::tick - - -Node80->Node81 - + + +Node84->Node85 + - - -Node82 - + + +Node86 + express::WebApp::tick - - -Node81->Node82 - + + +Node85->Node86 + diff --git a/html/classcore_1_1EventReceiver-members.html b/html/classcore_1_1EventReceiver-members.html index 59d2afd336..8a5e349bcd 100644 --- a/html/classcore_1_1EventReceiver-members.html +++ b/html/classcore_1_1EventReceiver-members.html @@ -99,8 +99,12 @@
destruct()core::EventReceiver
virtual eventcore::EventReceiverprivate EventReceiver(const std::string &name)core::EventReceiver + EventReceiver(EventReceiver &)=deletecore::EventReceiver + EventReceiver(EventReceiver &&)=deletecore::EventReceiver getName() constcore::EventReceiver onEvent(const utils::Timeval &currentTime)=0core::EventReceiverpure virtual + operator=(EventReceiver &)=deletecore::EventReceiver + operator=(EventReceiver &&)=deletecore::EventReceiver relax()core::EventReceiver span()core::EventReceiver ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual @@ -109,7 +113,7 @@ diff --git a/html/classcore_1_1EventReceiver.html b/html/classcore_1_1EventReceiver.html index 81bc3bb4e9..637f305941 100644 --- a/html/classcore_1_1EventReceiver.html +++ b/html/classcore_1_1EventReceiver.html @@ -115,6 +115,14 @@ Public Member Functions

 EventReceiver (const std::string &name)   + EventReceiver (EventReceiver &)=delete +  + EventReceiver (EventReceiver &&)=delete +  +EventReceiveroperator= (EventReceiver &)=delete +  +EventReceiveroperator= (EventReceiver &&)=delete +  virtual void destruct ()   void span () @@ -146,7 +154,7 @@

Definition at line 39 of file EventReceiver.h.

Constructor & Destructor Documentation

-

◆ EventReceiver()

+

◆ EventReceiver() [1/3]

+ +

◆ EventReceiver() [2/3]

+ +
+
+ + + + + +
+ + + + + + + + +
core::EventReceiver::EventReceiver (EventReceiver)
+
+delete
+
+ +
+
+ +

◆ EventReceiver() [3/3]

+ +
+
+ + + + + +
+ + + + + + + + +
core::EventReceiver::EventReceiver (EventReceiver && )
+
+delete
+
+
@@ -260,7 +320,7 @@

References EventReceiver(), and span().

-

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::responseDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

Here is the call graph for this function:
-
+
@@ -333,9 +393,9 @@

66 return event.getName();
67 }
-

References event, and core::Event::getName().

+

References event, and core::Event::getName().

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

Here is the call graph for this function:
+ + + +

◆ operator=() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + +
EventReceiver & core::EventReceiver::operator= (EventReceiver && )
+
+delete
+
+ +
+
+ +

◆ operator=() [2/2]

+ +
+
+ + + + + +
+ + + + + + + + +
EventReceiver & core::EventReceiver::operator= (EventReceiver)
+
+delete
+
+
@@ -404,7 +516,7 @@

62 event.relax();
63 }
-

References event, and core::Event::relax().

+

References event, and core::Event::relax().

Here is the call graph for this function:
@@ -433,9 +545,9 @@

58 event.span();

59 }
-

References event, and core::Event::span().

+

References event, and core::Event::span().

-

Referenced by atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

+

Referenced by atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

Here is the call graph for this function:
-
+
@@ -470,7 +582,7 @@

-

Definition at line 59 of file EventReceiver.h.

+

Definition at line 65 of file EventReceiver.h.

Referenced by EventReceiver(), getName(), relax(), and span().

@@ -486,7 +598,7 @@

    - +
diff --git a/html/classcore_1_1EventReceiver.js b/html/classcore_1_1EventReceiver.js index 7c4a1e6efb..b82250c221 100644 --- a/html/classcore_1_1EventReceiver.js +++ b/html/classcore_1_1EventReceiver.js @@ -1,11 +1,15 @@ var classcore_1_1EventReceiver = [ [ "EventReceiver", "classcore_1_1EventReceiver.html#adec275118bd8a68e2b4cb71fa94d79b6", null ], + [ "EventReceiver", "classcore_1_1EventReceiver.html#aad8de4fbd9cedb6d76fe3fef275f36a5", null ], + [ "EventReceiver", "classcore_1_1EventReceiver.html#afa269ffc9ade86dd10f1acfe6be02afc", null ], [ "~EventReceiver", "classcore_1_1EventReceiver.html#a992cbab6f773fbbb24d89d34ca938d98", null ], [ "atNextTick", "classcore_1_1EventReceiver.html#a2e8d915eca53e827be4f493a63ae058d", null ], [ "destruct", "classcore_1_1EventReceiver.html#a0af009a224c3a4020ed30f5586c0394c", null ], [ "getName", "classcore_1_1EventReceiver.html#a0735c234c7848cf4d45473a6f7ce11b2", null ], [ "onEvent", "classcore_1_1EventReceiver.html#a56ea1c965cafe4f26ed05c723f3e9c95", null ], + [ "operator=", "classcore_1_1EventReceiver.html#a97db96ae17c9733cce512eb3f27a7f01", null ], + [ "operator=", "classcore_1_1EventReceiver.html#afbf3f1dbc521a877f82c9db4931151aa", null ], [ "relax", "classcore_1_1EventReceiver.html#a748159baa69a639df53ac5675ae8425f", null ], [ "span", "classcore_1_1EventReceiver.html#ad353e97a9089b2769e52f8825e4878b1", null ], [ "event", "classcore_1_1EventReceiver.html#aa7594f344bc5bf40ed9d8bd0fd00ac5a", null ] diff --git a/html/classcore_1_1EventReceiver_a2e8d915eca53e827be4f493a63ae058d_icgraph.map b/html/classcore_1_1EventReceiver_a2e8d915eca53e827be4f493a63ae058d_icgraph.map index 01ccc847f9..b69ede59b2 100644 --- a/html/classcore_1_1EventReceiver_a2e8d915eca53e827be4f493a63ae058d_icgraph.map +++ b/html/classcore_1_1EventReceiver_a2e8d915eca53e827be4f493a63ae058d_icgraph.map @@ -1,112 +1,121 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/classcore_1_1EventReceiver_a2e8d915eca53e827be4f493a63ae058d_icgraph.md5 b/html/classcore_1_1EventReceiver_a2e8d915eca53e827be4f493a63ae058d_icgraph.md5 index 80bc76d070..4b150f90be 100644 --- a/html/classcore_1_1EventReceiver_a2e8d915eca53e827be4f493a63ae058d_icgraph.md5 +++ b/html/classcore_1_1EventReceiver_a2e8d915eca53e827be4f493a63ae058d_icgraph.md5 @@ -1 +1 @@ -a4774fcc321511499c110a24e732a33b \ No newline at end of file +c4dbff512a1ab5757fc02e45bb91f3e3 \ No newline at end of file diff --git a/html/classcore_1_1EventReceiver_a2e8d915eca53e827be4f493a63ae058d_icgraph.svg b/html/classcore_1_1EventReceiver_a2e8d915eca53e827be4f493a63ae058d_icgraph.svg index f5fa8c4968..5dc9afbbd0 100644 --- a/html/classcore_1_1EventReceiver_a2e8d915eca53e827be4f493a63ae058d_icgraph.svg +++ b/html/classcore_1_1EventReceiver_a2e8d915eca53e827be4f493a63ae058d_icgraph.svg @@ -4,17 +4,17 @@ - - + + core::EventReceiver::atNextTick Node1 - -core::EventReceiver -::atNextTick + +core::EventReceiver +::atNextTick @@ -22,9 +22,9 @@ Node2 - -web::http::client:: -SocketContext::initiateRequest + +web::http::client:: +SocketContext::initiateRequest @@ -32,8 +32,8 @@ Node1->Node2 - - + + @@ -41,113 +41,132 @@ Node3 - -web::http::client:: -SocketContext::requestDelivered + +web::http::client:: +SocketContext::requestDelivered - + Node1->Node3 - - - + + + - - -Node14 - - -web::http::server:: -SocketContext::requestCompleted + + +Node15 + + +web::http::client:: +SocketContext::responseDelivered - - -Node1->Node14 - - - + + +Node1->Node15 + + + - - -Node49 - - -core::socket::stream -::SocketAcceptor::SocketAcceptor + + +Node18 + + +web::http::server:: +SocketContext::requestCompleted - - -Node1->Node49 - - - + + +Node1->Node18 + + + - - -Node50 - - -core::socket::stream -::SocketAcceptor::SocketAcceptor + + +Node53 + + +core::socket::stream +::SocketAcceptor::SocketAcceptor - - -Node1->Node50 - - - + + +Node1->Node53 + + + - - -Node51 - - -core::socket::stream -::SocketConnector::SocketConnector + + +Node54 + + +core::socket::stream +::SocketAcceptor::SocketAcceptor - - -Node1->Node51 - - - + + +Node1->Node54 + + + - - -Node52 - - -core::socket::stream -::SocketConnector::SocketConnector + + +Node55 + + +core::socket::stream +::SocketConnector::SocketConnector + + + + + +Node1->Node55 + + + - - -Node1->Node52 - - - + + +Node56 + + +core::socket::stream +::SocketConnector::SocketConnector + + + + + +Node1->Node56 + + + @@ -155,8 +174,8 @@ Node2->Node2 - - + + @@ -164,18 +183,18 @@ Node2->Node3 - - + + Node8 - - -web::http::client:: -SocketContext::requestPrepared + + +web::http::client:: +SocketContext::requestPrepared @@ -183,8 +202,17 @@ Node2->Node8 - - + + + + + + + +Node2->Node15 + + + @@ -192,9 +220,9 @@ Node4 - -web::http::client:: -Request::requestDelivered + +web::http::client:: +Request::requestDelivered @@ -202,8 +230,8 @@ Node3->Node4 - - + + @@ -211,9 +239,9 @@ Node5 - -web::http::client:: -Request::initiate + +web::http::client:: +Request::initiate @@ -221,8 +249,8 @@ Node4->Node5 - - + + @@ -230,9 +258,9 @@ Node6 - -web::http::client:: -Request::onSourceEof + +web::http::client:: +Request::onSourceEof @@ -240,8 +268,8 @@ Node4->Node6 - - + + @@ -249,9 +277,9 @@ Node7 - -web::http::client:: -Request::onSourceError + +web::http::client:: +Request::onSourceError @@ -259,8 +287,8 @@ Node4->Node7 - - + + @@ -268,18 +296,18 @@ Node5->Node2 - - + + Node9 - - -web::http::client:: -Request::end + + +web::http::client:: +Request::requestPrepared @@ -287,113 +315,113 @@ Node8->Node9 - - + + Node10 - - -web::http::client:: -Request::send + + +web::http::client:: +Request::end - - -Node8->Node10 - - - + + +Node9->Node10 + + + - - -Node12 - - -web::http::client:: -Request::sendFile + + +Node11 + + +web::http::client:: +Request::send - - -Node8->Node12 - - - + + +Node9->Node11 + + + Node13 - - -web::http::client:: -Request::upgrade + + +web::http::client:: +Request::sendFile - - -Node8->Node13 - - - + + +Node9->Node13 + + + - - -Node11 - - -web::http::client:: -Request::send + + +Node14 + + +web::http::client:: +Request::upgrade - - -Node10->Node11 - - - + + +Node9->Node14 + + + - - -Node15 - - -web::http::server:: -SocketContext::responseCompleted + + +Node12 + + +web::http::client:: +Request::send - - -Node14->Node15 - - - + + +Node11->Node12 + + + Node16 - - -web::http::server:: -Response::sendCompleted + + +web::http::client:: +SocketContext::deliverResponse @@ -401,18 +429,18 @@ Node15->Node16 - - + + Node17 - - -web::http::server:: -Response::onSourceEof + + +web::http::client:: +SocketContext::onDisconnected @@ -420,55 +448,37 @@ Node16->Node17 - - - - - - - -Node18 - - -web::http::server:: -Response::onSourceError - - - - - -Node16->Node18 - - - + + Node19 - - -web::http::server:: -Response::send + + +web::http::server:: +SocketContext::responseCompleted - - -Node16->Node19 - - - + + +Node18->Node19 + + + Node20 - - -express::Response::send + + +web::http::server:: +Response::sendCompleted @@ -476,112 +486,74 @@ Node19->Node20 - - + + Node21 - - -web::http::server:: -Response::send + + +web::http::server:: +Response::onSourceEof - - -Node19->Node21 - - - + + +Node20->Node21 + + + Node22 - - -web::http::server:: -Response::end + + +web::http::server:: +Response::onSourceError - - -Node21->Node22 - - - - - - - - -Node29 - - -express::Response::send - - - - - -Node21->Node29 - - - + + +Node20->Node22 + + + Node23 - - -express::Response::end - - - - - -Node22->Node23 - - - - - - - - -Node27 - - -web::http::server:: -Response::upgrade + + +web::http::server:: +Response::send - - -Node22->Node27 - - - + + +Node20->Node23 + + + Node24 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +express::Response::send @@ -589,39 +561,37 @@ Node23->Node24 - - + + Node25 - - -express::middleware -::StaticMiddleware:: -instance + + +web::http::server:: +Response::send - - -Node24->Node25 - - - + + +Node23->Node25 + + + Node26 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +web::http::server:: +Response::end @@ -629,162 +599,151 @@ Node25->Node26 - - + + - - -Node28 - - -express::Response:: -upgrade + + +Node33 + + +express::Response::send - - -Node27->Node28 - - - + + +Node25->Node33 + + + - - -Node30 - - -express::Response::json + + +Node27 + + +express::Response::end - - -Node29->Node30 - - - + + +Node26->Node27 + + + Node31 - - -express::Response:: -sendStatus - - - - - -Node29->Node31 - - - + + +web::http::server:: +Response::upgrade - - -Node31->Node24 - - - + + +Node26->Node31 + + + - - -Node32 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +Node28 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node31->Node32 - - - + + +Node27->Node28 + + + - - -Node35 - - -express::RootRoute -::dispatch + + +Node29 + + +express::middleware +::StaticMiddleware:: +instance - - -Node31->Node35 - - - + + +Node28->Node29 + + + - - -Node47 - - -express::Response:: -redirect + + +Node30 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node31->Node47 - - - + + +Node29->Node30 + + + - - -Node33 - - -express::middleware -::BasicAuthentication -::instance + + +Node32 + + +express::Response:: +upgrade - - -Node32->Node33 - - - + + +Node31->Node32 + + + Node34 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +express::Response::json @@ -792,18 +751,47 @@ Node33->Node34 - - + + + + + + + +Node35 + + +express::Response:: +sendStatus + + + + + +Node33->Node35 + + + + + + + + +Node35->Node28 + + + Node36 - - -express::RootRoute -::dispatch + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -811,36 +799,77 @@ Node35->Node36 - - + + + + + + + +Node39 + + +express::RootRoute +::dispatch + + + + + +Node35->Node39 + + + + + + + + +Node51 + + +express::Response:: +redirect + + + + + +Node35->Node51 + + + Node37 - - -express::Controller -::next + + +express::middleware +::BasicAuthentication +::instance - - -Node35->Node37 - - - + + +Node36->Node37 + + + Node38 - - -express::Next::operator() + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -848,206 +877,262 @@ Node37->Node38 - - + + - - -Node38->Node24 - - - + + +Node40 + + +express::RootRoute +::dispatch - - -Node38->Node32 - - - + + +Node39->Node40 + + + - - -Node39 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node41 + + +express::Controller +::next - - -Node38->Node39 - - - + + +Node39->Node41 + + + Node42 - - -express::middleware -::VerboseRequest::VerboseRequest + + +express::Next::operator() - - -Node38->Node42 - - - + + +Node41->Node42 + + + - - -Node44 - - -express::middleware -::VHost::VHost + + +Node42->Node28 + + + - - -Node38->Node44 - - - + + +Node42->Node36 + + + - - -Node40 - - -express::middleware -::JsonMiddleware::instance + + +Node43 + + +express::middleware +::JsonMiddleware::JsonMiddleware - - -Node39->Node40 - - - + + +Node42->Node43 + + + - - -Node41 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node46 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node40->Node41 - - - + + +Node42->Node46 + + + - - -Node43 - - -express::middleware -::VerboseRequest::VerboseRequest + + +Node48 + + +express::middleware +::VHost::VHost - - -Node42->Node43 - - - + + +Node42->Node48 + + + + + + + + +Node44 + + +express::middleware +::JsonMiddleware::instance + + + + + +Node43->Node44 + + + Node45 - - -express::middleware -::VHost::instance + + +express::middleware +::JsonMiddleware::JsonMiddleware - + Node44->Node45 - - - + + + - - -Node46 - - -express::middleware -::VHost::VHost + + +Node47 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node45->Node46 - - - + + +Node46->Node47 + + + - - -Node47->Node24 - - - + + +Node49 + + +express::middleware +::VHost::instance - - -Node48 - - -express::Response:: -redirect + + +Node48->Node49 + + + + + + + + +Node50 + + +express::middleware +::VHost::VHost + + + + + +Node49->Node50 + + + + + + + + +Node51->Node28 + + + + + + + + +Node52 + + +express::Response:: +redirect - - -Node47->Node48 - - - + + +Node51->Node52 + + + diff --git a/html/classcore_1_1EventReceiver_ad353e97a9089b2769e52f8825e4878b1_icgraph.map b/html/classcore_1_1EventReceiver_ad353e97a9089b2769e52f8825e4878b1_icgraph.map index 2d81ea4e30..d29b13e1ff 100644 --- a/html/classcore_1_1EventReceiver_ad353e97a9089b2769e52f8825e4878b1_icgraph.map +++ b/html/classcore_1_1EventReceiver_ad353e97a9089b2769e52f8825e4878b1_icgraph.map @@ -1,176 +1,185 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/classcore_1_1EventReceiver_ad353e97a9089b2769e52f8825e4878b1_icgraph.md5 b/html/classcore_1_1EventReceiver_ad353e97a9089b2769e52f8825e4878b1_icgraph.md5 index 7433404c39..842f6274c8 100644 --- a/html/classcore_1_1EventReceiver_ad353e97a9089b2769e52f8825e4878b1_icgraph.md5 +++ b/html/classcore_1_1EventReceiver_ad353e97a9089b2769e52f8825e4878b1_icgraph.md5 @@ -1 +1 @@ -5035a73d4380278a6ef68a998759247a \ No newline at end of file +8c51ce23d891edf201eef27196ac4a9f \ No newline at end of file diff --git a/html/classcore_1_1EventReceiver_ad353e97a9089b2769e52f8825e4878b1_icgraph.svg b/html/classcore_1_1EventReceiver_ad353e97a9089b2769e52f8825e4878b1_icgraph.svg index 9b54491253..9e2800d323 100644 --- a/html/classcore_1_1EventReceiver_ad353e97a9089b2769e52f8825e4878b1_icgraph.svg +++ b/html/classcore_1_1EventReceiver_ad353e97a9089b2769e52f8825e4878b1_icgraph.svg @@ -4,17 +4,17 @@ - - + + core::EventReceiver::span Node1 - -core::EventReceiver -::span + +core::EventReceiver +::span @@ -22,9 +22,9 @@ Node2 - -core::EventReceiver -::atNextTick + +core::EventReceiver +::atNextTick @@ -32,274 +32,274 @@ Node1->Node2 - - - - - - - -Node54 - - -database::mariadb:: -MariaDBConnection::checkStatus - - - - - -Node1->Node54 - - - - - - - - -Node56 - - -core::socket::stream -::SocketReader::doRead - - - - - -Node1->Node56 - - - + + Node58 - - -core::socket::stream -::SocketWriter::doWrite + + +database::mariadb:: +MariaDBConnection::checkStatus - + Node1->Node58 - - - + + + Node60 - - -database::mariadb:: -MariaDBConnection::execute_async + + +core::socket::stream +::SocketReader::doRead - + Node1->Node60 - - - + + + Node62 - - -core::file::FileReader -::onEvent + + +core::socket::stream +::SocketWriter::doWrite - + Node1->Node62 - - - - - - - - -Node63 - - -iot::mqtt::SubProtocol -::onMessageEnd - - - - - -Node1->Node63 - - - + + + Node64 - - -core::file::FileReader -::resume + + +database::mariadb:: +MariaDBConnection::execute_async - + Node1->Node64 - - - - - - - - -Node65 - - -core::epoll::DescriptorEvent -Publisher::spanActiveEvents - - - - - -Node1->Node65 - - - + + + Node66 - - -core::poll::DescriptorEvent -Publisher::spanActiveEvents + + +core::file::FileReader +::onEvent - + Node1->Node66 - - - + + + Node67 - - -core::select::Descriptor -EventPublisher::spanActiveEvents + + +iot::mqtt::SubProtocol +::onMessageEnd - + Node1->Node67 - - - + + + Node68 - - -core::TimerEventPublisher -::spanActiveEvents + + +core::file::FileReader +::resume - + Node1->Node68 - - - + + + - - -Node81 - - -core::file::FileReader -::start + + +Node69 + + +core::epoll::DescriptorEvent +Publisher::spanActiveEvents - - -Node1->Node81 - - - + + +Node1->Node69 + + + - - -Node82 - - -core::file::FileReader -::stop + + +Node70 + + +core::poll::DescriptorEvent +Publisher::spanActiveEvents - - -Node1->Node82 - - - + + +Node1->Node70 + + + - - -Node83 - - -iot::mqtt::SubProtocol -::SubProtocol + + +Node71 + + +core::select::Descriptor +EventPublisher::spanActiveEvents - - -Node1->Node83 - - - + + +Node1->Node71 + + + + + + + + +Node72 + + +core::TimerEventPublisher +::spanActiveEvents + + + + + +Node1->Node72 + + + + + + + + +Node85 + + +core::file::FileReader +::start + + + + + +Node1->Node85 + + + + + + + + +Node86 + + +core::file::FileReader +::stop + + + + + +Node1->Node86 + + + + + + + + +Node87 + + +iot::mqtt::SubProtocol +::SubProtocol + + + + + +Node1->Node87 + + + @@ -307,9 +307,9 @@ Node3 - -web::http::client:: -SocketContext::initiateRequest + +web::http::client:: +SocketContext::initiateRequest @@ -317,8 +317,8 @@ Node2->Node3 - - + + @@ -326,113 +326,132 @@ Node4 - -web::http::client:: -SocketContext::requestDelivered + +web::http::client:: +SocketContext::requestDelivered - + Node2->Node4 - - - + + + - - -Node15 - - -web::http::server:: -SocketContext::requestCompleted + + +Node16 + + +web::http::client:: +SocketContext::responseDelivered - - -Node2->Node15 - - - + + +Node2->Node16 + + + - - -Node50 - - -core::socket::stream -::SocketAcceptor::SocketAcceptor + + +Node19 + + +web::http::server:: +SocketContext::requestCompleted - - -Node2->Node50 - - - + + +Node2->Node19 + + + - - -Node51 - - -core::socket::stream -::SocketAcceptor::SocketAcceptor + + +Node54 + + +core::socket::stream +::SocketAcceptor::SocketAcceptor - - -Node2->Node51 - - - + + +Node2->Node54 + + + - - -Node52 - - -core::socket::stream -::SocketConnector::SocketConnector + + +Node55 + + +core::socket::stream +::SocketAcceptor::SocketAcceptor - - -Node2->Node52 - - - + + +Node2->Node55 + + + - - -Node53 - - -core::socket::stream -::SocketConnector::SocketConnector + + +Node56 + + +core::socket::stream +::SocketConnector::SocketConnector + + + + + +Node2->Node56 + + + + + + + + +Node57 + + +core::socket::stream +::SocketConnector::SocketConnector - - -Node2->Node53 - - - + + +Node2->Node57 + + + @@ -440,8 +459,8 @@ Node3->Node3 - - + + @@ -449,18 +468,18 @@ Node3->Node4 - - + + Node9 - - -web::http::client:: -SocketContext::requestPrepared + + +web::http::client:: +SocketContext::requestPrepared @@ -468,8 +487,17 @@ Node3->Node9 - - + + + + + + + +Node3->Node16 + + + @@ -477,9 +505,9 @@ Node5 - -web::http::client:: -Request::requestDelivered + +web::http::client:: +Request::requestDelivered @@ -487,8 +515,8 @@ Node4->Node5 - - + + @@ -496,9 +524,9 @@ Node6 - -web::http::client:: -Request::initiate + +web::http::client:: +Request::initiate @@ -506,8 +534,8 @@ Node5->Node6 - - + + @@ -515,9 +543,9 @@ Node7 - -web::http::client:: -Request::onSourceEof + +web::http::client:: +Request::onSourceEof @@ -525,8 +553,8 @@ Node5->Node7 - - + + @@ -534,9 +562,9 @@ Node8 - -web::http::client:: -Request::onSourceError + +web::http::client:: +Request::onSourceError @@ -544,8 +572,8 @@ Node5->Node8 - - + + @@ -553,18 +581,18 @@ Node6->Node3 - - + + Node10 - - -web::http::client:: -Request::end + + +web::http::client:: +Request::requestPrepared @@ -572,113 +600,113 @@ Node9->Node10 - - + + Node11 - - -web::http::client:: -Request::send + + +web::http::client:: +Request::end - - -Node9->Node11 - - - + + +Node10->Node11 + + + - - -Node13 - - -web::http::client:: -Request::sendFile + + +Node12 + + +web::http::client:: +Request::send - - -Node9->Node13 - - - + + +Node10->Node12 + + + Node14 - - -web::http::client:: -Request::upgrade + + +web::http::client:: +Request::sendFile - - -Node9->Node14 - - - + + +Node10->Node14 + + + - - -Node12 - - -web::http::client:: -Request::send + + +Node15 + + +web::http::client:: +Request::upgrade - - -Node11->Node12 - - - + + +Node10->Node15 + + + - - -Node16 - - -web::http::server:: -SocketContext::responseCompleted + + +Node13 + + +web::http::client:: +Request::send - - -Node15->Node16 - - - + + +Node12->Node13 + + + Node17 - - -web::http::server:: -Response::sendCompleted + + +web::http::client:: +SocketContext::deliverResponse @@ -686,18 +714,18 @@ Node16->Node17 - - + + Node18 - - -web::http::server:: -Response::onSourceEof + + +web::http::client:: +SocketContext::onDisconnected @@ -705,55 +733,37 @@ Node17->Node18 - - - - - - - -Node19 - - -web::http::server:: -Response::onSourceError - - - - - -Node17->Node19 - - - + + Node20 - - -web::http::server:: -Response::send + + +web::http::server:: +SocketContext::responseCompleted - - -Node17->Node20 - - - + + +Node19->Node20 + + + Node21 - - -express::Response::send + + +web::http::server:: +Response::sendCompleted @@ -761,112 +771,74 @@ Node20->Node21 - - + + Node22 - - -web::http::server:: -Response::send + + +web::http::server:: +Response::onSourceEof - - -Node20->Node22 - - - + + +Node21->Node22 + + + Node23 - - -web::http::server:: -Response::end + + +web::http::server:: +Response::onSourceError - - -Node22->Node23 - - - - - - - - -Node30 - - -express::Response::send - - - - - -Node22->Node30 - - - + + +Node21->Node23 + + + Node24 - - -express::Response::end - - - - - -Node23->Node24 - - - - - - - - -Node28 - - -web::http::server:: -Response::upgrade + + +web::http::server:: +Response::send - - -Node23->Node28 - - - + + +Node21->Node24 + + + Node25 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +express::Response::send @@ -874,39 +846,37 @@ Node24->Node25 - - + + Node26 - - -express::middleware -::StaticMiddleware:: -instance + + +web::http::server:: +Response::send - - -Node25->Node26 - - - + + +Node24->Node26 + + + Node27 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +web::http::server:: +Response::end @@ -914,162 +884,151 @@ Node26->Node27 - - + + - - -Node29 - - -express::Response:: -upgrade + + +Node34 + + +express::Response::send - - -Node28->Node29 - - - + + +Node26->Node34 + + + - - -Node31 - - -express::Response::json + + +Node28 + + +express::Response::end - - -Node30->Node31 - - - + + +Node27->Node28 + + + Node32 - - -express::Response:: -sendStatus - - - - - -Node30->Node32 - - - + + +web::http::server:: +Response::upgrade - - -Node32->Node25 - - - + + +Node27->Node32 + + + - - -Node33 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +Node29 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node32->Node33 - - - + + +Node28->Node29 + + + - - -Node36 - - -express::RootRoute -::dispatch + + +Node30 + + +express::middleware +::StaticMiddleware:: +instance - - -Node32->Node36 - - - + + +Node29->Node30 + + + - - -Node48 - - -express::Response:: -redirect + + +Node31 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node32->Node48 - - - + + +Node30->Node31 + + + - - -Node34 - - -express::middleware -::BasicAuthentication -::instance + + +Node33 + + +express::Response:: +upgrade - - -Node33->Node34 - - - + + +Node32->Node33 + + + Node35 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +express::Response::json @@ -1077,18 +1036,47 @@ Node34->Node35 - - + + + + + + + +Node36 + + +express::Response:: +sendStatus + + + + + +Node34->Node36 + + + + + + + + +Node36->Node29 + + + Node37 - - -express::RootRoute -::dispatch + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -1096,36 +1084,77 @@ Node36->Node37 - - + + + + + + + +Node40 + + +express::RootRoute +::dispatch + + + + + +Node36->Node40 + + + + + + + + +Node52 + + +express::Response:: +redirect + + + + + +Node36->Node52 + + + Node38 - - -express::Controller -::next + + +express::middleware +::BasicAuthentication +::instance - - -Node36->Node38 - - - + + +Node37->Node38 + + + Node39 - - -express::Next::operator() + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -1133,517 +1162,573 @@ Node38->Node39 - - + + - - -Node39->Node25 - - - + + +Node41 + + +express::RootRoute +::dispatch - - -Node39->Node33 - - - + + +Node40->Node41 + + + - - -Node40 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node42 + + +express::Controller +::next - - -Node39->Node40 - - - + + +Node40->Node42 + + + Node43 - - -express::middleware -::VerboseRequest::VerboseRequest + + +express::Next::operator() - - -Node39->Node43 - - - + + +Node42->Node43 + + + - - -Node45 - - -express::middleware -::VHost::VHost + + +Node43->Node29 + + + - - -Node39->Node45 - - - + + +Node43->Node37 + + + - - -Node41 - - -express::middleware -::JsonMiddleware::instance + + +Node44 + + +express::middleware +::JsonMiddleware::JsonMiddleware - - -Node40->Node41 - - - + + +Node43->Node44 + + + - - -Node42 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node47 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node41->Node42 - - - + + +Node43->Node47 + + + - - -Node44 - - -express::middleware -::VerboseRequest::VerboseRequest + + +Node49 + + +express::middleware +::VHost::VHost - - -Node43->Node44 - - - + + +Node43->Node49 + + + + + + + + +Node45 + + +express::middleware +::JsonMiddleware::instance + + + + + +Node44->Node45 + + + Node46 - - -express::middleware -::VHost::instance + + +express::middleware +::JsonMiddleware::JsonMiddleware - + Node45->Node46 - - - + + + - - -Node47 - - -express::middleware -::VHost::VHost + + +Node48 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node46->Node47 - - - + + +Node47->Node48 + + + - - -Node48->Node25 - - - + + +Node50 + + +express::middleware +::VHost::instance - - -Node49 - - -express::Response:: -redirect + + +Node49->Node50 + + + - - -Node48->Node49 - - - + + +Node51 + + +express::middleware +::VHost::VHost - - -Node55 - - -database::mariadb:: -MariaDBConnection::command -Continue + + +Node50->Node51 + + + - - -Node54->Node55 - - - + + +Node52->Node29 + + + - - -Node57 - - -core::socket::stream -::SocketReader::readEvent + + +Node53 + + +express::Response:: +redirect - - -Node56->Node57 - - - + + +Node52->Node53 + + + Node59 - - -core::socket::stream -::SocketWriter::writeEvent + + +database::mariadb:: +MariaDBConnection::command +Continue - + Node58->Node59 - - - + + + Node61 - - -database::mariadb:: -MariaDBClient::execute_async + + +core::socket::stream +::SocketReader::readEvent - + Node60->Node61 - - - + + + - - -Node69 - - -core::EventMultiplexer -::spanActiveEvents + + +Node63 + + +core::socket::stream +::SocketWriter::writeEvent - - -Node68->Node69 - - - + + +Node62->Node63 + + + - - -Node70 - - -core::EventMultiplexer -::tick + + +Node65 + + +database::mariadb:: +MariaDBClient::execute_async - - -Node69->Node70 - - - + + +Node64->Node65 + + + - - -Node71 - - -core::EventLoop::_tick + + +Node73 + + +core::EventMultiplexer +::spanActiveEvents - - -Node70->Node71 - - - + + +Node72->Node73 + + + - - -Node72 - - -core::EventLoop::free + + +Node74 + + +core::EventMultiplexer +::tick - - -Node71->Node72 - - - + + +Node73->Node74 + + + Node75 - + + +core::EventLoop::_tick + + + + + +Node74->Node75 + + + + + + + + +Node76 + + +core::EventLoop::free + + + + + +Node75->Node76 + + + + + + + + +Node79 + core::EventLoop::start - - -Node71->Node75 - - - + + +Node75->Node79 + + + - - -Node78 - + + +Node82 + core::EventLoop::tick - - -Node71->Node78 - - - + + +Node75->Node82 + + + - - -Node73 - + + +Node77 + core::SNodeC::free - - -Node72->Node73 - - - + + +Node76->Node77 + + + - - -Node72->Node75 - - - + + +Node76->Node79 + + + - - -Node72->Node78 - - - + + +Node76->Node82 + + + - - -Node74 - + + +Node78 + express::WebApp::free - - -Node73->Node74 - + + +Node77->Node78 + - - -Node76 - + + +Node80 + core::SNodeC::start - - -Node75->Node76 - + + +Node79->Node80 + - - -Node77 - + + +Node81 + express::WebApp::start - - -Node76->Node77 - + + +Node80->Node81 + - - -Node79 - + + +Node83 + core::SNodeC::tick - - -Node78->Node79 - + + +Node82->Node83 + - - -Node80 - + + +Node84 + express::WebApp::tick - - -Node79->Node80 - + + +Node83->Node84 + diff --git a/html/classcore_1_1EventReceiver_adec275118bd8a68e2b4cb71fa94d79b6_icgraph.map b/html/classcore_1_1EventReceiver_adec275118bd8a68e2b4cb71fa94d79b6_icgraph.map index c7a1f82b1c..696f9ea4e0 100644 --- a/html/classcore_1_1EventReceiver_adec275118bd8a68e2b4cb71fa94d79b6_icgraph.map +++ b/html/classcore_1_1EventReceiver_adec275118bd8a68e2b4cb71fa94d79b6_icgraph.map @@ -1,199 +1,208 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/classcore_1_1EventReceiver_adec275118bd8a68e2b4cb71fa94d79b6_icgraph.md5 b/html/classcore_1_1EventReceiver_adec275118bd8a68e2b4cb71fa94d79b6_icgraph.md5 index f8e778a2ea..f6d444ffb3 100644 --- a/html/classcore_1_1EventReceiver_adec275118bd8a68e2b4cb71fa94d79b6_icgraph.md5 +++ b/html/classcore_1_1EventReceiver_adec275118bd8a68e2b4cb71fa94d79b6_icgraph.md5 @@ -1 +1 @@ -2a8b7bb69a88db420e179bf150861e91 \ No newline at end of file +5facffcbde8cfc8f156a95ad729deaa8 \ No newline at end of file diff --git a/html/classcore_1_1EventReceiver_adec275118bd8a68e2b4cb71fa94d79b6_icgraph.svg b/html/classcore_1_1EventReceiver_adec275118bd8a68e2b4cb71fa94d79b6_icgraph.svg index 05a6bd2767..350fe89be2 100644 --- a/html/classcore_1_1EventReceiver_adec275118bd8a68e2b4cb71fa94d79b6_icgraph.svg +++ b/html/classcore_1_1EventReceiver_adec275118bd8a68e2b4cb71fa94d79b6_icgraph.svg @@ -4,17 +4,17 @@ - - + + core::EventReceiver::EventReceiver Node1 - -core::EventReceiver -::EventReceiver + +core::EventReceiver +::EventReceiver @@ -22,9 +22,9 @@ Node2 - -core::EventReceiver -::atNextTick + +core::EventReceiver +::atNextTick @@ -32,104 +32,104 @@ Node1->Node2 - - + + - - -Node54 - - -core::DescriptorEventReceiver -::DescriptorEventReceiver + + +Node58 + + +core::DescriptorEventReceiver +::DescriptorEventReceiver - - -Node1->Node54 - - - + + +Node1->Node58 + + + - - -Node71 - - -core::file::FileReader -::FileReader + + +Node75 + + +core::file::FileReader +::FileReader - - -Node1->Node71 - - - + + +Node1->Node75 + + + - - -Node79 - - -database::mariadb:: -MariaDBCommandStartEvent -::MariaDBCommandStartEvent + + +Node83 + + +database::mariadb:: +MariaDBCommandStartEvent +::MariaDBCommandStartEvent - - -Node1->Node79 - - - + + +Node1->Node83 + + + - - -Node80 - - -iot::mqtt::OnReceivedFrom -PeerEvent::OnReceivedFromPeerEvent + + +Node84 + + +iot::mqtt::OnReceivedFrom +PeerEvent::OnReceivedFromPeerEvent - - -Node1->Node80 - - - + + +Node1->Node84 + + + - - -Node81 - - -core::TimerEventReceiver -::TimerEventReceiver + + +Node85 + + +core::TimerEventReceiver +::TimerEventReceiver - - -Node1->Node81 - - - + + +Node1->Node85 + + + @@ -137,9 +137,9 @@ Node3 - -web::http::client:: -SocketContext::initiateRequest + +web::http::client:: +SocketContext::initiateRequest @@ -147,8 +147,8 @@ Node2->Node3 - - + + @@ -156,113 +156,132 @@ Node4 - -web::http::client:: -SocketContext::requestDelivered + +web::http::client:: +SocketContext::requestDelivered - + Node2->Node4 - - - + + + - - -Node15 - - -web::http::server:: -SocketContext::requestCompleted + + +Node16 + + +web::http::client:: +SocketContext::responseDelivered - - -Node2->Node15 - - - + + +Node2->Node16 + + + - - -Node50 - - -core::socket::stream -::SocketAcceptor::SocketAcceptor + + +Node19 + + +web::http::server:: +SocketContext::requestCompleted - - -Node2->Node50 - - - + + +Node2->Node19 + + + - - -Node51 - - -core::socket::stream -::SocketAcceptor::SocketAcceptor + + +Node54 + + +core::socket::stream +::SocketAcceptor::SocketAcceptor - - -Node2->Node51 - - - + + +Node2->Node54 + + + - - -Node52 - - -core::socket::stream -::SocketConnector::SocketConnector + + +Node55 + + +core::socket::stream +::SocketAcceptor::SocketAcceptor - - -Node2->Node52 - - - + + +Node2->Node55 + + + - - -Node53 - - -core::socket::stream -::SocketConnector::SocketConnector + + +Node56 + + +core::socket::stream +::SocketConnector::SocketConnector + + + + + +Node2->Node56 + + + + + + + + +Node57 + + +core::socket::stream +::SocketConnector::SocketConnector - - -Node2->Node53 - - - + + +Node2->Node57 + + + @@ -270,8 +289,8 @@ Node3->Node3 - - + + @@ -279,18 +298,18 @@ Node3->Node4 - - + + Node9 - - -web::http::client:: -SocketContext::requestPrepared + + +web::http::client:: +SocketContext::requestPrepared @@ -298,8 +317,17 @@ Node3->Node9 - - + + + + + + + +Node3->Node16 + + + @@ -307,9 +335,9 @@ Node5 - -web::http::client:: -Request::requestDelivered + +web::http::client:: +Request::requestDelivered @@ -317,8 +345,8 @@ Node4->Node5 - - + + @@ -326,9 +354,9 @@ Node6 - -web::http::client:: -Request::initiate + +web::http::client:: +Request::initiate @@ -336,8 +364,8 @@ Node5->Node6 - - + + @@ -345,9 +373,9 @@ Node7 - -web::http::client:: -Request::onSourceEof + +web::http::client:: +Request::onSourceEof @@ -355,8 +383,8 @@ Node5->Node7 - - + + @@ -364,9 +392,9 @@ Node8 - -web::http::client:: -Request::onSourceError + +web::http::client:: +Request::onSourceError @@ -374,8 +402,8 @@ Node5->Node8 - - + + @@ -383,18 +411,18 @@ Node6->Node3 - - + + Node10 - - -web::http::client:: -Request::end + + +web::http::client:: +Request::requestPrepared @@ -402,113 +430,113 @@ Node9->Node10 - - + + Node11 - - -web::http::client:: -Request::send + + +web::http::client:: +Request::end - - -Node9->Node11 - - - + + +Node10->Node11 + + + - - -Node13 - - -web::http::client:: -Request::sendFile + + +Node12 + + +web::http::client:: +Request::send - - -Node9->Node13 - - - + + +Node10->Node12 + + + Node14 - - -web::http::client:: -Request::upgrade + + +web::http::client:: +Request::sendFile - - -Node9->Node14 - - - + + +Node10->Node14 + + + - - -Node12 - - -web::http::client:: -Request::send + + +Node15 + + +web::http::client:: +Request::upgrade - - -Node11->Node12 - - - + + +Node10->Node15 + + + - - -Node16 - - -web::http::server:: -SocketContext::responseCompleted + + +Node13 + + +web::http::client:: +Request::send - - -Node15->Node16 - - - + + +Node12->Node13 + + + Node17 - - -web::http::server:: -Response::sendCompleted + + +web::http::client:: +SocketContext::deliverResponse @@ -516,18 +544,18 @@ Node16->Node17 - - + + Node18 - - -web::http::server:: -Response::onSourceEof + + +web::http::client:: +SocketContext::onDisconnected @@ -535,55 +563,37 @@ Node17->Node18 - - - - - - - -Node19 - - -web::http::server:: -Response::onSourceError - - - - - -Node17->Node19 - - - + + Node20 - - -web::http::server:: -Response::send + + +web::http::server:: +SocketContext::responseCompleted - - -Node17->Node20 - - - + + +Node19->Node20 + + + Node21 - - -express::Response::send + + +web::http::server:: +Response::sendCompleted @@ -591,112 +601,74 @@ Node20->Node21 - - + + Node22 - - -web::http::server:: -Response::send + + +web::http::server:: +Response::onSourceEof - - -Node20->Node22 - - - + + +Node21->Node22 + + + Node23 - - -web::http::server:: -Response::end - - - - - -Node22->Node23 - - - - - - - - -Node30 - - -express::Response::send + + +web::http::server:: +Response::onSourceError - - -Node22->Node30 - - - + + +Node21->Node23 + + + Node24 - - -express::Response::end + + +web::http::server:: +Response::send - - -Node23->Node24 - - - - - - - - -Node28 - - -web::http::server:: -Response::upgrade - - - - - -Node23->Node28 - - - + + +Node21->Node24 + + + Node25 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +express::Response::send @@ -704,39 +676,37 @@ Node24->Node25 - - + + Node26 - - -express::middleware -::StaticMiddleware:: -instance + + +web::http::server:: +Response::send - - -Node25->Node26 - - - + + +Node24->Node26 + + + Node27 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +web::http::server:: +Response::end @@ -744,162 +714,151 @@ Node26->Node27 - - + + - - -Node29 - - -express::Response:: -upgrade + + +Node34 + + +express::Response::send - - -Node28->Node29 - - - + + +Node26->Node34 + + + - - -Node31 - - -express::Response::json + + +Node28 + + +express::Response::end - - -Node30->Node31 - - - + + +Node27->Node28 + + + Node32 - - -express::Response:: -sendStatus - - - - - -Node30->Node32 - - - + + +web::http::server:: +Response::upgrade - - -Node32->Node25 - - - + + +Node27->Node32 + + + - - -Node33 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +Node29 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node32->Node33 - - - + + +Node28->Node29 + + + - - -Node36 - - -express::RootRoute -::dispatch + + +Node30 + + +express::middleware +::StaticMiddleware:: +instance - - -Node32->Node36 - - - + + +Node29->Node30 + + + - - -Node48 - - -express::Response:: -redirect + + +Node31 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node32->Node48 - - - + + +Node30->Node31 + + + - - -Node34 - - -express::middleware -::BasicAuthentication -::instance + + +Node33 + + +express::Response:: +upgrade - - -Node33->Node34 - - - + + +Node32->Node33 + + + Node35 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +express::Response::json @@ -907,18 +866,47 @@ Node34->Node35 - - + + + + + + + +Node36 + + +express::Response:: +sendStatus + + + + + +Node34->Node36 + + + + + + + + +Node36->Node29 + + + Node37 - - -express::RootRoute -::dispatch + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -926,36 +914,77 @@ Node36->Node37 - - + + + + + + + +Node40 + + +express::RootRoute +::dispatch + + + + + +Node36->Node40 + + + + + + + + +Node52 + + +express::Response:: +redirect + + + + + +Node36->Node52 + + + Node38 - - -express::Controller -::next + + +express::middleware +::BasicAuthentication +::instance - - -Node36->Node38 - - - + + +Node37->Node38 + + + Node39 - - -express::Next::operator() + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -963,878 +992,869 @@ Node38->Node39 - - + + - - -Node39->Node25 - - - + + +Node41 + + +express::RootRoute +::dispatch - - -Node39->Node33 - - - + + +Node40->Node41 + + + - - -Node40 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node42 + + +express::Controller +::next - - -Node39->Node40 - - - + + +Node40->Node42 + + + Node43 - - -express::middleware -::VerboseRequest::VerboseRequest - - - - - -Node39->Node43 - - - - - - - - -Node45 - - -express::middleware -::VHost::VHost - - - - - -Node39->Node45 - - - + + +express::Next::operator() - - -Node41 - - -express::middleware -::JsonMiddleware::instance + + +Node42->Node43 + + + - - -Node40->Node41 - - - + + +Node43->Node29 + + + - - -Node42 - - -express::middleware -::JsonMiddleware::JsonMiddleware - - - - - -Node41->Node42 - - - + + +Node43->Node37 + + + Node44 - - -express::middleware -::VerboseRequest::VerboseRequest + + +express::middleware +::JsonMiddleware::JsonMiddleware - + Node43->Node44 - - - + + + - - -Node46 - - -express::middleware -::VHost::instance + + +Node47 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node45->Node46 - - - + + +Node43->Node47 + + + - - -Node47 - - -express::middleware -::VHost::VHost + + +Node49 + + +express::middleware +::VHost::VHost - - -Node46->Node47 - - - + + +Node43->Node49 + + + - - -Node48->Node25 - - - + + +Node45 + + +express::middleware +::JsonMiddleware::instance - - -Node49 - - -express::Response:: -redirect + + +Node44->Node45 + + + - - -Node48->Node49 - - - + + +Node46 + + +express::middleware +::JsonMiddleware::JsonMiddleware - - -Node55 - - -core::eventreceiver -::AcceptEventReceiver -::AcceptEventReceiver + + +Node45->Node46 + + + - - -Node54->Node55 - - - + + +Node48 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node56 - - -core::eventreceiver -::ConnectEventReceiver -::ConnectEventReceiver + + +Node47->Node48 + + + - - -Node54->Node56 - - - + + +Node50 + + +express::middleware +::VHost::instance - - -Node57 - - -core::eventreceiver -::ExceptionalConditionEvent -Receiver::ExceptionalConditionEvent -Receiver + + +Node49->Node50 + + + - - -Node54->Node57 - - - + + +Node51 + + +express::middleware +::VHost::VHost - - -Node58 - - -core::eventreceiver -::ReadEventReceiver -::ReadEventReceiver + + +Node50->Node51 + + + - - -Node54->Node58 - - - + + +Node52->Node29 + + + - - -Node68 - - -core::eventreceiver -::WriteEventReceiver -::WriteEventReceiver + + +Node53 + + +express::Response:: +redirect - - -Node54->Node68 - - - + + +Node52->Node53 + + + Node59 - - -core::pipe::PipeSink -::PipeSink + + +core::eventreceiver +::AcceptEventReceiver +::AcceptEventReceiver - + Node58->Node59 - - - + + + + + + + + +Node60 + + +core::eventreceiver +::ConnectEventReceiver +::ConnectEventReceiver + + + + + +Node58->Node60 + + + Node61 - - -core::socket::stream -::SocketReader::SocketReader + + +core::eventreceiver +::ExceptionalConditionEvent +Receiver::ExceptionalConditionEvent +Receiver - + Node58->Node61 - - - + + + Node62 - - -core::socket::stream -::tls::TLSHandshake:: -TLSHandshake + + +core::eventreceiver +::ReadEventReceiver +::ReadEventReceiver - + Node58->Node62 - - - + + + - - -Node65 - - -core::socket::stream -::tls::TLSShutdown::TLSShutdown - - - - - -Node58->Node65 - - - - - - - - -Node60 - - -core::pipe::Pipe::Pipe + + +Node72 + + +core::eventreceiver +::WriteEventReceiver +::WriteEventReceiver - - -Node59->Node60 - - - + + +Node58->Node72 + + + Node63 - - -core::socket::stream -::tls::TLSHandshake:: -doHandshake + + +core::pipe::PipeSink +::PipeSink - + Node62->Node63 - - - + + + - - -Node64 - - -core::socket::stream -::tls::SocketConnection -::doSSLHandshake + + +Node65 + + +core::socket::stream +::SocketReader::SocketReader - - -Node63->Node64 - - - + + +Node62->Node65 + + + Node66 - - -core::socket::stream -::tls::TLSShutdown::doShutdown + + +core::socket::stream +::tls::TLSHandshake:: +TLSHandshake - - -Node65->Node66 - - - + + +Node62->Node66 + + + - - -Node67 - - -core::socket::stream -::tls::SocketConnection -::doSSLShutdown + + +Node69 + + +core::socket::stream +::tls::TLSShutdown::TLSShutdown - - -Node66->Node67 - - - + + +Node62->Node69 + + + - - -Node68->Node62 - - - + + +Node64 + + +core::pipe::Pipe::Pipe - - -Node68->Node65 - - - + + +Node63->Node64 + + + - - -Node69 - - -core::pipe::PipeSource -::PipeSource + + +Node67 + + +core::socket::stream +::tls::TLSHandshake:: +doHandshake + + + + + +Node66->Node67 + + + + + + + + +Node68 + + +core::socket::stream +::tls::SocketConnection +::doSSLHandshake - - -Node68->Node69 - - - + + +Node67->Node68 + + + Node70 - - -core::socket::stream -::SocketWriter::SocketWriter + + +core::socket::stream +::tls::TLSShutdown::doShutdown - - -Node68->Node70 - - - + + +Node69->Node70 + + + - - -Node69->Node60 - - - + + +Node71 + + +core::socket::stream +::tls::SocketConnection +::doSSLShutdown - - -Node72 - - -core::file::FileReader -::open + + +Node70->Node71 + + + + + + + + +Node72->Node66 + + + - - -Node71->Node72 - - - + + +Node72->Node69 + + + Node73 - - -web::http::client:: -Request::executeSendFile + + +core::pipe::PipeSource +::PipeSource - + Node72->Node73 - - - - - - - - -Node75 - - -web::http::server:: -Response::sendFile - - - - - -Node72->Node75 - - - + + + Node74 - - -web::http::client:: -commands::SendFileCommand -::execute + + +core::socket::stream +::SocketWriter::SocketWriter + + + + + +Node72->Node74 + + + - - -Node73->Node74 - - - + + +Node73->Node64 + + + Node76 - - -express::Response:: -sendFile + + +core::file::FileReader +::open - + Node75->Node76 - - - - - - - - -Node76->Node25 - - - + + + Node77 - - -express::Response:: -download + + +web::http::client:: +Request::executeSendFile - + Node76->Node77 - - - + + + + + + + + +Node79 + + +web::http::server:: +Response::sendFile + + + + + +Node76->Node79 + + + Node78 - - -express::Response:: -download + + +web::http::client:: +commands::SendFileCommand +::execute - + Node77->Node78 - - - + + + - - -Node82 - - -core::timer::IntervalTimer -::IntervalTimer + + +Node80 + + +express::Response:: +sendFile - - -Node81->Node82 - - - + + +Node79->Node80 + + + - - -Node86 - - -core::timer::IntervalTimer -Stopable::IntervalTimerStopable + + +Node80->Node29 + + + - - -Node81->Node86 - - - + + +Node81 + + +express::Response:: +download - - -Node88 - - -core::timer::SingleshotTimer -::SingleshotTimer + + +Node80->Node81 + + + - - -Node81->Node88 - - - + + +Node82 + + +express::Response:: +download - - -Node83 - - -core::timer::Timer -::intervalTimer + + +Node81->Node82 + + + - - -Node82->Node83 - - - + + +Node86 + + +core::timer::IntervalTimer +::IntervalTimer - - -Node84 - - -iot::mqtt::client:: -Mqtt::_onConnack + + +Node85->Node86 + + + - - -Node83->Node84 - - - + + +Node90 + + +core::timer::IntervalTimer +Stopable::IntervalTimerStopable - - -Node85 - - -iot::mqtt::client:: -packets::Connack::deliverPacket + + +Node85->Node90 + + + - - -Node84->Node85 - - - + + +Node92 + + +core::timer::SingleshotTimer +::SingleshotTimer + + + + + +Node85->Node92 + + + Node87 - - -core::timer::Timer -::intervalTimer + + +core::timer::Timer +::intervalTimer - + Node86->Node87 - - - - - - - - -Node89 - - -core::timer::Timer -::singleshotTimer + + + - - -Node88->Node89 - - - + + +Node88 + + +iot::mqtt::client:: +Mqtt::_onConnack - - -Node90 - - -iot::mqtt::Mqtt::initSession + + +Node87->Node88 + + + - - -Node89->Node90 - - - + + +Node89 + + +iot::mqtt::client:: +packets::Connack::deliverPacket - - -Node90->Node84 - - - + + +Node88->Node89 + + + Node91 - - -iot::mqtt::server:: -Mqtt::initSession + + +core::timer::Timer +::intervalTimer @@ -1842,37 +1862,18 @@ Node90->Node91 - - - - - - - -Node92 - - -iot::mqtt::server:: -Mqtt::_onConnect - - - - - -Node91->Node92 - - - + + Node93 - - -iot::mqtt::server:: -packets::Connect::deliverPacket + + +core::timer::Timer +::singleshotTimer @@ -1880,8 +1881,92 @@ Node92->Node93 - - + + + + + + + +Node94 + + +iot::mqtt::Mqtt::initSession + + + + + +Node93->Node94 + + + + + + + + +Node94->Node88 + + + + + + + + +Node95 + + +iot::mqtt::server:: +Mqtt::initSession + + + + + +Node94->Node95 + + + + + + + + +Node96 + + +iot::mqtt::server:: +Mqtt::_onConnect + + + + + +Node95->Node96 + + + + + + + + +Node97 + + +iot::mqtt::server:: +packets::Connect::deliverPacket + + + + + +Node96->Node97 + + + diff --git a/html/classcore_1_1Event_a0a68a616082e2b1aece96499a439884f_icgraph.map b/html/classcore_1_1Event_a0a68a616082e2b1aece96499a439884f_icgraph.map index 3d68b37339..c5b9e72cce 100644 --- a/html/classcore_1_1Event_a0a68a616082e2b1aece96499a439884f_icgraph.map +++ b/html/classcore_1_1Event_a0a68a616082e2b1aece96499a439884f_icgraph.map @@ -1,178 +1,187 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/classcore_1_1Event_a0a68a616082e2b1aece96499a439884f_icgraph.md5 b/html/classcore_1_1Event_a0a68a616082e2b1aece96499a439884f_icgraph.md5 index 03c9c95ea3..2325060e43 100644 --- a/html/classcore_1_1Event_a0a68a616082e2b1aece96499a439884f_icgraph.md5 +++ b/html/classcore_1_1Event_a0a68a616082e2b1aece96499a439884f_icgraph.md5 @@ -1 +1 @@ -a6315852321752bc2b591bc6e7caba8d \ No newline at end of file +2affb32e84afea4186c3084fd6c31ca4 \ No newline at end of file diff --git a/html/classcore_1_1Event_a0a68a616082e2b1aece96499a439884f_icgraph.svg b/html/classcore_1_1Event_a0a68a616082e2b1aece96499a439884f_icgraph.svg index c28a24b6fb..a7c3fe4adc 100644 --- a/html/classcore_1_1Event_a0a68a616082e2b1aece96499a439884f_icgraph.svg +++ b/html/classcore_1_1Event_a0a68a616082e2b1aece96499a439884f_icgraph.svg @@ -4,16 +4,16 @@ - - + + core::Event::span Node1 - -core::Event::span + +core::Event::span @@ -21,9 +21,9 @@ Node2 - -core::EventReceiver -::span + +core::EventReceiver +::span @@ -31,8 +31,8 @@ Node1->Node2 - - + + @@ -40,9 +40,9 @@ Node3 - -core::EventReceiver -::atNextTick + +core::EventReceiver +::atNextTick @@ -50,274 +50,274 @@ Node2->Node3 - - - - - - - -Node55 - - -database::mariadb:: -MariaDBConnection::checkStatus - - - - - -Node2->Node55 - - - - - - - - -Node57 - - -core::socket::stream -::SocketReader::doRead - - - - - -Node2->Node57 - - - + + Node59 - - -core::socket::stream -::SocketWriter::doWrite + + +database::mariadb:: +MariaDBConnection::checkStatus - + Node2->Node59 - - - + + + Node61 - - -database::mariadb:: -MariaDBConnection::execute_async + + +core::socket::stream +::SocketReader::doRead - + Node2->Node61 - - - + + + Node63 - - -core::file::FileReader -::onEvent + + +core::socket::stream +::SocketWriter::doWrite - + Node2->Node63 - - - - - - - - -Node64 - - -iot::mqtt::SubProtocol -::onMessageEnd - - - - - -Node2->Node64 - - - + + + Node65 - - -core::file::FileReader -::resume + + +database::mariadb:: +MariaDBConnection::execute_async - + Node2->Node65 - - - - - - - - -Node66 - - -core::epoll::DescriptorEvent -Publisher::spanActiveEvents - - - - - -Node2->Node66 - - - + + + Node67 - - -core::poll::DescriptorEvent -Publisher::spanActiveEvents + + +core::file::FileReader +::onEvent - + Node2->Node67 - - - + + + Node68 - - -core::select::Descriptor -EventPublisher::spanActiveEvents + + +iot::mqtt::SubProtocol +::onMessageEnd - + Node2->Node68 - - - + + + Node69 - - -core::TimerEventPublisher -::spanActiveEvents + + +core::file::FileReader +::resume - + Node2->Node69 - - - + + + - - -Node82 - - -core::file::FileReader -::start + + +Node70 + + +core::epoll::DescriptorEvent +Publisher::spanActiveEvents - - -Node2->Node82 - - - + + +Node2->Node70 + + + - - -Node83 - - -core::file::FileReader -::stop + + +Node71 + + +core::poll::DescriptorEvent +Publisher::spanActiveEvents - - -Node2->Node83 - - - + + +Node2->Node71 + + + - - -Node84 - - -iot::mqtt::SubProtocol -::SubProtocol + + +Node72 + + +core::select::Descriptor +EventPublisher::spanActiveEvents - - -Node2->Node84 - - - + + +Node2->Node72 + + + + + + + + +Node73 + + +core::TimerEventPublisher +::spanActiveEvents + + + + + +Node2->Node73 + + + + + + + + +Node86 + + +core::file::FileReader +::start + + + + + +Node2->Node86 + + + + + + + + +Node87 + + +core::file::FileReader +::stop + + + + + +Node2->Node87 + + + + + + + + +Node88 + + +iot::mqtt::SubProtocol +::SubProtocol + + + + + +Node2->Node88 + + + @@ -325,9 +325,9 @@ Node4 - -web::http::client:: -SocketContext::initiateRequest + +web::http::client:: +SocketContext::initiateRequest @@ -335,8 +335,8 @@ Node3->Node4 - - + + @@ -344,113 +344,132 @@ Node5 - -web::http::client:: -SocketContext::requestDelivered + +web::http::client:: +SocketContext::requestDelivered - + Node3->Node5 - - - + + + - - -Node16 - - -web::http::server:: -SocketContext::requestCompleted + + +Node17 + + +web::http::client:: +SocketContext::responseDelivered - - -Node3->Node16 - - - + + +Node3->Node17 + + + - - -Node51 - - -core::socket::stream -::SocketAcceptor::SocketAcceptor + + +Node20 + + +web::http::server:: +SocketContext::requestCompleted - - -Node3->Node51 - - - + + +Node3->Node20 + + + - - -Node52 - - -core::socket::stream -::SocketAcceptor::SocketAcceptor + + +Node55 + + +core::socket::stream +::SocketAcceptor::SocketAcceptor - - -Node3->Node52 - - - + + +Node3->Node55 + + + - - -Node53 - - -core::socket::stream -::SocketConnector::SocketConnector + + +Node56 + + +core::socket::stream +::SocketAcceptor::SocketAcceptor - - -Node3->Node53 - - - + + +Node3->Node56 + + + - - -Node54 - - -core::socket::stream -::SocketConnector::SocketConnector + + +Node57 + + +core::socket::stream +::SocketConnector::SocketConnector + + + + + +Node3->Node57 + + + + + + + + +Node58 + + +core::socket::stream +::SocketConnector::SocketConnector - - -Node3->Node54 - - - + + +Node3->Node58 + + + @@ -458,8 +477,8 @@ Node4->Node4 - - + + @@ -467,18 +486,18 @@ Node4->Node5 - - + + Node10 - - -web::http::client:: -SocketContext::requestPrepared + + +web::http::client:: +SocketContext::requestPrepared @@ -486,8 +505,17 @@ Node4->Node10 - - + + + + + + + +Node4->Node17 + + + @@ -495,9 +523,9 @@ Node6 - -web::http::client:: -Request::requestDelivered + +web::http::client:: +Request::requestDelivered @@ -505,8 +533,8 @@ Node5->Node6 - - + + @@ -514,9 +542,9 @@ Node7 - -web::http::client:: -Request::initiate + +web::http::client:: +Request::initiate @@ -524,8 +552,8 @@ Node6->Node7 - - + + @@ -533,9 +561,9 @@ Node8 - -web::http::client:: -Request::onSourceEof + +web::http::client:: +Request::onSourceEof @@ -543,8 +571,8 @@ Node6->Node8 - - + + @@ -552,9 +580,9 @@ Node9 - -web::http::client:: -Request::onSourceError + +web::http::client:: +Request::onSourceError @@ -562,8 +590,8 @@ Node6->Node9 - - + + @@ -571,18 +599,18 @@ Node7->Node4 - - + + Node11 - - -web::http::client:: -Request::end + + +web::http::client:: +Request::requestPrepared @@ -590,113 +618,113 @@ Node10->Node11 - - + + Node12 - - -web::http::client:: -Request::send + + +web::http::client:: +Request::end - - -Node10->Node12 - - - + + +Node11->Node12 + + + - - -Node14 - - -web::http::client:: -Request::sendFile + + +Node13 + + +web::http::client:: +Request::send - - -Node10->Node14 - - - + + +Node11->Node13 + + + Node15 - - -web::http::client:: -Request::upgrade + + +web::http::client:: +Request::sendFile - - -Node10->Node15 - - - + + +Node11->Node15 + + + - - -Node13 - - -web::http::client:: -Request::send + + +Node16 + + +web::http::client:: +Request::upgrade - - -Node12->Node13 - - - + + +Node11->Node16 + + + - - -Node17 - - -web::http::server:: -SocketContext::responseCompleted + + +Node14 + + +web::http::client:: +Request::send - - -Node16->Node17 - - - + + +Node13->Node14 + + + Node18 - - -web::http::server:: -Response::sendCompleted + + +web::http::client:: +SocketContext::deliverResponse @@ -704,18 +732,18 @@ Node17->Node18 - - + + Node19 - - -web::http::server:: -Response::onSourceEof + + +web::http::client:: +SocketContext::onDisconnected @@ -723,55 +751,37 @@ Node18->Node19 - - - - - - - -Node20 - - -web::http::server:: -Response::onSourceError - - - - - -Node18->Node20 - - - + + Node21 - - -web::http::server:: -Response::send + + +web::http::server:: +SocketContext::responseCompleted - - -Node18->Node21 - - - + + +Node20->Node21 + + + Node22 - - -express::Response::send + + +web::http::server:: +Response::sendCompleted @@ -779,112 +789,74 @@ Node21->Node22 - - + + Node23 - - -web::http::server:: -Response::send + + +web::http::server:: +Response::onSourceEof - - -Node21->Node23 - - - + + +Node22->Node23 + + + Node24 - - -web::http::server:: -Response::end + + +web::http::server:: +Response::onSourceError - - -Node23->Node24 - - - - - - - - -Node31 - - -express::Response::send - - - - - -Node23->Node31 - - - + + +Node22->Node24 + + + Node25 - - -express::Response::end - - - - - -Node24->Node25 - - - - - - - - -Node29 - - -web::http::server:: -Response::upgrade + + +web::http::server:: +Response::send - - -Node24->Node29 - - - + + +Node22->Node25 + + + Node26 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +express::Response::send @@ -892,39 +864,37 @@ Node25->Node26 - - + + Node27 - - -express::middleware -::StaticMiddleware:: -instance + + +web::http::server:: +Response::send - - -Node26->Node27 - - - + + +Node25->Node27 + + + Node28 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +web::http::server:: +Response::end @@ -932,162 +902,151 @@ Node27->Node28 - - + + - - -Node30 - - -express::Response:: -upgrade + + +Node35 + + +express::Response::send - - -Node29->Node30 - - - + + +Node27->Node35 + + + - - -Node32 - - -express::Response::json + + +Node29 + + +express::Response::end - - -Node31->Node32 - - - + + +Node28->Node29 + + + Node33 - - -express::Response:: -sendStatus - - - - - -Node31->Node33 - - - + + +web::http::server:: +Response::upgrade - - -Node33->Node26 - - - + + +Node28->Node33 + + + - - -Node34 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +Node30 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node33->Node34 - - - + + +Node29->Node30 + + + - - -Node37 - - -express::RootRoute -::dispatch + + +Node31 + + +express::middleware +::StaticMiddleware:: +instance - - -Node33->Node37 - - - + + +Node30->Node31 + + + - - -Node49 - - -express::Response:: -redirect + + +Node32 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node33->Node49 - - - + + +Node31->Node32 + + + - - -Node35 - - -express::middleware -::BasicAuthentication -::instance + + +Node34 + + +express::Response:: +upgrade - - -Node34->Node35 - - - + + +Node33->Node34 + + + Node36 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +express::Response::json @@ -1095,18 +1054,47 @@ Node35->Node36 - - + + + + + + + +Node37 + + +express::Response:: +sendStatus + + + + + +Node35->Node37 + + + + + + + + +Node37->Node30 + + + Node38 - - -express::RootRoute -::dispatch + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -1114,36 +1102,77 @@ Node37->Node38 - - + + + + + + + +Node41 + + +express::RootRoute +::dispatch + + + + + +Node37->Node41 + + + + + + + + +Node53 + + +express::Response:: +redirect + + + + + +Node37->Node53 + + + Node39 - - -express::Controller -::next + + +express::middleware +::BasicAuthentication +::instance - - -Node37->Node39 - - - + + +Node38->Node39 + + + Node40 - - -express::Next::operator() + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -1151,517 +1180,573 @@ Node39->Node40 - - + + - - -Node40->Node26 - - - + + +Node42 + + +express::RootRoute +::dispatch - - -Node40->Node34 - - - + + +Node41->Node42 + + + - - -Node41 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node43 + + +express::Controller +::next - - -Node40->Node41 - - - + + +Node41->Node43 + + + Node44 - - -express::middleware -::VerboseRequest::VerboseRequest + + +express::Next::operator() - - -Node40->Node44 - - - + + +Node43->Node44 + + + - - -Node46 - - -express::middleware -::VHost::VHost + + +Node44->Node30 + + + - - -Node40->Node46 - - - + + +Node44->Node38 + + + - - -Node42 - - -express::middleware -::JsonMiddleware::instance + + +Node45 + + +express::middleware +::JsonMiddleware::JsonMiddleware - - -Node41->Node42 - - - + + +Node44->Node45 + + + - - -Node43 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node48 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node42->Node43 - - - + + +Node44->Node48 + + + - - -Node45 - - -express::middleware -::VerboseRequest::VerboseRequest + + +Node50 + + +express::middleware +::VHost::VHost - - -Node44->Node45 - - - + + +Node44->Node50 + + + + + + + + +Node46 + + +express::middleware +::JsonMiddleware::instance + + + + + +Node45->Node46 + + + Node47 - - -express::middleware -::VHost::instance + + +express::middleware +::JsonMiddleware::JsonMiddleware - + Node46->Node47 - - - + + + - - -Node48 - - -express::middleware -::VHost::VHost + + +Node49 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node47->Node48 - - - + + +Node48->Node49 + + + - - -Node49->Node26 - - - + + +Node51 + + +express::middleware +::VHost::instance - - -Node50 - - -express::Response:: -redirect + + +Node50->Node51 + + + - - -Node49->Node50 - - - + + +Node52 + + +express::middleware +::VHost::VHost - - -Node56 - - -database::mariadb:: -MariaDBConnection::command -Continue + + +Node51->Node52 + + + - - -Node55->Node56 - - - + + +Node53->Node30 + + + - - -Node58 - - -core::socket::stream -::SocketReader::readEvent + + +Node54 + + +express::Response:: +redirect - - -Node57->Node58 - - - + + +Node53->Node54 + + + Node60 - - -core::socket::stream -::SocketWriter::writeEvent + + +database::mariadb:: +MariaDBConnection::command +Continue - + Node59->Node60 - - - + + + Node62 - - -database::mariadb:: -MariaDBClient::execute_async + + +core::socket::stream +::SocketReader::readEvent - + Node61->Node62 - - - + + + - - -Node70 - - -core::EventMultiplexer -::spanActiveEvents + + +Node64 + + +core::socket::stream +::SocketWriter::writeEvent - - -Node69->Node70 - - - + + +Node63->Node64 + + + - - -Node71 - - -core::EventMultiplexer -::tick + + +Node66 + + +database::mariadb:: +MariaDBClient::execute_async - - -Node70->Node71 - - - + + +Node65->Node66 + + + - - -Node72 - - -core::EventLoop::_tick + + +Node74 + + +core::EventMultiplexer +::spanActiveEvents - - -Node71->Node72 - - - + + +Node73->Node74 + + + - - -Node73 - - -core::EventLoop::free + + +Node75 + + +core::EventMultiplexer +::tick - - -Node72->Node73 - - - + + +Node74->Node75 + + + Node76 - + + +core::EventLoop::_tick + + + + + +Node75->Node76 + + + + + + + + +Node77 + + +core::EventLoop::free + + + + + +Node76->Node77 + + + + + + + + +Node80 + core::EventLoop::start - - -Node72->Node76 - - - + + +Node76->Node80 + + + - - -Node79 - + + +Node83 + core::EventLoop::tick - - -Node72->Node79 - - - + + +Node76->Node83 + + + - - -Node74 - + + +Node78 + core::SNodeC::free - - -Node73->Node74 - - - + + +Node77->Node78 + + + - - -Node73->Node76 - - - + + +Node77->Node80 + + + - - -Node73->Node79 - - - + + +Node77->Node83 + + + - - -Node75 - + + +Node79 + express::WebApp::free - - -Node74->Node75 - + + +Node78->Node79 + - - -Node77 - + + +Node81 + core::SNodeC::start - - -Node76->Node77 - + + +Node80->Node81 + - - -Node78 - + + +Node82 + express::WebApp::start - - -Node77->Node78 - + + +Node81->Node82 + - - -Node80 - + + +Node84 + core::SNodeC::tick - - -Node79->Node80 - + + +Node83->Node84 + - - -Node81 - + + +Node85 + express::WebApp::tick - - -Node80->Node81 - + + +Node84->Node85 + diff --git a/html/classcore_1_1Event_a81e45f64219d897d59324c9dd0573936_icgraph.map b/html/classcore_1_1Event_a81e45f64219d897d59324c9dd0573936_icgraph.map index 9eaa1139b1..c47392f7d0 100644 --- a/html/classcore_1_1Event_a81e45f64219d897d59324c9dd0573936_icgraph.map +++ b/html/classcore_1_1Event_a81e45f64219d897d59324c9dd0573936_icgraph.map @@ -1,201 +1,210 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/classcore_1_1Event_a81e45f64219d897d59324c9dd0573936_icgraph.md5 b/html/classcore_1_1Event_a81e45f64219d897d59324c9dd0573936_icgraph.md5 index a251474dc4..bd45f8ed3c 100644 --- a/html/classcore_1_1Event_a81e45f64219d897d59324c9dd0573936_icgraph.md5 +++ b/html/classcore_1_1Event_a81e45f64219d897d59324c9dd0573936_icgraph.md5 @@ -1 +1 @@ -dc3149891fc4c99e63639ca835c8e6f6 \ No newline at end of file +cf979b2daa71f39d579458d2ab04b46d \ No newline at end of file diff --git a/html/classcore_1_1Event_a81e45f64219d897d59324c9dd0573936_icgraph.svg b/html/classcore_1_1Event_a81e45f64219d897d59324c9dd0573936_icgraph.svg index fe4e594816..3de5e4cfac 100644 --- a/html/classcore_1_1Event_a81e45f64219d897d59324c9dd0573936_icgraph.svg +++ b/html/classcore_1_1Event_a81e45f64219d897d59324c9dd0573936_icgraph.svg @@ -4,16 +4,16 @@ - - + + core::Event::Event Node1 - -core::Event::Event + +core::Event::Event @@ -21,9 +21,9 @@ Node2 - -core::EventReceiver -::EventReceiver + +core::EventReceiver +::EventReceiver @@ -31,8 +31,8 @@ Node1->Node2 - - + + @@ -40,9 +40,9 @@ Node3 - -core::EventReceiver -::atNextTick + +core::EventReceiver +::atNextTick @@ -50,104 +50,104 @@ Node2->Node3 - - + + - - -Node55 - - -core::DescriptorEventReceiver -::DescriptorEventReceiver + + +Node59 + + +core::DescriptorEventReceiver +::DescriptorEventReceiver - - -Node2->Node55 - - - + + +Node2->Node59 + + + - - -Node72 - - -core::file::FileReader -::FileReader + + +Node76 + + +core::file::FileReader +::FileReader - - -Node2->Node72 - - - + + +Node2->Node76 + + + - - -Node80 - - -database::mariadb:: -MariaDBCommandStartEvent -::MariaDBCommandStartEvent + + +Node84 + + +database::mariadb:: +MariaDBCommandStartEvent +::MariaDBCommandStartEvent - - -Node2->Node80 - - - + + +Node2->Node84 + + + - - -Node81 - - -iot::mqtt::OnReceivedFrom -PeerEvent::OnReceivedFromPeerEvent + + +Node85 + + +iot::mqtt::OnReceivedFrom +PeerEvent::OnReceivedFromPeerEvent - - -Node2->Node81 - - - + + +Node2->Node85 + + + - - -Node82 - - -core::TimerEventReceiver -::TimerEventReceiver + + +Node86 + + +core::TimerEventReceiver +::TimerEventReceiver - - -Node2->Node82 - - - + + +Node2->Node86 + + + @@ -155,9 +155,9 @@ Node4 - -web::http::client:: -SocketContext::initiateRequest + +web::http::client:: +SocketContext::initiateRequest @@ -165,8 +165,8 @@ Node3->Node4 - - + + @@ -174,113 +174,132 @@ Node5 - -web::http::client:: -SocketContext::requestDelivered + +web::http::client:: +SocketContext::requestDelivered - + Node3->Node5 - - - + + + - - -Node16 - - -web::http::server:: -SocketContext::requestCompleted + + +Node17 + + +web::http::client:: +SocketContext::responseDelivered - - -Node3->Node16 - - - + + +Node3->Node17 + + + - - -Node51 - - -core::socket::stream -::SocketAcceptor::SocketAcceptor + + +Node20 + + +web::http::server:: +SocketContext::requestCompleted - - -Node3->Node51 - - - + + +Node3->Node20 + + + - - -Node52 - - -core::socket::stream -::SocketAcceptor::SocketAcceptor + + +Node55 + + +core::socket::stream +::SocketAcceptor::SocketAcceptor - - -Node3->Node52 - - - + + +Node3->Node55 + + + - - -Node53 - - -core::socket::stream -::SocketConnector::SocketConnector + + +Node56 + + +core::socket::stream +::SocketAcceptor::SocketAcceptor - - -Node3->Node53 - - - + + +Node3->Node56 + + + - - -Node54 - - -core::socket::stream -::SocketConnector::SocketConnector + + +Node57 + + +core::socket::stream +::SocketConnector::SocketConnector + + + + + +Node3->Node57 + + + + + + + + +Node58 + + +core::socket::stream +::SocketConnector::SocketConnector - - -Node3->Node54 - - - + + +Node3->Node58 + + + @@ -288,8 +307,8 @@ Node4->Node4 - - + + @@ -297,18 +316,18 @@ Node4->Node5 - - + + Node10 - - -web::http::client:: -SocketContext::requestPrepared + + +web::http::client:: +SocketContext::requestPrepared @@ -316,8 +335,17 @@ Node4->Node10 - - + + + + + + + +Node4->Node17 + + + @@ -325,9 +353,9 @@ Node6 - -web::http::client:: -Request::requestDelivered + +web::http::client:: +Request::requestDelivered @@ -335,8 +363,8 @@ Node5->Node6 - - + + @@ -344,9 +372,9 @@ Node7 - -web::http::client:: -Request::initiate + +web::http::client:: +Request::initiate @@ -354,8 +382,8 @@ Node6->Node7 - - + + @@ -363,9 +391,9 @@ Node8 - -web::http::client:: -Request::onSourceEof + +web::http::client:: +Request::onSourceEof @@ -373,8 +401,8 @@ Node6->Node8 - - + + @@ -382,9 +410,9 @@ Node9 - -web::http::client:: -Request::onSourceError + +web::http::client:: +Request::onSourceError @@ -392,8 +420,8 @@ Node6->Node9 - - + + @@ -401,18 +429,18 @@ Node7->Node4 - - + + Node11 - - -web::http::client:: -Request::end + + +web::http::client:: +Request::requestPrepared @@ -420,113 +448,113 @@ Node10->Node11 - - + + Node12 - - -web::http::client:: -Request::send + + +web::http::client:: +Request::end - - -Node10->Node12 - - - + + +Node11->Node12 + + + - - -Node14 - - -web::http::client:: -Request::sendFile + + +Node13 + + +web::http::client:: +Request::send - - -Node10->Node14 - - - + + +Node11->Node13 + + + Node15 - - -web::http::client:: -Request::upgrade + + +web::http::client:: +Request::sendFile - - -Node10->Node15 - - - + + +Node11->Node15 + + + - - -Node13 - - -web::http::client:: -Request::send + + +Node16 + + +web::http::client:: +Request::upgrade - - -Node12->Node13 - - - + + +Node11->Node16 + + + - - -Node17 - - -web::http::server:: -SocketContext::responseCompleted + + +Node14 + + +web::http::client:: +Request::send - - -Node16->Node17 - - - + + +Node13->Node14 + + + Node18 - - -web::http::server:: -Response::sendCompleted + + +web::http::client:: +SocketContext::deliverResponse @@ -534,18 +562,18 @@ Node17->Node18 - - + + Node19 - - -web::http::server:: -Response::onSourceEof + + +web::http::client:: +SocketContext::onDisconnected @@ -553,55 +581,37 @@ Node18->Node19 - - - - - - - -Node20 - - -web::http::server:: -Response::onSourceError - - - - - -Node18->Node20 - - - + + Node21 - - -web::http::server:: -Response::send + + +web::http::server:: +SocketContext::responseCompleted - - -Node18->Node21 - - - + + +Node20->Node21 + + + Node22 - - -express::Response::send + + +web::http::server:: +Response::sendCompleted @@ -609,112 +619,74 @@ Node21->Node22 - - + + Node23 - - -web::http::server:: -Response::send + + +web::http::server:: +Response::onSourceEof - - -Node21->Node23 - - - + + +Node22->Node23 + + + Node24 - - -web::http::server:: -Response::end - - - - - -Node23->Node24 - - - - - - - - -Node31 - - -express::Response::send + + +web::http::server:: +Response::onSourceError - - -Node23->Node31 - - - + + +Node22->Node24 + + + Node25 - - -express::Response::end + + +web::http::server:: +Response::send - - -Node24->Node25 - - - - - - - - -Node29 - - -web::http::server:: -Response::upgrade - - - - - -Node24->Node29 - - - + + +Node22->Node25 + + + Node26 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +express::Response::send @@ -722,39 +694,37 @@ Node25->Node26 - - + + Node27 - - -express::middleware -::StaticMiddleware:: -instance + + +web::http::server:: +Response::send - - -Node26->Node27 - - - + + +Node25->Node27 + + + Node28 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +web::http::server:: +Response::end @@ -762,162 +732,151 @@ Node27->Node28 - - + + - - -Node30 - - -express::Response:: -upgrade + + +Node35 + + +express::Response::send - - -Node29->Node30 - - - + + +Node27->Node35 + + + - - -Node32 - - -express::Response::json + + +Node29 + + +express::Response::end - - -Node31->Node32 - - - + + +Node28->Node29 + + + Node33 - - -express::Response:: -sendStatus - - - - - -Node31->Node33 - - - + + +web::http::server:: +Response::upgrade - - -Node33->Node26 - - - + + +Node28->Node33 + + + - - -Node34 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +Node30 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node33->Node34 - - - + + +Node29->Node30 + + + - - -Node37 - - -express::RootRoute -::dispatch + + +Node31 + + +express::middleware +::StaticMiddleware:: +instance - - -Node33->Node37 - - - + + +Node30->Node31 + + + - - -Node49 - - -express::Response:: -redirect + + +Node32 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node33->Node49 - - - + + +Node31->Node32 + + + - - -Node35 - - -express::middleware -::BasicAuthentication -::instance + + +Node34 + + +express::Response:: +upgrade - - -Node34->Node35 - - - + + +Node33->Node34 + + + Node36 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +express::Response::json @@ -925,18 +884,47 @@ Node35->Node36 - - + + + + + + + +Node37 + + +express::Response:: +sendStatus + + + + + +Node35->Node37 + + + + + + + + +Node37->Node30 + + + Node38 - - -express::RootRoute -::dispatch + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -944,36 +932,77 @@ Node37->Node38 - - + + + + + + + +Node41 + + +express::RootRoute +::dispatch + + + + + +Node37->Node41 + + + + + + + + +Node53 + + +express::Response:: +redirect + + + + + +Node37->Node53 + + + Node39 - - -express::Controller -::next + + +express::middleware +::BasicAuthentication +::instance - - -Node37->Node39 - - - + + +Node38->Node39 + + + Node40 - - -express::Next::operator() + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -981,878 +1010,869 @@ Node39->Node40 - - + + - - -Node40->Node26 - - - + + +Node42 + + +express::RootRoute +::dispatch - - -Node40->Node34 - - - + + +Node41->Node42 + + + - - -Node41 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node43 + + +express::Controller +::next - - -Node40->Node41 - - - + + +Node41->Node43 + + + Node44 - - -express::middleware -::VerboseRequest::VerboseRequest - - - - - -Node40->Node44 - - - - - - - - -Node46 - - -express::middleware -::VHost::VHost - - - - - -Node40->Node46 - - - + + +express::Next::operator() - - -Node42 - - -express::middleware -::JsonMiddleware::instance + + +Node43->Node44 + + + - - -Node41->Node42 - - - + + +Node44->Node30 + + + - - -Node43 - - -express::middleware -::JsonMiddleware::JsonMiddleware - - - - - -Node42->Node43 - - - + + +Node44->Node38 + + + Node45 - - -express::middleware -::VerboseRequest::VerboseRequest + + +express::middleware +::JsonMiddleware::JsonMiddleware - + Node44->Node45 - - - + + + - - -Node47 - - -express::middleware -::VHost::instance + + +Node48 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node46->Node47 - - - + + +Node44->Node48 + + + - - -Node48 - - -express::middleware -::VHost::VHost + + +Node50 + + +express::middleware +::VHost::VHost - - -Node47->Node48 - - - + + +Node44->Node50 + + + - - -Node49->Node26 - - - + + +Node46 + + +express::middleware +::JsonMiddleware::instance - - -Node50 - - -express::Response:: -redirect + + +Node45->Node46 + + + - - -Node49->Node50 - - - + + +Node47 + + +express::middleware +::JsonMiddleware::JsonMiddleware - - -Node56 - - -core::eventreceiver -::AcceptEventReceiver -::AcceptEventReceiver + + +Node46->Node47 + + + - - -Node55->Node56 - - - + + +Node49 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node57 - - -core::eventreceiver -::ConnectEventReceiver -::ConnectEventReceiver + + +Node48->Node49 + + + - - -Node55->Node57 - - - + + +Node51 + + +express::middleware +::VHost::instance - - -Node58 - - -core::eventreceiver -::ExceptionalConditionEvent -Receiver::ExceptionalConditionEvent -Receiver + + +Node50->Node51 + + + - - -Node55->Node58 - - - + + +Node52 + + +express::middleware +::VHost::VHost - - -Node59 - - -core::eventreceiver -::ReadEventReceiver -::ReadEventReceiver + + +Node51->Node52 + + + - - -Node55->Node59 - - - + + +Node53->Node30 + + + - - -Node69 - - -core::eventreceiver -::WriteEventReceiver -::WriteEventReceiver + + +Node54 + + +express::Response:: +redirect - - -Node55->Node69 - - - + + +Node53->Node54 + + + Node60 - - -core::pipe::PipeSink -::PipeSink + + +core::eventreceiver +::AcceptEventReceiver +::AcceptEventReceiver - + Node59->Node60 - - - + + + + + + + + +Node61 + + +core::eventreceiver +::ConnectEventReceiver +::ConnectEventReceiver + + + + + +Node59->Node61 + + + Node62 - - -core::socket::stream -::SocketReader::SocketReader + + +core::eventreceiver +::ExceptionalConditionEvent +Receiver::ExceptionalConditionEvent +Receiver - + Node59->Node62 - - - + + + Node63 - - -core::socket::stream -::tls::TLSHandshake:: -TLSHandshake + + +core::eventreceiver +::ReadEventReceiver +::ReadEventReceiver - + Node59->Node63 - - - + + + - - -Node66 - - -core::socket::stream -::tls::TLSShutdown::TLSShutdown - - - - - -Node59->Node66 - - - - - - - - -Node61 - - -core::pipe::Pipe::Pipe + + +Node73 + + +core::eventreceiver +::WriteEventReceiver +::WriteEventReceiver - - -Node60->Node61 - - - + + +Node59->Node73 + + + Node64 - - -core::socket::stream -::tls::TLSHandshake:: -doHandshake + + +core::pipe::PipeSink +::PipeSink - + Node63->Node64 - - - + + + - - -Node65 - - -core::socket::stream -::tls::SocketConnection -::doSSLHandshake + + +Node66 + + +core::socket::stream +::SocketReader::SocketReader - - -Node64->Node65 - - - + + +Node63->Node66 + + + Node67 - - -core::socket::stream -::tls::TLSShutdown::doShutdown + + +core::socket::stream +::tls::TLSHandshake:: +TLSHandshake - - -Node66->Node67 - - - + + +Node63->Node67 + + + - - -Node68 - - -core::socket::stream -::tls::SocketConnection -::doSSLShutdown + + +Node70 + + +core::socket::stream +::tls::TLSShutdown::TLSShutdown - - -Node67->Node68 - - - + + +Node63->Node70 + + + - - -Node69->Node63 - - - + + +Node65 + + +core::pipe::Pipe::Pipe - - -Node69->Node66 - - - + + +Node64->Node65 + + + - - -Node70 - - -core::pipe::PipeSource -::PipeSource + + +Node68 + + +core::socket::stream +::tls::TLSHandshake:: +doHandshake + + + + + +Node67->Node68 + + + + + + + + +Node69 + + +core::socket::stream +::tls::SocketConnection +::doSSLHandshake - - -Node69->Node70 - - - + + +Node68->Node69 + + + Node71 - - -core::socket::stream -::SocketWriter::SocketWriter + + +core::socket::stream +::tls::TLSShutdown::doShutdown - - -Node69->Node71 - - - + + +Node70->Node71 + + + - - -Node70->Node61 - - - + + +Node72 + + +core::socket::stream +::tls::SocketConnection +::doSSLShutdown - - -Node73 - - -core::file::FileReader -::open + + +Node71->Node72 + + + + + + + + +Node73->Node67 + + + - - -Node72->Node73 - - - + + +Node73->Node70 + + + Node74 - - -web::http::client:: -Request::executeSendFile + + +core::pipe::PipeSource +::PipeSource - + Node73->Node74 - - - - - - - - -Node76 - - -web::http::server:: -Response::sendFile - - - - - -Node73->Node76 - - - + + + Node75 - - -web::http::client:: -commands::SendFileCommand -::execute + + +core::socket::stream +::SocketWriter::SocketWriter + + + + + +Node73->Node75 + + + - - -Node74->Node75 - - - + + +Node74->Node65 + + + Node77 - - -express::Response:: -sendFile + + +core::file::FileReader +::open - + Node76->Node77 - - - - - - - - -Node77->Node26 - - - + + + Node78 - - -express::Response:: -download + + +web::http::client:: +Request::executeSendFile - + Node77->Node78 - - - + + + + + + + + +Node80 + + +web::http::server:: +Response::sendFile + + + + + +Node77->Node80 + + + Node79 - - -express::Response:: -download + + +web::http::client:: +commands::SendFileCommand +::execute - + Node78->Node79 - - - + + + - - -Node83 - - -core::timer::IntervalTimer -::IntervalTimer + + +Node81 + + +express::Response:: +sendFile - - -Node82->Node83 - - - + + +Node80->Node81 + + + - - -Node87 - - -core::timer::IntervalTimer -Stopable::IntervalTimerStopable + + +Node81->Node30 + + + - - -Node82->Node87 - - - + + +Node82 + + +express::Response:: +download - - -Node89 - - -core::timer::SingleshotTimer -::SingleshotTimer + + +Node81->Node82 + + + - - -Node82->Node89 - - - + + +Node83 + + +express::Response:: +download - - -Node84 - - -core::timer::Timer -::intervalTimer + + +Node82->Node83 + + + - - -Node83->Node84 - - - + + +Node87 + + +core::timer::IntervalTimer +::IntervalTimer - - -Node85 - - -iot::mqtt::client:: -Mqtt::_onConnack + + +Node86->Node87 + + + - - -Node84->Node85 - - - + + +Node91 + + +core::timer::IntervalTimer +Stopable::IntervalTimerStopable - - -Node86 - - -iot::mqtt::client:: -packets::Connack::deliverPacket + + +Node86->Node91 + + + - - -Node85->Node86 - - - + + +Node93 + + +core::timer::SingleshotTimer +::SingleshotTimer + + + + + +Node86->Node93 + + + Node88 - - -core::timer::Timer -::intervalTimer + + +core::timer::Timer +::intervalTimer - + Node87->Node88 - - - - - - - - -Node90 - - -core::timer::Timer -::singleshotTimer + + + - - -Node89->Node90 - - - + + +Node89 + + +iot::mqtt::client:: +Mqtt::_onConnack - - -Node91 - - -iot::mqtt::Mqtt::initSession + + +Node88->Node89 + + + - - -Node90->Node91 - - - + + +Node90 + + +iot::mqtt::client:: +packets::Connack::deliverPacket - - -Node91->Node85 - - - + + +Node89->Node90 + + + Node92 - - -iot::mqtt::server:: -Mqtt::initSession + + +core::timer::Timer +::intervalTimer @@ -1860,37 +1880,18 @@ Node91->Node92 - - - - - - - -Node93 - - -iot::mqtt::server:: -Mqtt::_onConnect - - - - - -Node92->Node93 - - - + + Node94 - - -iot::mqtt::server:: -packets::Connect::deliverPacket + + +core::timer::Timer +::singleshotTimer @@ -1898,8 +1899,92 @@ Node93->Node94 - - + + + + + + + +Node95 + + +iot::mqtt::Mqtt::initSession + + + + + +Node94->Node95 + + + + + + + + +Node95->Node89 + + + + + + + + +Node96 + + +iot::mqtt::server:: +Mqtt::initSession + + + + + +Node95->Node96 + + + + + + + + +Node97 + + +iot::mqtt::server:: +Mqtt::_onConnect + + + + + +Node96->Node97 + + + + + + + + +Node98 + + +iot::mqtt::server:: +packets::Connect::deliverPacket + + + + + +Node97->Node98 + + + diff --git a/html/classcore_1_1Observer-members.html b/html/classcore_1_1Observer-members.html index 172c6dbe34..c937c5e515 100644 --- a/html/classcore_1_1Observer-members.html +++ b/html/classcore_1_1Observer-members.html @@ -98,16 +98,17 @@
observationCountercore::Observer
private observed()core::Observerprotected Observer()=defaultcore::Observer - Observer(const Observer &observer)core::Observer - unObserved()core::Observerprotected - unobservedEvent()=0core::Observerprotectedpure virtual - ~Observer()core::Observervirtual + Observer(Observer &)=deletecore::Observer + Observer(Observer &&)=deletecore::Observer + unObserved()core::Observerprotected + unobservedEvent()=0core::Observerprotectedpure virtual + ~Observer()core::Observervirtual diff --git a/html/classcore_1_1Observer.html b/html/classcore_1_1Observer.html index 07ec460e44..f7512c054a 100644 --- a/html/classcore_1_1Observer.html +++ b/html/classcore_1_1Observer.html @@ -114,8 +114,10 @@ Public Member Functions

 Observer ()=default   - Observer (const Observer &observer) -  + Observer (Observer &)=delete +  + Observer (Observer &&)=delete +  virtual ~Observer ()   @@ -138,7 +140,7 @@

Definition at line 39 of file DescriptorEventReceiver.h.

Constructor & Destructor Documentation

-

◆ Observer() [1/2]

+

◆ Observer() [1/3]

@@ -162,26 +164,56 @@

-

◆ Observer() [2/2]

+ +

◆ Observer() [2/3]

+

+ + + + +
- - + +
core::Observer::Observer (const Observerobserver)Observer)
+
+delete
+
+ +
+ + +

◆ Observer() [3/3]

+ +
+
+ + + + + +
+ + + + + + + + +
core::Observer::Observer (Observer && )
+
+delete
-

Definition at line 35 of file DescriptorEventReceiver.cpp.

-
35 { // Do not copy observationCounter
-
36 }
-
@@ -207,9 +239,9 @@

-

Definition at line 38 of file DescriptorEventReceiver.cpp.

-
38 {
-
39 }
+

Definition at line 35 of file DescriptorEventReceiver.cpp.

+
35 {
+
36 }
@@ -237,15 +269,15 @@

-

Definition at line 41 of file DescriptorEventReceiver.cpp.

-
41 {
- -
43 }
- +

Definition at line 38 of file DescriptorEventReceiver.cpp.

+
38 {
+ +
40 }
+
-

References observationCounter.

+

References observationCounter.

-

Referenced by core::DescriptorEventReceiver::setEnabled().

+

Referenced by core::DescriptorEventReceiver::setEnabled().

Here is the caller graph for this function:
@@ -277,19 +309,19 @@

-

Definition at line 45 of file DescriptorEventReceiver.cpp.

-
45 {
- -
47
-
48 if (observationCounter == 0) {
- -
50 }
-
51 }
+

Definition at line 42 of file DescriptorEventReceiver.cpp.

+
42 {
+ +
44
+
45 if (observationCounter == 0) {
+ +
47 }
+
48 }
virtual void unobservedEvent()=0
-

References observationCounter, and unobservedEvent().

+

References observationCounter, and unobservedEvent().

-

Referenced by core::DescriptorEventReceiver::setDisabled().

+

Referenced by core::DescriptorEventReceiver::setDisabled().

Here is the call graph for this function:
@@ -374,7 +406,7 @@

    - +

diff --git a/html/classcore_1_1Observer.js b/html/classcore_1_1Observer.js index e97b905b16..ec9019a6f5 100644 --- a/html/classcore_1_1Observer.js +++ b/html/classcore_1_1Observer.js @@ -1,7 +1,8 @@ var classcore_1_1Observer = [ [ "Observer", "classcore_1_1Observer.html#a93fb4b95625771e62cf07a9c48bc5b51", null ], - [ "Observer", "classcore_1_1Observer.html#aefd8d3c417dc610453e2b911f0564851", null ], + [ "Observer", "classcore_1_1Observer.html#a9a64f216dda990287c741221d25a1f8b", null ], + [ "Observer", "classcore_1_1Observer.html#a7d4c65dd5badbde3a70821a4325ecb35", null ], [ "~Observer", "classcore_1_1Observer.html#a8cd1b8b181c60c1176c9e4bfe51d3125", null ], [ "observed", "classcore_1_1Observer.html#aeff595f74f25efea85406cf700e13550", null ], [ "unObserved", "classcore_1_1Observer.html#a00846551b99f8dbde144dd8b7a0a2aef", null ], diff --git a/html/classcore_1_1SNodeC-members.html b/html/classcore_1_1SNodeC-members.html index 7e4b563ad1..0e7ab8bfa1 100644 --- a/html/classcore_1_1SNodeC-members.html +++ b/html/classcore_1_1SNodeC-members.html @@ -109,7 +109,7 @@ diff --git a/html/classcore_1_1SNodeC.html b/html/classcore_1_1SNodeC.html index 9f9087bfe0..c4cbfb6a12 100644 --- a/html/classcore_1_1SNodeC.html +++ b/html/classcore_1_1SNodeC.html @@ -389,7 +389,7 @@

References core::EventLoop::getEventLoopState().

-

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::realConnect(), core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::realListen(), and express::WebApp::state().

+

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::realConnect(), core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::realListen(), and express::WebApp::state().

Here is the call graph for this function:
@@ -504,7 +504,7 @@

    - +

diff --git a/html/classcore_1_1Timer-members.html b/html/classcore_1_1Timer-members.html index a1bc675d40..04c3a017eb 100644 --- a/html/classcore_1_1Timer-members.html +++ b/html/classcore_1_1Timer-members.html @@ -110,7 +110,7 @@ diff --git a/html/classcore_1_1Timer.html b/html/classcore_1_1Timer.html index dc757664c1..2dd03021d3 100644 --- a/html/classcore_1_1Timer.html +++ b/html/classcore_1_1Timer.html @@ -514,7 +514,7 @@

    - +

diff --git a/html/classcore_1_1TimerEventPublisher-members.html b/html/classcore_1_1TimerEventPublisher-members.html index 1ab34d38d1..4971353cab 100644 --- a/html/classcore_1_1TimerEventPublisher-members.html +++ b/html/classcore_1_1TimerEventPublisher-members.html @@ -111,7 +111,7 @@ diff --git a/html/classcore_1_1TimerEventPublisher.html b/html/classcore_1_1TimerEventPublisher.html index eb909a9c31..b12eca3029 100644 --- a/html/classcore_1_1TimerEventPublisher.html +++ b/html/classcore_1_1TimerEventPublisher.html @@ -532,7 +532,7 @@

    - +

diff --git a/html/classcore_1_1TimerEventPublisher_1_1timernode__lt-members.html b/html/classcore_1_1TimerEventPublisher_1_1timernode__lt-members.html index 8aae1d4490..b3ba5eeb80 100644 --- a/html/classcore_1_1TimerEventPublisher_1_1timernode__lt-members.html +++ b/html/classcore_1_1TimerEventPublisher_1_1timernode__lt-members.html @@ -101,7 +101,7 @@ diff --git a/html/classcore_1_1TimerEventPublisher_1_1timernode__lt.html b/html/classcore_1_1TimerEventPublisher_1_1timernode__lt.html index bfdc1536a7..507d5b5eae 100644 --- a/html/classcore_1_1TimerEventPublisher_1_1timernode__lt.html +++ b/html/classcore_1_1TimerEventPublisher_1_1timernode__lt.html @@ -160,7 +160,7 @@

diff --git a/html/classcore_1_1TimerEventReceiver-members.html b/html/classcore_1_1TimerEventReceiver-members.html index 2bc2843267..df438ae486 100644 --- a/html/classcore_1_1TimerEventReceiver-members.html +++ b/html/classcore_1_1TimerEventReceiver-members.html @@ -104,11 +104,15 @@ enable()core::TimerEventReceiverprotected eventcore::EventReceiverprivate EventReceiver(const std::string &name)core::EventReceiver + EventReceiver(EventReceiver &)=deletecore::EventReceiver + EventReceiver(EventReceiver &&)=deletecore::EventReceiver getName() constcore::EventReceiver getTimeoutAbsolut() constcore::TimerEventReceiverprotected getTimeoutRelative(const utils::Timeval &currentTime) constcore::TimerEventReceiverprotected onEvent(const utils::Timeval &currentTime) finalcore::TimerEventReceiverprivatevirtual operator=(const TimerEventReceiver &)=deletecore::TimerEventReceiver + core::EventReceiver::operator=(EventReceiver &)=deletecore::EventReceiver + core::EventReceiver::operator=(EventReceiver &&)=deletecore::EventReceiver relax()core::EventReceiver restart()core::TimerEventReceiver setTimer(Timer *timer)core::TimerEventReceiverprivate @@ -128,7 +132,7 @@ diff --git a/html/classcore_1_1TimerEventReceiver.html b/html/classcore_1_1TimerEventReceiver.html index 52aa67d0f6..cd4f597b0b 100644 --- a/html/classcore_1_1TimerEventReceiver.html +++ b/html/classcore_1_1TimerEventReceiver.html @@ -370,7 +370,7 @@

References core::EventReceiver::EventReceiver(), and core::EventReceiver::span().

-

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::responseDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

Here is the call graph for this function:
-
+
@@ -583,9 +583,9 @@

66 return event.getName();
67 }
-

References core::EventReceiver::event, and core::Event::getName().

+

References core::EventReceiver::event, and core::Event::getName().

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

Here is the call graph for this function:
@@ -781,7 +781,7 @@

62 event.relax();

63 }
-

References core::EventReceiver::event, and core::Event::relax().

+

References core::EventReceiver::event, and core::Event::relax().

Here is the call graph for this function:
@@ -897,9 +897,9 @@

58 event.span();

59 }
-

References core::EventReceiver::event, and core::Event::span().

+

References core::EventReceiver::event, and core::Event::span().

-

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

+

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

Here is the call graph for this function:
-
+
@@ -1115,7 +1115,7 @@

-

Definition at line 59 of file EventReceiver.h.

+

Definition at line 65 of file EventReceiver.h.

Referenced by core::EventReceiver::EventReceiver(), core::EventReceiver::getName(), core::EventReceiver::relax(), and core::EventReceiver::span().

@@ -1183,7 +1183,7 @@

    - +
diff --git a/html/classcore_1_1epoll_1_1DescriptorEventPublisher-members.html b/html/classcore_1_1epoll_1_1DescriptorEventPublisher-members.html index 0f009d7b5b..a1e9bd222f 100644 --- a/html/classcore_1_1epoll_1_1DescriptorEventPublisher-members.html +++ b/html/classcore_1_1epoll_1_1DescriptorEventPublisher-members.html @@ -129,7 +129,7 @@ diff --git a/html/classcore_1_1epoll_1_1DescriptorEventPublisher.html b/html/classcore_1_1epoll_1_1DescriptorEventPublisher.html index 04c3f5ecc0..b393d70e57 100644 --- a/html/classcore_1_1epoll_1_1DescriptorEventPublisher.html +++ b/html/classcore_1_1epoll_1_1DescriptorEventPublisher.html @@ -278,7 +278,7 @@

69 }
std::map< int, std::list< DescriptorEventReceiver * > > observedEventReceivers
-

References core::DescriptorEventReceiver::checkTimeout(), and core::DescriptorEventPublisher::observedEventReceivers.

+

References core::DescriptorEventReceiver::checkTimeout(), and core::DescriptorEventPublisher::observedEventReceivers.

Referenced by core::EventMultiplexer::checkTimedOutEvents().

@@ -326,7 +326,7 @@

144 }

145 }
-

References core::DescriptorEventReceiver::disable(), and core::DescriptorEventPublisher::observedEventReceivers.

+

References core::DescriptorEventReceiver::disable(), and core::DescriptorEventPublisher::observedEventReceivers.

Referenced by core::EventMultiplexer::terminate().

@@ -374,7 +374,7 @@

References core::DescriptorEventPublisher::observedEventReceiversDirty.

-

Referenced by core::DescriptorEventReceiver::disable().

+

Referenced by core::DescriptorEventReceiver::disable().

Here is the caller graph for this function:
@@ -421,9 +421,9 @@

virtual void muxOff(DescriptorEventReceiver *descriptorEventReceiver)=0

static Timeval currentTime()
Definition Timeval.cpp:54

-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventPublisher::muxAdd(), core::DescriptorEventPublisher::muxOff(), core::DescriptorEventPublisher::observedEventReceivers, and core::DescriptorEventReceiver::setEnabled().

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventPublisher::muxAdd(), core::DescriptorEventPublisher::muxOff(), core::DescriptorEventPublisher::observedEventReceivers, and core::DescriptorEventReceiver::setEnabled().

-

Referenced by core::DescriptorEventReceiver::enable().

+

Referenced by core::DescriptorEventReceiver::enable().

Here is the call graph for this function:
@@ -508,9 +508,9 @@

128 return nextTimeout;

129 }
- + -

References core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventPublisher::observedEventReceivers, core::DescriptorEventPublisher::observedEventReceiversDirty, and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventPublisher::observedEventReceivers, core::DescriptorEventPublisher::observedEventReceiversDirty, and utils::Timeval::operator=().

Referenced by core::EventMultiplexer::getNextTimeout().

@@ -834,7 +834,7 @@

virtual void muxDel(int fd)=0

virtual void muxOn(DescriptorEventReceiver *descriptorEventReceiver)=0
-

References core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventPublisher::muxDel(), core::DescriptorEventPublisher::muxOff(), core::DescriptorEventPublisher::muxOn(), core::DescriptorEventPublisher::observedEventReceivers, core::DescriptorEventPublisher::observedEventReceiversDirty, and core::DescriptorEventReceiver::triggered().

+

References core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventPublisher::muxDel(), core::DescriptorEventPublisher::muxOff(), core::DescriptorEventPublisher::muxOn(), core::DescriptorEventPublisher::observedEventReceivers, core::DescriptorEventPublisher::observedEventReceiversDirty, and core::DescriptorEventReceiver::triggered().

Referenced by core::EventMultiplexer::releaseExpiredResources().

@@ -881,7 +881,7 @@

References core::DescriptorEventPublisher::muxOn().

-

Referenced by core::DescriptorEventReceiver::resume().

+

Referenced by core::DescriptorEventReceiver::resume().

Here is the call graph for this function:
@@ -928,7 +928,7 @@

136 }

137 }

-

References core::DescriptorEventPublisher::observedEventReceivers, and core::DescriptorEventReceiver::onSignal().

+

References core::DescriptorEventPublisher::observedEventReceivers, and core::DescriptorEventReceiver::onSignal().

Referenced by core::EventMultiplexer::signal().

@@ -983,7 +983,7 @@

136 }

137 }
- + @@ -1030,7 +1030,7 @@

References core::DescriptorEventPublisher::muxOff().

-

Referenced by core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::suspend().

Here is the call graph for this function:
@@ -1211,7 +1211,7 @@

diff --git a/html/classcore_1_1epoll_1_1DescriptorEventPublisher_1_1EPollEvents-members.html b/html/classcore_1_1epoll_1_1DescriptorEventPublisher_1_1EPollEvents-members.html index b850b50f5e..da063a208d 100644 --- a/html/classcore_1_1epoll_1_1DescriptorEventPublisher_1_1EPollEvents-members.html +++ b/html/classcore_1_1epoll_1_1DescriptorEventPublisher_1_1EPollEvents-members.html @@ -113,7 +113,7 @@ diff --git a/html/classcore_1_1epoll_1_1DescriptorEventPublisher_1_1EPollEvents.html b/html/classcore_1_1epoll_1_1DescriptorEventPublisher_1_1EPollEvents.html index 323c02ab26..2601cbce68 100644 --- a/html/classcore_1_1epoll_1_1DescriptorEventPublisher_1_1EPollEvents.html +++ b/html/classcore_1_1epoll_1_1DescriptorEventPublisher_1_1EPollEvents.html @@ -333,12 +333,12 @@

56 muxMod(eventReceiver->getRegisteredFd(), events, eventReceiver);
57 }
58 }
- +
void muxMod(int fd, uint32_t events, core::DescriptorEventReceiver *eventReceiver) const
int epoll_ctl(int epfd, int op, int fd, epoll_event *event)
Definition epoll.cpp:45
-

References epfd, core::system::epoll_ctl(), ePollEvents, events, core::DescriptorEventReceiver::getRegisteredFd(), interestCount, and muxMod().

+

References epfd, core::system::epoll_ctl(), ePollEvents, events, core::DescriptorEventReceiver::getRegisteredFd(), interestCount, and muxMod().

Referenced by core::epoll::DescriptorEventPublisher::muxAdd().

@@ -489,7 +489,7 @@

89 muxMod(eventReceiver->getRegisteredFd(), 0, eventReceiver);

90 }
-

References core::DescriptorEventReceiver::getRegisteredFd(), and muxMod().

+

References core::DescriptorEventReceiver::getRegisteredFd(), and muxMod().

Referenced by core::epoll::DescriptorEventPublisher::muxOff().

@@ -526,7 +526,7 @@

85 muxMod(eventReceiver->getRegisteredFd(), events, eventReceiver);

86 }
-

References events, core::DescriptorEventReceiver::getRegisteredFd(), and muxMod().

+

References events, core::DescriptorEventReceiver::getRegisteredFd(), and muxMod().

Referenced by core::epoll::DescriptorEventPublisher::muxOn().

@@ -657,7 +657,7 @@

diff --git a/html/classcore_1_1epoll_1_1EventMultiplexer-members.html b/html/classcore_1_1epoll_1_1EventMultiplexer-members.html index 1cf0b80166..e841170593 100644 --- a/html/classcore_1_1epoll_1_1EventMultiplexer-members.html +++ b/html/classcore_1_1epoll_1_1EventMultiplexer-members.html @@ -132,7 +132,7 @@ diff --git a/html/classcore_1_1epoll_1_1EventMultiplexer.html b/html/classcore_1_1epoll_1_1EventMultiplexer.html index 19776ea5d0..e7d6d5a33e 100644 --- a/html/classcore_1_1epoll_1_1EventMultiplexer.html +++ b/html/classcore_1_1epoll_1_1EventMultiplexer.html @@ -529,9 +529,9 @@

core::TimerEventPublisher *const timerEventPublisher
utils::Timeval getNextTimeout(const utils::Timeval &currentTime)
- + -

References core::EventMultiplexer::descriptorEventPublishers, core::EventMultiplexer::EventQueue::empty(), core::EventMultiplexer::eventQueue, core::TimerEventPublisher::getNextTimeout(), core::DescriptorEventPublisher::getNextTimeout(), core::DescriptorEventReceiver::TIMEOUT::MAX, utils::Timeval::operator=(), core::EventMultiplexer::timerEventPublisher, and utils::Timeval::Timeval().

+

References core::EventMultiplexer::descriptorEventPublishers, core::EventMultiplexer::EventQueue::empty(), core::EventMultiplexer::eventQueue, core::TimerEventPublisher::getNextTimeout(), core::DescriptorEventPublisher::getNextTimeout(), core::DescriptorEventReceiver::TIMEOUT::MAX, utils::Timeval::operator=(), core::EventMultiplexer::timerEventPublisher, and utils::Timeval::Timeval().

Referenced by core::EventMultiplexer::waitForEvents().

-
+
@@ -1362,7 +1362,7 @@

    - +
diff --git a/html/classcore_1_1eventreceiver_1_1AcceptEventReceiver-members.html b/html/classcore_1_1eventreceiver_1_1AcceptEventReceiver-members.html index 4e3bc4bca2..d552d37e38 100644 --- a/html/classcore_1_1eventreceiver_1_1AcceptEventReceiver-members.html +++ b/html/classcore_1_1eventreceiver_1_1AcceptEventReceiver-members.html @@ -101,53 +101,56 @@ atNextTick(const std::function< void(void)> &callBack)core::EventReceiverstatic checkTimeout(const utils::Timeval &currentTime)core::DescriptorEventReceiver descriptorEventPublishercore::DescriptorEventReceiverprivate - DescriptorEventReceiver(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiver - DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiver - destruct()core::EventReceivervirtual - disable()core::DescriptorEventReceiverprotected - dispatchEvent() finalcore::eventreceiver::AcceptEventReceiverprivatevirtual - enable(int fd)core::DescriptorEventReceiverprotected - enabledcore::DescriptorEventReceiverprivate - eventcore::EventReceiverprivate - eventCountercore::DescriptorEventReceiverprivate - EventReceiver(const std::string &name)core::EventReceiver - getName() constcore::EventReceiver - getRegisteredFd() constcore::DescriptorEventReceiver - getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiver - initialTimeoutcore::DescriptorEventReceiverprivate - isEnabled() constcore::DescriptorEventReceiver - isSuspended() constcore::DescriptorEventReceiver - lastTriggeredcore::DescriptorEventReceiverprivate - maxInactivitycore::DescriptorEventReceiverprivate - observationCountercore::Observerprivate - observed()core::Observerprotected - observedFdcore::DescriptorEventReceiverprivate - Observer()=defaultcore::Observerprotected - Observer(const Observer &observer)core::Observerprotected + DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiver + destruct()core::EventReceivervirtual + disable()core::DescriptorEventReceiverprotected + dispatchEvent() finalcore::eventreceiver::AcceptEventReceiverprivatevirtual + enable(int fd)core::DescriptorEventReceiverprotected + enabledcore::DescriptorEventReceiverprivate + eventcore::EventReceiverprivate + eventCountercore::DescriptorEventReceiverprivate + EventReceiver(const std::string &name)core::EventReceiver + EventReceiver(EventReceiver &)=deletecore::EventReceiver + EventReceiver(EventReceiver &&)=deletecore::EventReceiver + getName() constcore::EventReceiver + getRegisteredFd() constcore::DescriptorEventReceiver + getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiver + initialTimeoutcore::DescriptorEventReceiverprivate + isEnabled() constcore::DescriptorEventReceiver + isSuspended() constcore::DescriptorEventReceiver + lastTriggeredcore::DescriptorEventReceiverprivate + maxInactivitycore::DescriptorEventReceiverprivate + observationCountercore::Observerprivate + observed()core::Observerprotected + observedFdcore::DescriptorEventReceiverprivate + Observer()=defaultcore::Observerprotected + Observer(Observer &)=deletecore::Observerprotected + Observer(Observer &&)=deletecore::Observerprotected onEvent(const utils::Timeval &currentTime) finalcore::DescriptorEventReceiverprivatevirtual onSignal(int signum)core::DescriptorEventReceiverprivate - operator=(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiver - relax()core::EventReceiver - resume()core::DescriptorEventReceiverprotected - setDisabled()core::DescriptorEventReceiverprivate - setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiver - signalEvent(int signum) overridecore::eventreceiver::AcceptEventReceiverprivatevirtual - span()core::EventReceiver - suspend()core::DescriptorEventReceiverprotected - suspendedcore::DescriptorEventReceiverprivate - timeoutEvent() finalcore::eventreceiver::AcceptEventReceiverprivatevirtual - triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - unObserved()core::Observerprotected - unobservedEvent()=0core::Observerprotectedpure virtual - ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual - ~Observer()core::Observerprotectedvirtual + operator=(EventReceiver &)=deletecore::EventReceiver + operator=(EventReceiver &&)=deletecore::EventReceiver + relax()core::EventReceiver + resume()core::DescriptorEventReceiverprotected + setDisabled()core::DescriptorEventReceiverprivate + setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiver + signalEvent(int signum) overridecore::eventreceiver::AcceptEventReceiverprivatevirtual + span()core::EventReceiver + suspend()core::DescriptorEventReceiverprotected + suspendedcore::DescriptorEventReceiverprivate + timeoutEvent() finalcore::eventreceiver::AcceptEventReceiverprivatevirtual + triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + unObserved()core::Observerprotected + unobservedEvent()=0core::Observerprotectedpure virtual + ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual + ~Observer()core::Observerprotectedvirtual diff --git a/html/classcore_1_1eventreceiver_1_1AcceptEventReceiver.html b/html/classcore_1_1eventreceiver_1_1AcceptEventReceiver.html index 02f0cd5d00..1ecf8afc3c 100644 --- a/html/classcore_1_1eventreceiver_1_1AcceptEventReceiver.html +++ b/html/classcore_1_1eventreceiver_1_1AcceptEventReceiver.html @@ -245,15 +245,15 @@

Definition at line 31 of file AcceptEventReceiver.cpp.

-
33 name + " accept",
+
33 name + " Accept",
34 core::EventLoop::instance().getEventMultiplexer().getDescriptorEventPublisher(core::EventMultiplexer::DISP_TYPE::RD),
35 timeout) {
36 }
- +
static EventLoop & instance()
Definition EventLoop.cpp:59
-

References core::DescriptorEventReceiver::DescriptorEventReceiver(), core::EventMultiplexer::getDescriptorEventPublisher(), core::EventLoop::getEventMultiplexer(), core::EventLoop::instance(), and core::EventMultiplexer::RD.

+

References core::DescriptorEventReceiver::DescriptorEventReceiver(), core::EventMultiplexer::getDescriptorEventPublisher(), core::EventLoop::getEventMultiplexer(), core::EventLoop::instance(), and core::EventMultiplexer::RD.

Here is the call graph for this function:
-

References core::DescriptorEventReceiver::disable().

+

References core::DescriptorEventReceiver::disable().

Referenced by timeoutEvent().

@@ -394,7 +394,7 @@

References core::EventReceiver::EventReceiver(), and core::EventReceiver::span().

-

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::responseDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

Here is the call graph for this function:
-
+

@@ -432,17 +432,17 @@

-

Definition at line 171 of file DescriptorEventReceiver.cpp.

-
171 {
-
172 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
-
173 timeoutEvent();
-
174 }
-
175 }
- +

Definition at line 168 of file DescriptorEventReceiver.cpp.

+
168 {
+
169 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
+
170 timeoutEvent();
+
171 }
+
172 }
+
virtual void timeoutEvent()=0
- +
-

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and core::DescriptorEventReceiver::timeoutEvent().

+

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and core::DescriptorEventReceiver::timeoutEvent().

Referenced by core::DescriptorEventPublisher::checkTimedOutEvents().

@@ -520,26 +520,26 @@

-

Definition at line 93 of file DescriptorEventReceiver.cpp.

-
93 {
-
94 if (enabled) {
-
95 enabled = false;
- -
97 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
-
98 } else {
-
99 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
-
100 }
-
101 }
+

Definition at line 90 of file DescriptorEventReceiver.cpp.

+
90 {
+
91 if (enabled) {
+
92 enabled = false;
+ +
94 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
+
95 } else {
+
96 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
+
97 }
+
98 }
void disable(DescriptorEventReceiver *descriptorEventReceiver)
- - -
DescriptorEventPublisher & descriptorEventPublisher
+ + +
DescriptorEventPublisher & descriptorEventPublisher
const std::string & getName() const
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::disable(), core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), and core::DescriptorEventReceiver::observedFd.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::disable(), core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), and core::DescriptorEventReceiver::observedFd.

-

Referenced by acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::eventreceiver::ConnectEventReceiver::connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::eof(), core::eventreceiver::ExceptionalConditionEventReceiver::outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSink::readEvent(), core::eventreceiver::ReadEventReceiver::readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), signalEvent(), core::eventreceiver::ConnectEventReceiver::signalEvent(), core::eventreceiver::ExceptionalConditionEventReceiver::signalEvent(), core::eventreceiver::ReadEventReceiver::signalEvent(), core::eventreceiver::WriteEventReceiver::signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), core::pipe::PipeSource::writeEvent(), core::eventreceiver::WriteEventReceiver::writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

+

Referenced by acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::eventreceiver::ConnectEventReceiver::connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::eof(), core::eventreceiver::ExceptionalConditionEventReceiver::outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSink::readEvent(), core::eventreceiver::ReadEventReceiver::readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), signalEvent(), core::eventreceiver::ConnectEventReceiver::signalEvent(), core::eventreceiver::ExceptionalConditionEventReceiver::signalEvent(), core::eventreceiver::ReadEventReceiver::signalEvent(), core::eventreceiver::WriteEventReceiver::signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), core::pipe::PipeSource::writeEvent(), core::eventreceiver::WriteEventReceiver::writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

Here is the call graph for this function:
@@ -617,30 +617,30 @@

-

Definition at line 70 of file DescriptorEventReceiver.cpp.

-
70 {
- -
72 if (!enabled) {
-
73 observedFd = fd;
-
74
-
75 enabled = true;
- -
77 } else {
-
78 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
-
79 }
-
80 } else {
-
81 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
-
82 }
-
83
-
84 return enabled;
-
85 }
+

Definition at line 67 of file DescriptorEventReceiver.cpp.

+
67 {
+ +
69 if (!enabled) {
+
70 observedFd = fd;
+
71
+
72 enabled = true;
+ +
74 } else {
+
75 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
+
76 }
+
77 } else {
+
78 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
+
79 }
+
80
+
81 return enabled;
+
82 }
void enable(DescriptorEventReceiver *descriptorEventReceiver)
State eventLoopState()
Definition State.cpp:30
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::enable(), core::DescriptorEventReceiver::enabled, core::eventLoopState(), core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, and core::STOPPING.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::enable(), core::DescriptorEventReceiver::enabled, core::eventLoopState(), core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, and core::STOPPING.

-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::pipe::PipeSink::PipeSink(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::pipe::PipeSink::PipeSink(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

Here is the call graph for this function:
@@ -682,9 +682,9 @@

66 return event.getName();

67 }
-

References core::EventReceiver::event, and core::Event::getName().

+

References core::EventReceiver::event, and core::Event::getName().

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

Here is the call graph for this function:
@@ -721,12 +721,12 @@

-

Definition at line 66 of file DescriptorEventReceiver.cpp.

-
66 {
-
67 return observedFd;
-
68 }
+

Definition at line 63 of file DescriptorEventReceiver.cpp.

+
63 {
+
64 return observedFd;
+
65 }
-

References core::DescriptorEventReceiver::observedFd.

+

References core::DescriptorEventReceiver::observedFd.

Referenced by core::DescriptorEventPublisher::enable(), core::epoll::DescriptorEventPublisher::EPollEvents::muxAdd(), core::select::DescriptorEventPublisher::muxAdd(), core::poll::PollFdsManager::muxAdd(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOff(), core::select::DescriptorEventPublisher::muxOff(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOn(), core::select::DescriptorEventPublisher::muxOn(), core::socket::stream::legacy::SocketReader::read(), core::pipe::PipeSink::readEvent(), core::socket::stream::legacy::SocketWriter::write(), core::pipe::PipeSource::writeEvent(), core::pipe::PipeSink::~PipeSink(), and core::pipe::PipeSource::~PipeSource().

@@ -761,12 +761,12 @@

-

Definition at line 152 of file DescriptorEventReceiver.cpp.

-
152 {
-
153 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
-
154 }
+

Definition at line 149 of file DescriptorEventReceiver.cpp.

+
149 {
+
150 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
+
151 }
-

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

+

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

Referenced by core::DescriptorEventPublisher::getNextTimeout().

@@ -805,14 +805,14 @@

-

Definition at line 107 of file DescriptorEventReceiver.cpp.

-
107 {
-
108 return enabled;
-
109 }
+

Definition at line 104 of file DescriptorEventReceiver.cpp.

+
104 {
+
105 return enabled;
+
106 }
-

References core::DescriptorEventReceiver::enabled.

+

References core::DescriptorEventReceiver::enabled.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

Here is the caller graph for this function:
@@ -844,15 +844,15 @@

-

Definition at line 138 of file DescriptorEventReceiver.cpp.

-
138 {
-
139 return suspended;
-
140 }
- +

Definition at line 135 of file DescriptorEventReceiver.cpp.

+
135 {
+
136 return suspended;
+
137 }
+
-

References core::DescriptorEventReceiver::suspended.

+

References core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::pipe::PipeSource::send().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::pipe::PipeSource::send().

Here is the caller graph for this function:
@@ -884,15 +884,15 @@

-

Definition at line 41 of file DescriptorEventReceiver.cpp.

-
41 {
- -
43 }
- +

Definition at line 38 of file DescriptorEventReceiver.cpp.

+
38 {
+ +
40 }
+
-

References core::Observer::observationCounter.

+

References core::Observer::observationCounter.

-

Referenced by core::DescriptorEventReceiver::setEnabled().

+

Referenced by core::DescriptorEventReceiver::setEnabled().

Here is the caller graph for this function:
@@ -927,18 +927,18 @@

core::EventReceiver.

-

Definition at line 156 of file DescriptorEventReceiver.cpp.

-
156 {
-
157 eventCounter++;
-
158 triggered(currentTime);
-
159
- -
161 }
-
void triggered(const utils::Timeval &currentTime)
+

Definition at line 153 of file DescriptorEventReceiver.cpp.

+
153 {
+
154 eventCounter++;
+
155 triggered(currentTime);
+
156
+ +
158 }
+
void triggered(const utils::Timeval &currentTime)
virtual void dispatchEvent()=0
- +
-

References core::DescriptorEventReceiver::dispatchEvent(), core::DescriptorEventReceiver::eventCounter, and core::DescriptorEventReceiver::triggered().

+

References core::DescriptorEventReceiver::dispatchEvent(), core::DescriptorEventReceiver::eventCounter, and core::DescriptorEventReceiver::triggered().

Here is the call graph for this function:
@@ -971,10 +971,10 @@

-

Definition at line 163 of file DescriptorEventReceiver.cpp.

-
163 {
-
164 signalEvent(signum);
-
165 }
+

Definition at line 160 of file DescriptorEventReceiver.cpp.

+
160 {
+
161 signalEvent(signum);
+
162 }
virtual void signalEvent(int signum)=0

References core::DescriptorEventReceiver::signalEvent().

@@ -1021,7 +1021,7 @@

62 event.relax();

63 }

-

References core::EventReceiver::event, and core::Event::relax().

+

References core::EventReceiver::event, and core::Event::relax().

Here is the call graph for this function:
@@ -1053,26 +1053,26 @@

-

Definition at line 124 of file DescriptorEventReceiver.cpp.

-
124 {
-
125 if (enabled) {
-
126 if (suspended) {
-
127 suspended = false;
- - -
130 } else {
-
131 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
-
132 }
-
133 } else {
-
134 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
-
135 }
-
136 }
+

Definition at line 121 of file DescriptorEventReceiver.cpp.

+
121 {
+
122 if (enabled) {
+
123 if (suspended) {
+
124 suspended = false;
+ + +
127 } else {
+
128 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
+
129 }
+
130 } else {
+
131 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
+
132 }
+
133 }
void resume(DescriptorEventReceiver *descriptorEventReceiver)
static Timeval currentTime()
Definition Timeval.cpp:54
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and core::DescriptorEventReceiver::suspended.

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSource::send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSource::send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

Here is the call graph for this function:
@@ -1109,13 +1109,13 @@

-

Definition at line 103 of file DescriptorEventReceiver.cpp.

-
103 {
-
104 unObserved();
-
105 }
- +

Definition at line 100 of file DescriptorEventReceiver.cpp.

+
100 {
+
101 unObserved();
+
102 }
+
-

References core::Observer::unObserved().

+

References core::Observer::unObserved().

Here is the call graph for this function:
@@ -1148,15 +1148,15 @@

-

Definition at line 87 of file DescriptorEventReceiver.cpp.

-
87 {
-
88 lastTriggered = currentTime;
-
89
-
90 observed();
-
91 }
- +

Definition at line 84 of file DescriptorEventReceiver.cpp.

+
84 {
+
85 lastTriggered = currentTime;
+
86
+
87 observed();
+
88 }
+
-

References core::DescriptorEventReceiver::lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

Referenced by core::DescriptorEventPublisher::enable().

@@ -1196,22 +1196,22 @@

-

Definition at line 142 of file DescriptorEventReceiver.cpp.

-
142 {
-
143 if (timeout == TIMEOUT::DEFAULT) {
- -
145 } else {
-
146 this->maxInactivity = timeout;
-
147 }
-
148
- -
150 }
- - +

Definition at line 139 of file DescriptorEventReceiver.cpp.

+
139 {
+
140 if (timeout == TIMEOUT::DEFAULT) {
+ +
142 } else {
+
143 this->maxInactivity = timeout;
+
144 }
+
145
+ +
147 }
+ +
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, core::DescriptorEventReceiver::initialTimeout, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and core::DescriptorEventReceiver::triggered().

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, core::DescriptorEventReceiver::initialTimeout, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and core::DescriptorEventReceiver::triggered().

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

Here is the call graph for this function:
@@ -1256,7 +1256,7 @@

51 disable();

52 }
-

References core::DescriptorEventReceiver::disable().

+

References core::DescriptorEventReceiver::disable().

Here is the call graph for this function:
@@ -1293,9 +1293,9 @@

58 event.span();

59 }

-

References core::EventReceiver::event, and core::Event::span().

+

References core::EventReceiver::event, and core::Event::span().

-

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

+

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

Here is the call graph for this function:
-
+
@@ -1332,24 +1332,24 @@

-

Definition at line 111 of file DescriptorEventReceiver.cpp.

-
111 {
-
112 if (enabled) {
-
113 if (!suspended) {
-
114 suspended = true;
- -
116 } else {
-
117 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
-
118 }
-
119 } else {
-
120 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
-
121 }
-
122 }
+

Definition at line 108 of file DescriptorEventReceiver.cpp.

+
108 {
+
109 if (enabled) {
+
110 if (!suspended) {
+
111 suspended = true;
+ +
113 } else {
+
114 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
+
115 }
+
116 } else {
+
117 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
+
118 }
+
119 }
void suspend(DescriptorEventReceiver *descriptorEventReceiver)
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, core::DescriptorEventPublisher::suspend(), and core::DescriptorEventReceiver::suspended.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, core::DescriptorEventPublisher::suspend(), and core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and core::pipe::PipeSource::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and core::pipe::PipeSource::writeEvent().

Here is the call graph for this function:
@@ -1427,14 +1427,14 @@

-

Definition at line 167 of file DescriptorEventReceiver.cpp.

-
167 {
-
168 lastTriggered = currentTime;
-
169 }
+

Definition at line 164 of file DescriptorEventReceiver.cpp.

+
164 {
+
165 lastTriggered = currentTime;
+
166 }
-

References core::DescriptorEventReceiver::lastTriggered, and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::lastTriggered, and utils::Timeval::operator=().

-

Referenced by core::DescriptorEventReceiver::onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::DescriptorEventReceiver::setTimeout().

Here is the call graph for this function:
@@ -1471,19 +1471,19 @@

-

Definition at line 45 of file DescriptorEventReceiver.cpp.

-
45 {
- -
47
-
48 if (observationCounter == 0) {
- -
50 }
-
51 }
+

Definition at line 42 of file DescriptorEventReceiver.cpp.

+
42 {
+ +
44
+
45 if (observationCounter == 0) {
+ +
47 }
+
48 }
virtual void unobservedEvent()=0
-

References core::Observer::observationCounter, and core::Observer::unobservedEvent().

+

References core::Observer::observationCounter, and core::Observer::unobservedEvent().

-

Referenced by core::DescriptorEventReceiver::setDisabled().

+

Referenced by core::DescriptorEventReceiver::setDisabled().

Here is the call graph for this function:
@@ -1522,7 +1522,7 @@

core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >, core::socket::stream::SocketAcceptor< PhysicalServerSocketT, ConfigT, core::socket::stream::legacy::SocketConnection >, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, core::socket::stream::tls::SocketConnection >, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >, core::socket::stream::SocketConnector< PhysicalClientSocketT, ConfigT, core::socket::stream::legacy::SocketConnection >, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, core::socket::stream::tls::SocketConnection >, core::socket::stream::tls::TLSHandshake, core::socket::stream::tls::TLSShutdown, core::pipe::PipeSink, core::pipe::PipeSource, and database::mariadb::MariaDBConnection.

-

Referenced by core::Observer::unObserved().

+

Referenced by core::Observer::unObserved().

Here is the caller graph for this function:

@@ -1578,9 +1578,9 @@

-

Definition at line 108 of file DescriptorEventReceiver.h.

+

Definition at line 105 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -1604,7 +1604,7 @@

-

Definition at line 59 of file EventReceiver.h.

+

Definition at line 65 of file EventReceiver.h.

Referenced by core::EventReceiver::EventReceiver(), core::EventReceiver::getName(), core::EventReceiver::relax(), and core::EventReceiver::span().

@@ -1630,9 +1630,9 @@

-

Definition at line 115 of file DescriptorEventReceiver.h.

+

Definition at line 112 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::onEvent().

+

Referenced by core::DescriptorEventReceiver::onEvent().

@@ -1656,9 +1656,9 @@

-

Definition at line 113 of file DescriptorEventReceiver.h.

+

Definition at line 110 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), and core::DescriptorEventReceiver::setTimeout().

@@ -1682,9 +1682,9 @@

-

Definition at line 111 of file DescriptorEventReceiver.h.

+

Definition at line 108 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::resume(), core::DescriptorEventReceiver::setEnabled(), and core::DescriptorEventReceiver::triggered().

+

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::resume(), core::DescriptorEventReceiver::setEnabled(), and core::DescriptorEventReceiver::triggered().

@@ -1708,9 +1708,9 @@

-

Definition at line 112 of file DescriptorEventReceiver.h.

+

Definition at line 109 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::getTimeout(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::getTimeout(), and core::DescriptorEventReceiver::setTimeout().

@@ -1734,9 +1734,9 @@

-

Definition at line 53 of file DescriptorEventReceiver.h.

+

Definition at line 54 of file DescriptorEventReceiver.h.

-

Referenced by core::Observer::observed(), and core::Observer::unObserved().

+

Referenced by core::Observer::observed(), and core::Observer::unObserved().

@@ -1760,9 +1760,9 @@

-

Definition at line 106 of file DescriptorEventReceiver.h.

+

Definition at line 103 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -1786,9 +1786,9 @@

-

Definition at line 109 of file DescriptorEventReceiver.h.

+

Definition at line 106 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -1802,7 +1802,7 @@

diff --git a/html/classcore_1_1eventreceiver_1_1ConnectEventReceiver-members.html b/html/classcore_1_1eventreceiver_1_1ConnectEventReceiver-members.html index 66fac77dd7..bc53cb651d 100644 --- a/html/classcore_1_1eventreceiver_1_1ConnectEventReceiver-members.html +++ b/html/classcore_1_1eventreceiver_1_1ConnectEventReceiver-members.html @@ -101,53 +101,56 @@ ConnectEventReceiver(const std::string &name, const utils::Timeval &timeout)core::eventreceiver::ConnectEventReceiverprotected connectTimeout()core::eventreceiver::ConnectEventReceiverprivatevirtual descriptorEventPublishercore::DescriptorEventReceiverprivate - DescriptorEventReceiver(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiver - DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiver - destruct()core::EventReceivervirtual - disable()core::DescriptorEventReceiverprotected - dispatchEvent() finalcore::eventreceiver::ConnectEventReceiverprivatevirtual - enable(int fd)core::DescriptorEventReceiverprotected - enabledcore::DescriptorEventReceiverprivate - eventcore::EventReceiverprivate - eventCountercore::DescriptorEventReceiverprivate - EventReceiver(const std::string &name)core::EventReceiver - getName() constcore::EventReceiver - getRegisteredFd() constcore::DescriptorEventReceiver - getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiver - initialTimeoutcore::DescriptorEventReceiverprivate - isEnabled() constcore::DescriptorEventReceiver - isSuspended() constcore::DescriptorEventReceiver - lastTriggeredcore::DescriptorEventReceiverprivate - maxInactivitycore::DescriptorEventReceiverprivate - observationCountercore::Observerprivate - observed()core::Observerprotected - observedFdcore::DescriptorEventReceiverprivate - Observer()=defaultcore::Observerprotected - Observer(const Observer &observer)core::Observerprotected + DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiver + destruct()core::EventReceivervirtual + disable()core::DescriptorEventReceiverprotected + dispatchEvent() finalcore::eventreceiver::ConnectEventReceiverprivatevirtual + enable(int fd)core::DescriptorEventReceiverprotected + enabledcore::DescriptorEventReceiverprivate + eventcore::EventReceiverprivate + eventCountercore::DescriptorEventReceiverprivate + EventReceiver(const std::string &name)core::EventReceiver + EventReceiver(EventReceiver &)=deletecore::EventReceiver + EventReceiver(EventReceiver &&)=deletecore::EventReceiver + getName() constcore::EventReceiver + getRegisteredFd() constcore::DescriptorEventReceiver + getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiver + initialTimeoutcore::DescriptorEventReceiverprivate + isEnabled() constcore::DescriptorEventReceiver + isSuspended() constcore::DescriptorEventReceiver + lastTriggeredcore::DescriptorEventReceiverprivate + maxInactivitycore::DescriptorEventReceiverprivate + observationCountercore::Observerprivate + observed()core::Observerprotected + observedFdcore::DescriptorEventReceiverprivate + Observer()=defaultcore::Observerprotected + Observer(Observer &)=deletecore::Observerprotected + Observer(Observer &&)=deletecore::Observerprotected onEvent(const utils::Timeval &currentTime) finalcore::DescriptorEventReceiverprivatevirtual onSignal(int signum)core::DescriptorEventReceiverprivate - operator=(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiver - relax()core::EventReceiver - resume()core::DescriptorEventReceiverprotected - setDisabled()core::DescriptorEventReceiverprivate - setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiver - signalEvent(int signum) overridecore::eventreceiver::ConnectEventReceiverprivatevirtual - span()core::EventReceiver - suspend()core::DescriptorEventReceiverprotected - suspendedcore::DescriptorEventReceiverprivate - timeoutEvent() finalcore::eventreceiver::ConnectEventReceiverprivatevirtual - triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - unObserved()core::Observerprotected - unobservedEvent()=0core::Observerprotectedpure virtual - ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual - ~Observer()core::Observerprotectedvirtual + operator=(EventReceiver &)=deletecore::EventReceiver + operator=(EventReceiver &&)=deletecore::EventReceiver + relax()core::EventReceiver + resume()core::DescriptorEventReceiverprotected + setDisabled()core::DescriptorEventReceiverprivate + setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiver + signalEvent(int signum) overridecore::eventreceiver::ConnectEventReceiverprivatevirtual + span()core::EventReceiver + suspend()core::DescriptorEventReceiverprotected + suspendedcore::DescriptorEventReceiverprivate + timeoutEvent() finalcore::eventreceiver::ConnectEventReceiverprivatevirtual + triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + unObserved()core::Observerprotected + unobservedEvent()=0core::Observerprotectedpure virtual + ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual + ~Observer()core::Observerprotectedvirtual

diff --git a/html/classcore_1_1eventreceiver_1_1ConnectEventReceiver.html b/html/classcore_1_1eventreceiver_1_1ConnectEventReceiver.html index 13dae900fb..92acdacac6 100644 --- a/html/classcore_1_1eventreceiver_1_1ConnectEventReceiver.html +++ b/html/classcore_1_1eventreceiver_1_1ConnectEventReceiver.html @@ -245,15 +245,15 @@

Definition at line 31 of file ConnectEventReceiver.cpp.

-
33 name + " connect",
+
33 name + " Connect",
34 core::EventLoop::instance().getEventMultiplexer().getDescriptorEventPublisher(core::EventMultiplexer::DISP_TYPE::WR),
35 timeout) {
36 }
- +
static EventLoop & instance()
Definition EventLoop.cpp:59
-

References core::DescriptorEventReceiver::DescriptorEventReceiver(), core::EventMultiplexer::getDescriptorEventPublisher(), core::EventLoop::getEventMultiplexer(), core::EventLoop::instance(), and core::EventMultiplexer::WR.

+

References core::DescriptorEventReceiver::DescriptorEventReceiver(), core::EventMultiplexer::getDescriptorEventPublisher(), core::EventLoop::getEventMultiplexer(), core::EventLoop::instance(), and core::EventMultiplexer::WR.

Here is the call graph for this function:
@@ -315,7 +315,7 @@

References core::EventReceiver::EventReceiver(), and core::EventReceiver::span().

-

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::responseDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

Here is the call graph for this function:
-
+

@@ -353,17 +353,17 @@

-

Definition at line 171 of file DescriptorEventReceiver.cpp.

-
171 {
-
172 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
-
173 timeoutEvent();
-
174 }
-
175 }
- +

Definition at line 168 of file DescriptorEventReceiver.cpp.

+
168 {
+
169 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
+
170 timeoutEvent();
+
171 }
+
172 }
+
virtual void timeoutEvent()=0
- +
-

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and core::DescriptorEventReceiver::timeoutEvent().

+

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and core::DescriptorEventReceiver::timeoutEvent().

Referenced by core::DescriptorEventPublisher::checkTimedOutEvents().

-

References core::DescriptorEventReceiver::disable().

+

References core::DescriptorEventReceiver::disable().

Referenced by timeoutEvent().

@@ -522,26 +522,26 @@

-

Definition at line 93 of file DescriptorEventReceiver.cpp.

-
93 {
-
94 if (enabled) {
-
95 enabled = false;
- -
97 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
-
98 } else {
-
99 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
-
100 }
-
101 }
+

Definition at line 90 of file DescriptorEventReceiver.cpp.

+
90 {
+
91 if (enabled) {
+
92 enabled = false;
+ +
94 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
+
95 } else {
+
96 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
+
97 }
+
98 }
void disable(DescriptorEventReceiver *descriptorEventReceiver)
- - -
DescriptorEventPublisher & descriptorEventPublisher
+ + +
DescriptorEventPublisher & descriptorEventPublisher
const std::string & getName() const
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::disable(), core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), and core::DescriptorEventReceiver::observedFd.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::disable(), core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), and core::DescriptorEventReceiver::observedFd.

-

Referenced by core::eventreceiver::AcceptEventReceiver::acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::eof(), core::eventreceiver::ExceptionalConditionEventReceiver::outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSink::readEvent(), core::eventreceiver::ReadEventReceiver::readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), core::eventreceiver::AcceptEventReceiver::signalEvent(), signalEvent(), core::eventreceiver::ExceptionalConditionEventReceiver::signalEvent(), core::eventreceiver::ReadEventReceiver::signalEvent(), core::eventreceiver::WriteEventReceiver::signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), core::pipe::PipeSource::writeEvent(), core::eventreceiver::WriteEventReceiver::writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

+

Referenced by core::eventreceiver::AcceptEventReceiver::acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::eof(), core::eventreceiver::ExceptionalConditionEventReceiver::outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSink::readEvent(), core::eventreceiver::ReadEventReceiver::readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), core::eventreceiver::AcceptEventReceiver::signalEvent(), signalEvent(), core::eventreceiver::ExceptionalConditionEventReceiver::signalEvent(), core::eventreceiver::ReadEventReceiver::signalEvent(), core::eventreceiver::WriteEventReceiver::signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), core::pipe::PipeSource::writeEvent(), core::eventreceiver::WriteEventReceiver::writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

Here is the call graph for this function:
@@ -619,30 +619,30 @@

-

Definition at line 70 of file DescriptorEventReceiver.cpp.

-
70 {
- -
72 if (!enabled) {
-
73 observedFd = fd;
-
74
-
75 enabled = true;
- -
77 } else {
-
78 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
-
79 }
-
80 } else {
-
81 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
-
82 }
-
83
-
84 return enabled;
-
85 }
+

Definition at line 67 of file DescriptorEventReceiver.cpp.

+
67 {
+ +
69 if (!enabled) {
+
70 observedFd = fd;
+
71
+
72 enabled = true;
+ +
74 } else {
+
75 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
+
76 }
+
77 } else {
+
78 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
+
79 }
+
80
+
81 return enabled;
+
82 }
void enable(DescriptorEventReceiver *descriptorEventReceiver)
State eventLoopState()
Definition State.cpp:30
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::enable(), core::DescriptorEventReceiver::enabled, core::eventLoopState(), core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, and core::STOPPING.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::enable(), core::DescriptorEventReceiver::enabled, core::eventLoopState(), core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, and core::STOPPING.

-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::pipe::PipeSink::PipeSink(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::pipe::PipeSink::PipeSink(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

Here is the call graph for this function:
@@ -684,9 +684,9 @@

66 return event.getName();

67 }
-

References core::EventReceiver::event, and core::Event::getName().

+

References core::EventReceiver::event, and core::Event::getName().

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

Here is the call graph for this function:
@@ -723,12 +723,12 @@

-

Definition at line 66 of file DescriptorEventReceiver.cpp.

-
66 {
-
67 return observedFd;
-
68 }
+

Definition at line 63 of file DescriptorEventReceiver.cpp.

+
63 {
+
64 return observedFd;
+
65 }
-

References core::DescriptorEventReceiver::observedFd.

+

References core::DescriptorEventReceiver::observedFd.

Referenced by core::DescriptorEventPublisher::enable(), core::epoll::DescriptorEventPublisher::EPollEvents::muxAdd(), core::select::DescriptorEventPublisher::muxAdd(), core::poll::PollFdsManager::muxAdd(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOff(), core::select::DescriptorEventPublisher::muxOff(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOn(), core::select::DescriptorEventPublisher::muxOn(), core::socket::stream::legacy::SocketReader::read(), core::pipe::PipeSink::readEvent(), core::socket::stream::legacy::SocketWriter::write(), core::pipe::PipeSource::writeEvent(), core::pipe::PipeSink::~PipeSink(), and core::pipe::PipeSource::~PipeSource().

@@ -763,12 +763,12 @@

-

Definition at line 152 of file DescriptorEventReceiver.cpp.

-
152 {
-
153 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
-
154 }
+

Definition at line 149 of file DescriptorEventReceiver.cpp.

+
149 {
+
150 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
+
151 }
-

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

+

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

Referenced by core::DescriptorEventPublisher::getNextTimeout().

@@ -807,14 +807,14 @@

-

Definition at line 107 of file DescriptorEventReceiver.cpp.

-
107 {
-
108 return enabled;
-
109 }
+

Definition at line 104 of file DescriptorEventReceiver.cpp.

+
104 {
+
105 return enabled;
+
106 }
-

References core::DescriptorEventReceiver::enabled.

+

References core::DescriptorEventReceiver::enabled.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

Here is the caller graph for this function:
@@ -846,15 +846,15 @@

-

Definition at line 138 of file DescriptorEventReceiver.cpp.

-
138 {
-
139 return suspended;
-
140 }
- +

Definition at line 135 of file DescriptorEventReceiver.cpp.

+
135 {
+
136 return suspended;
+
137 }
+
-

References core::DescriptorEventReceiver::suspended.

+

References core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::pipe::PipeSource::send().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::pipe::PipeSource::send().

Here is the caller graph for this function:
@@ -886,15 +886,15 @@

-

Definition at line 41 of file DescriptorEventReceiver.cpp.

-
41 {
- -
43 }
- +

Definition at line 38 of file DescriptorEventReceiver.cpp.

+
38 {
+ +
40 }
+
-

References core::Observer::observationCounter.

+

References core::Observer::observationCounter.

-

Referenced by core::DescriptorEventReceiver::setEnabled().

+

Referenced by core::DescriptorEventReceiver::setEnabled().

Here is the caller graph for this function:
@@ -929,18 +929,18 @@

core::EventReceiver.

-

Definition at line 156 of file DescriptorEventReceiver.cpp.

-
156 {
-
157 eventCounter++;
-
158 triggered(currentTime);
-
159
- -
161 }
-
void triggered(const utils::Timeval &currentTime)
+

Definition at line 153 of file DescriptorEventReceiver.cpp.

+
153 {
+
154 eventCounter++;
+
155 triggered(currentTime);
+
156
+ +
158 }
+
void triggered(const utils::Timeval &currentTime)
virtual void dispatchEvent()=0
- +
-

References core::DescriptorEventReceiver::dispatchEvent(), core::DescriptorEventReceiver::eventCounter, and core::DescriptorEventReceiver::triggered().

+

References core::DescriptorEventReceiver::dispatchEvent(), core::DescriptorEventReceiver::eventCounter, and core::DescriptorEventReceiver::triggered().

Here is the call graph for this function:
@@ -973,10 +973,10 @@

-

Definition at line 163 of file DescriptorEventReceiver.cpp.

-
163 {
-
164 signalEvent(signum);
-
165 }
+

Definition at line 160 of file DescriptorEventReceiver.cpp.

+
160 {
+
161 signalEvent(signum);
+
162 }
virtual void signalEvent(int signum)=0

References core::DescriptorEventReceiver::signalEvent().

@@ -1023,7 +1023,7 @@

62 event.relax();

63 }

-

References core::EventReceiver::event, and core::Event::relax().

+

References core::EventReceiver::event, and core::Event::relax().

Here is the call graph for this function:
@@ -1055,26 +1055,26 @@

-

Definition at line 124 of file DescriptorEventReceiver.cpp.

-
124 {
-
125 if (enabled) {
-
126 if (suspended) {
-
127 suspended = false;
- - -
130 } else {
-
131 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
-
132 }
-
133 } else {
-
134 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
-
135 }
-
136 }
+

Definition at line 121 of file DescriptorEventReceiver.cpp.

+
121 {
+
122 if (enabled) {
+
123 if (suspended) {
+
124 suspended = false;
+ + +
127 } else {
+
128 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
+
129 }
+
130 } else {
+
131 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
+
132 }
+
133 }
void resume(DescriptorEventReceiver *descriptorEventReceiver)
static Timeval currentTime()
Definition Timeval.cpp:54
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and core::DescriptorEventReceiver::suspended.

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSource::send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSource::send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

Here is the call graph for this function:
@@ -1111,13 +1111,13 @@

-

Definition at line 103 of file DescriptorEventReceiver.cpp.

-
103 {
-
104 unObserved();
-
105 }
- +

Definition at line 100 of file DescriptorEventReceiver.cpp.

+
100 {
+
101 unObserved();
+
102 }
+
-

References core::Observer::unObserved().

+

References core::Observer::unObserved().

Here is the call graph for this function:
@@ -1150,15 +1150,15 @@

-

Definition at line 87 of file DescriptorEventReceiver.cpp.

-
87 {
-
88 lastTriggered = currentTime;
-
89
-
90 observed();
-
91 }
- +

Definition at line 84 of file DescriptorEventReceiver.cpp.

+
84 {
+
85 lastTriggered = currentTime;
+
86
+
87 observed();
+
88 }
+
-

References core::DescriptorEventReceiver::lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

Referenced by core::DescriptorEventPublisher::enable().

@@ -1198,22 +1198,22 @@

-

Definition at line 142 of file DescriptorEventReceiver.cpp.

-
142 {
-
143 if (timeout == TIMEOUT::DEFAULT) {
- -
145 } else {
-
146 this->maxInactivity = timeout;
-
147 }
-
148
- -
150 }
- - +

Definition at line 139 of file DescriptorEventReceiver.cpp.

+
139 {
+
140 if (timeout == TIMEOUT::DEFAULT) {
+ +
142 } else {
+
143 this->maxInactivity = timeout;
+
144 }
+
145
+ +
147 }
+ +
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, core::DescriptorEventReceiver::initialTimeout, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and core::DescriptorEventReceiver::triggered().

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, core::DescriptorEventReceiver::initialTimeout, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and core::DescriptorEventReceiver::triggered().

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

Here is the call graph for this function:
@@ -1258,7 +1258,7 @@

51 disable();

52 }
-

References core::DescriptorEventReceiver::disable().

+

References core::DescriptorEventReceiver::disable().

Here is the call graph for this function:
@@ -1295,9 +1295,9 @@

58 event.span();

59 }

-

References core::EventReceiver::event, and core::Event::span().

+

References core::EventReceiver::event, and core::Event::span().

-

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

+

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

Here is the call graph for this function:
-
+
@@ -1334,24 +1334,24 @@

-

Definition at line 111 of file DescriptorEventReceiver.cpp.

-
111 {
-
112 if (enabled) {
-
113 if (!suspended) {
-
114 suspended = true;
- -
116 } else {
-
117 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
-
118 }
-
119 } else {
-
120 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
-
121 }
-
122 }
+

Definition at line 108 of file DescriptorEventReceiver.cpp.

+
108 {
+
109 if (enabled) {
+
110 if (!suspended) {
+
111 suspended = true;
+ +
113 } else {
+
114 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
+
115 }
+
116 } else {
+
117 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
+
118 }
+
119 }
void suspend(DescriptorEventReceiver *descriptorEventReceiver)
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, core::DescriptorEventPublisher::suspend(), and core::DescriptorEventReceiver::suspended.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, core::DescriptorEventPublisher::suspend(), and core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and core::pipe::PipeSource::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and core::pipe::PipeSource::writeEvent().

Here is the call graph for this function:
@@ -1429,14 +1429,14 @@

-

Definition at line 167 of file DescriptorEventReceiver.cpp.

-
167 {
-
168 lastTriggered = currentTime;
-
169 }
+

Definition at line 164 of file DescriptorEventReceiver.cpp.

+
164 {
+
165 lastTriggered = currentTime;
+
166 }
-

References core::DescriptorEventReceiver::lastTriggered, and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::lastTriggered, and utils::Timeval::operator=().

-

Referenced by core::DescriptorEventReceiver::onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::DescriptorEventReceiver::setTimeout().

Here is the call graph for this function:
@@ -1473,19 +1473,19 @@

-

Definition at line 45 of file DescriptorEventReceiver.cpp.

-
45 {
- -
47
-
48 if (observationCounter == 0) {
- -
50 }
-
51 }
+

Definition at line 42 of file DescriptorEventReceiver.cpp.

+
42 {
+ +
44
+
45 if (observationCounter == 0) {
+ +
47 }
+
48 }
virtual void unobservedEvent()=0
-

References core::Observer::observationCounter, and core::Observer::unobservedEvent().

+

References core::Observer::observationCounter, and core::Observer::unobservedEvent().

-

Referenced by core::DescriptorEventReceiver::setDisabled().

+

Referenced by core::DescriptorEventReceiver::setDisabled().

Here is the call graph for this function:
@@ -1524,7 +1524,7 @@

core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >, core::socket::stream::SocketAcceptor< PhysicalServerSocketT, ConfigT, core::socket::stream::legacy::SocketConnection >, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, core::socket::stream::tls::SocketConnection >, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >, core::socket::stream::SocketConnector< PhysicalClientSocketT, ConfigT, core::socket::stream::legacy::SocketConnection >, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, core::socket::stream::tls::SocketConnection >, core::socket::stream::tls::TLSHandshake, core::socket::stream::tls::TLSShutdown, core::pipe::PipeSink, core::pipe::PipeSource, and database::mariadb::MariaDBConnection.

-

Referenced by core::Observer::unObserved().

+

Referenced by core::Observer::unObserved().

Here is the caller graph for this function:

@@ -1580,9 +1580,9 @@

-

Definition at line 108 of file DescriptorEventReceiver.h.

+

Definition at line 105 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -1606,7 +1606,7 @@

-

Definition at line 59 of file EventReceiver.h.

+

Definition at line 65 of file EventReceiver.h.

Referenced by core::EventReceiver::EventReceiver(), core::EventReceiver::getName(), core::EventReceiver::relax(), and core::EventReceiver::span().

@@ -1632,9 +1632,9 @@

-

Definition at line 115 of file DescriptorEventReceiver.h.

+

Definition at line 112 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::onEvent().

+

Referenced by core::DescriptorEventReceiver::onEvent().

@@ -1658,9 +1658,9 @@

-

Definition at line 113 of file DescriptorEventReceiver.h.

+

Definition at line 110 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), and core::DescriptorEventReceiver::setTimeout().

@@ -1684,9 +1684,9 @@

-

Definition at line 111 of file DescriptorEventReceiver.h.

+

Definition at line 108 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::resume(), core::DescriptorEventReceiver::setEnabled(), and core::DescriptorEventReceiver::triggered().

+

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::resume(), core::DescriptorEventReceiver::setEnabled(), and core::DescriptorEventReceiver::triggered().

@@ -1710,9 +1710,9 @@

-

Definition at line 112 of file DescriptorEventReceiver.h.

+

Definition at line 109 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::getTimeout(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::getTimeout(), and core::DescriptorEventReceiver::setTimeout().

@@ -1736,9 +1736,9 @@

-

Definition at line 53 of file DescriptorEventReceiver.h.

+

Definition at line 54 of file DescriptorEventReceiver.h.

-

Referenced by core::Observer::observed(), and core::Observer::unObserved().

+

Referenced by core::Observer::observed(), and core::Observer::unObserved().

@@ -1762,9 +1762,9 @@

-

Definition at line 106 of file DescriptorEventReceiver.h.

+

Definition at line 103 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -1788,9 +1788,9 @@

-

Definition at line 109 of file DescriptorEventReceiver.h.

+

Definition at line 106 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -1804,7 +1804,7 @@

diff --git a/html/classcore_1_1eventreceiver_1_1ExceptionalConditionEventReceiver-members.html b/html/classcore_1_1eventreceiver_1_1ExceptionalConditionEventReceiver-members.html index 4d0f761cf6..0c3be90e14 100644 --- a/html/classcore_1_1eventreceiver_1_1ExceptionalConditionEventReceiver-members.html +++ b/html/classcore_1_1eventreceiver_1_1ExceptionalConditionEventReceiver-members.html @@ -98,56 +98,59 @@ atNextTick(const std::function< void(void)> &callBack)core::EventReceiverstatic checkTimeout(const utils::Timeval &currentTime)core::DescriptorEventReceiver descriptorEventPublishercore::DescriptorEventReceiverprivate - DescriptorEventReceiver(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiver - DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiver - destruct()core::EventReceivervirtual - disable()core::DescriptorEventReceiverprotected - dispatchEvent() finalcore::eventreceiver::ExceptionalConditionEventReceiverprivatevirtual - enable(int fd)core::DescriptorEventReceiverprotected - enabledcore::DescriptorEventReceiverprivate - eventcore::EventReceiverprivate - eventCountercore::DescriptorEventReceiverprivate - EventReceiver(const std::string &name)core::EventReceiver - ExceptionalConditionEventReceiver(const std::string &name, const utils::Timeval &timeout=60)core::eventreceiver::ExceptionalConditionEventReceiverprotected - getName() constcore::EventReceiver - getRegisteredFd() constcore::DescriptorEventReceiver - getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiver - initialTimeoutcore::DescriptorEventReceiverprivate - isEnabled() constcore::DescriptorEventReceiver - isSuspended() constcore::DescriptorEventReceiver - lastTriggeredcore::DescriptorEventReceiverprivate - maxInactivitycore::DescriptorEventReceiverprivate - observationCountercore::Observerprivate - observed()core::Observerprotected - observedFdcore::DescriptorEventReceiverprivate - Observer()=defaultcore::Observerprotected - Observer(const Observer &observer)core::Observerprotected + DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiver + destruct()core::EventReceivervirtual + disable()core::DescriptorEventReceiverprotected + dispatchEvent() finalcore::eventreceiver::ExceptionalConditionEventReceiverprivatevirtual + enable(int fd)core::DescriptorEventReceiverprotected + enabledcore::DescriptorEventReceiverprivate + eventcore::EventReceiverprivate + eventCountercore::DescriptorEventReceiverprivate + EventReceiver(const std::string &name)core::EventReceiver + EventReceiver(EventReceiver &)=deletecore::EventReceiver + EventReceiver(EventReceiver &&)=deletecore::EventReceiver + ExceptionalConditionEventReceiver(const std::string &name, const utils::Timeval &timeout=60)core::eventreceiver::ExceptionalConditionEventReceiverprotected + getName() constcore::EventReceiver + getRegisteredFd() constcore::DescriptorEventReceiver + getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiver + initialTimeoutcore::DescriptorEventReceiverprivate + isEnabled() constcore::DescriptorEventReceiver + isSuspended() constcore::DescriptorEventReceiver + lastTriggeredcore::DescriptorEventReceiverprivate + maxInactivitycore::DescriptorEventReceiverprivate + observationCountercore::Observerprivate + observed()core::Observerprotected + observedFdcore::DescriptorEventReceiverprivate + Observer()=defaultcore::Observerprotected + Observer(Observer &)=deletecore::Observerprotected + Observer(Observer &&)=deletecore::Observerprotected onEvent(const utils::Timeval &currentTime) finalcore::DescriptorEventReceiverprivatevirtual onSignal(int signum)core::DescriptorEventReceiverprivate - operator=(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiver - outOfBandEvent()=0core::eventreceiver::ExceptionalConditionEventReceiverprivatepure virtual - outOfBandTimeout()core::eventreceiver::ExceptionalConditionEventReceiverprivatevirtual - relax()core::EventReceiver - resume()core::DescriptorEventReceiverprotected - setDisabled()core::DescriptorEventReceiverprivate - setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiver - signalEvent(int signum) overridecore::eventreceiver::ExceptionalConditionEventReceiverprivatevirtual - span()core::EventReceiver - suspend()core::DescriptorEventReceiverprotected - suspendedcore::DescriptorEventReceiverprivate - timeoutEvent() finalcore::eventreceiver::ExceptionalConditionEventReceiverprivatevirtual - triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - unObserved()core::Observerprotected - unobservedEvent()=0core::Observerprotectedpure virtual - ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual - ~Observer()core::Observerprotectedvirtual + operator=(EventReceiver &)=deletecore::EventReceiver + operator=(EventReceiver &&)=deletecore::EventReceiver + outOfBandEvent()=0core::eventreceiver::ExceptionalConditionEventReceiverprivatepure virtual + outOfBandTimeout()core::eventreceiver::ExceptionalConditionEventReceiverprivatevirtual + relax()core::EventReceiver + resume()core::DescriptorEventReceiverprotected + setDisabled()core::DescriptorEventReceiverprivate + setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiver + signalEvent(int signum) overridecore::eventreceiver::ExceptionalConditionEventReceiverprivatevirtual + span()core::EventReceiver + suspend()core::DescriptorEventReceiverprotected + suspendedcore::DescriptorEventReceiverprivate + timeoutEvent() finalcore::eventreceiver::ExceptionalConditionEventReceiverprivatevirtual + triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + unObserved()core::Observerprotected + unobservedEvent()=0core::Observerprotectedpure virtual + ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual + ~Observer()core::Observerprotectedvirtual

diff --git a/html/classcore_1_1eventreceiver_1_1ExceptionalConditionEventReceiver.html b/html/classcore_1_1eventreceiver_1_1ExceptionalConditionEventReceiver.html index 42a32a1ba0..d91eff2255 100644 --- a/html/classcore_1_1eventreceiver_1_1ExceptionalConditionEventReceiver.html +++ b/html/classcore_1_1eventreceiver_1_1ExceptionalConditionEventReceiver.html @@ -245,15 +245,15 @@

Definition at line 31 of file ExceptionalConditionEventReceiver.cpp.

-
33 name + " out of band",
+
33 name + " Out of band",
34 core::EventLoop::instance().getEventMultiplexer().getDescriptorEventPublisher(core::EventMultiplexer::DISP_TYPE::EX),
35 timeout) {
36 }
- +
static EventLoop & instance()
Definition EventLoop.cpp:59
-

References core::DescriptorEventReceiver::DescriptorEventReceiver(), core::EventMultiplexer::EX, core::EventMultiplexer::getDescriptorEventPublisher(), core::EventLoop::getEventMultiplexer(), and core::EventLoop::instance().

+

References core::DescriptorEventReceiver::DescriptorEventReceiver(), core::EventMultiplexer::EX, core::EventMultiplexer::getDescriptorEventPublisher(), core::EventLoop::getEventMultiplexer(), and core::EventLoop::instance().

Here is the call graph for this function:
@@ -315,7 +315,7 @@

References core::EventReceiver::EventReceiver(), and core::EventReceiver::span().

-

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::responseDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

Here is the call graph for this function:
-
+

@@ -353,17 +353,17 @@

-

Definition at line 171 of file DescriptorEventReceiver.cpp.

-
171 {
-
172 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
-
173 timeoutEvent();
-
174 }
-
175 }
- +

Definition at line 168 of file DescriptorEventReceiver.cpp.

+
168 {
+
169 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
+
170 timeoutEvent();
+
171 }
+
172 }
+
virtual void timeoutEvent()=0
- +
-

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and core::DescriptorEventReceiver::timeoutEvent().

+

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and core::DescriptorEventReceiver::timeoutEvent().

Referenced by core::DescriptorEventPublisher::checkTimedOutEvents().

@@ -441,26 +441,26 @@

-

Definition at line 93 of file DescriptorEventReceiver.cpp.

-
93 {
-
94 if (enabled) {
-
95 enabled = false;
- -
97 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
-
98 } else {
-
99 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
-
100 }
-
101 }
+

Definition at line 90 of file DescriptorEventReceiver.cpp.

+
90 {
+
91 if (enabled) {
+
92 enabled = false;
+ +
94 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
+
95 } else {
+
96 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
+
97 }
+
98 }
void disable(DescriptorEventReceiver *descriptorEventReceiver)
- - -
DescriptorEventPublisher & descriptorEventPublisher
+ + +
DescriptorEventPublisher & descriptorEventPublisher
const std::string & getName() const
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::disable(), core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), and core::DescriptorEventReceiver::observedFd.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::disable(), core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), and core::DescriptorEventReceiver::observedFd.

-

Referenced by core::eventreceiver::AcceptEventReceiver::acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::eventreceiver::ConnectEventReceiver::connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::eof(), outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSink::readEvent(), core::eventreceiver::ReadEventReceiver::readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), core::eventreceiver::AcceptEventReceiver::signalEvent(), core::eventreceiver::ConnectEventReceiver::signalEvent(), signalEvent(), core::eventreceiver::ReadEventReceiver::signalEvent(), core::eventreceiver::WriteEventReceiver::signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), core::pipe::PipeSource::writeEvent(), core::eventreceiver::WriteEventReceiver::writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

+

Referenced by core::eventreceiver::AcceptEventReceiver::acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::eventreceiver::ConnectEventReceiver::connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::eof(), outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSink::readEvent(), core::eventreceiver::ReadEventReceiver::readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), core::eventreceiver::AcceptEventReceiver::signalEvent(), core::eventreceiver::ConnectEventReceiver::signalEvent(), signalEvent(), core::eventreceiver::ReadEventReceiver::signalEvent(), core::eventreceiver::WriteEventReceiver::signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), core::pipe::PipeSource::writeEvent(), core::eventreceiver::WriteEventReceiver::writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

Here is the call graph for this function:
@@ -538,30 +538,30 @@

-

Definition at line 70 of file DescriptorEventReceiver.cpp.

-
70 {
- -
72 if (!enabled) {
-
73 observedFd = fd;
-
74
-
75 enabled = true;
- -
77 } else {
-
78 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
-
79 }
-
80 } else {
-
81 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
-
82 }
-
83
-
84 return enabled;
-
85 }
+

Definition at line 67 of file DescriptorEventReceiver.cpp.

+
67 {
+ +
69 if (!enabled) {
+
70 observedFd = fd;
+
71
+
72 enabled = true;
+ +
74 } else {
+
75 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
+
76 }
+
77 } else {
+
78 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
+
79 }
+
80
+
81 return enabled;
+
82 }
void enable(DescriptorEventReceiver *descriptorEventReceiver)
State eventLoopState()
Definition State.cpp:30
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::enable(), core::DescriptorEventReceiver::enabled, core::eventLoopState(), core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, and core::STOPPING.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::enable(), core::DescriptorEventReceiver::enabled, core::eventLoopState(), core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, and core::STOPPING.

-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::pipe::PipeSink::PipeSink(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::pipe::PipeSink::PipeSink(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

Here is the call graph for this function:
@@ -603,9 +603,9 @@

66 return event.getName();

67 }
-

References core::EventReceiver::event, and core::Event::getName().

+

References core::EventReceiver::event, and core::Event::getName().

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

Here is the call graph for this function:
@@ -642,12 +642,12 @@

-

Definition at line 66 of file DescriptorEventReceiver.cpp.

-
66 {
-
67 return observedFd;
-
68 }
+

Definition at line 63 of file DescriptorEventReceiver.cpp.

+
63 {
+
64 return observedFd;
+
65 }
-

References core::DescriptorEventReceiver::observedFd.

+

References core::DescriptorEventReceiver::observedFd.

Referenced by core::DescriptorEventPublisher::enable(), core::epoll::DescriptorEventPublisher::EPollEvents::muxAdd(), core::select::DescriptorEventPublisher::muxAdd(), core::poll::PollFdsManager::muxAdd(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOff(), core::select::DescriptorEventPublisher::muxOff(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOn(), core::select::DescriptorEventPublisher::muxOn(), core::socket::stream::legacy::SocketReader::read(), core::pipe::PipeSink::readEvent(), core::socket::stream::legacy::SocketWriter::write(), core::pipe::PipeSource::writeEvent(), core::pipe::PipeSink::~PipeSink(), and core::pipe::PipeSource::~PipeSource().

@@ -682,12 +682,12 @@

-

Definition at line 152 of file DescriptorEventReceiver.cpp.

-
152 {
-
153 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
-
154 }
+

Definition at line 149 of file DescriptorEventReceiver.cpp.

+
149 {
+
150 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
+
151 }
-

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

+

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

Referenced by core::DescriptorEventPublisher::getNextTimeout().

@@ -726,14 +726,14 @@

-

Definition at line 107 of file DescriptorEventReceiver.cpp.

-
107 {
-
108 return enabled;
-
109 }
+

Definition at line 104 of file DescriptorEventReceiver.cpp.

+
104 {
+
105 return enabled;
+
106 }
-

References core::DescriptorEventReceiver::enabled.

+

References core::DescriptorEventReceiver::enabled.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

Here is the caller graph for this function:
@@ -765,15 +765,15 @@

-

Definition at line 138 of file DescriptorEventReceiver.cpp.

-
138 {
-
139 return suspended;
-
140 }
- +

Definition at line 135 of file DescriptorEventReceiver.cpp.

+
135 {
+
136 return suspended;
+
137 }
+
-

References core::DescriptorEventReceiver::suspended.

+

References core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::pipe::PipeSource::send().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::pipe::PipeSource::send().

Here is the caller graph for this function:
@@ -805,15 +805,15 @@

-

Definition at line 41 of file DescriptorEventReceiver.cpp.

-
41 {
- -
43 }
- +

Definition at line 38 of file DescriptorEventReceiver.cpp.

+
38 {
+ +
40 }
+
-

References core::Observer::observationCounter.

+

References core::Observer::observationCounter.

-

Referenced by core::DescriptorEventReceiver::setEnabled().

+

Referenced by core::DescriptorEventReceiver::setEnabled().

Here is the caller graph for this function:
@@ -848,18 +848,18 @@

core::EventReceiver.

-

Definition at line 156 of file DescriptorEventReceiver.cpp.

-
156 {
-
157 eventCounter++;
-
158 triggered(currentTime);
-
159
- -
161 }
-
void triggered(const utils::Timeval &currentTime)
+

Definition at line 153 of file DescriptorEventReceiver.cpp.

+
153 {
+
154 eventCounter++;
+
155 triggered(currentTime);
+
156
+ +
158 }
+
void triggered(const utils::Timeval &currentTime)
virtual void dispatchEvent()=0
- +
-

References core::DescriptorEventReceiver::dispatchEvent(), core::DescriptorEventReceiver::eventCounter, and core::DescriptorEventReceiver::triggered().

+

References core::DescriptorEventReceiver::dispatchEvent(), core::DescriptorEventReceiver::eventCounter, and core::DescriptorEventReceiver::triggered().

Here is the call graph for this function:
@@ -892,10 +892,10 @@

-

Definition at line 163 of file DescriptorEventReceiver.cpp.

-
163 {
-
164 signalEvent(signum);
-
165 }
+

Definition at line 160 of file DescriptorEventReceiver.cpp.

+
160 {
+
161 signalEvent(signum);
+
162 }
virtual void signalEvent(int signum)=0

References core::DescriptorEventReceiver::signalEvent().

@@ -977,9 +977,9 @@

38 {
40 }
- +

-

References core::DescriptorEventReceiver::disable().

+

References core::DescriptorEventReceiver::disable().

Referenced by timeoutEvent().

@@ -1023,7 +1023,7 @@

62 event.relax();

63 }

-

References core::EventReceiver::event, and core::Event::relax().

+

References core::EventReceiver::event, and core::Event::relax().

Here is the call graph for this function:
@@ -1055,26 +1055,26 @@

-

Definition at line 124 of file DescriptorEventReceiver.cpp.

-
124 {
-
125 if (enabled) {
-
126 if (suspended) {
-
127 suspended = false;
- - -
130 } else {
-
131 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
-
132 }
-
133 } else {
-
134 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
-
135 }
-
136 }
+

Definition at line 121 of file DescriptorEventReceiver.cpp.

+
121 {
+
122 if (enabled) {
+
123 if (suspended) {
+
124 suspended = false;
+ + +
127 } else {
+
128 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
+
129 }
+
130 } else {
+
131 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
+
132 }
+
133 }
void resume(DescriptorEventReceiver *descriptorEventReceiver)
static Timeval currentTime()
Definition Timeval.cpp:54
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and core::DescriptorEventReceiver::suspended.

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSource::send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSource::send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

Here is the call graph for this function:
@@ -1111,13 +1111,13 @@

-

Definition at line 103 of file DescriptorEventReceiver.cpp.

-
103 {
-
104 unObserved();
-
105 }
- +

Definition at line 100 of file DescriptorEventReceiver.cpp.

+
100 {
+
101 unObserved();
+
102 }
+
-

References core::Observer::unObserved().

+

References core::Observer::unObserved().

Here is the call graph for this function:
@@ -1150,15 +1150,15 @@

-

Definition at line 87 of file DescriptorEventReceiver.cpp.

-
87 {
-
88 lastTriggered = currentTime;
-
89
-
90 observed();
-
91 }
- +

Definition at line 84 of file DescriptorEventReceiver.cpp.

+
84 {
+
85 lastTriggered = currentTime;
+
86
+
87 observed();
+
88 }
+
-

References core::DescriptorEventReceiver::lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

Referenced by core::DescriptorEventPublisher::enable().

@@ -1198,22 +1198,22 @@

-

Definition at line 142 of file DescriptorEventReceiver.cpp.

-
142 {
-
143 if (timeout == TIMEOUT::DEFAULT) {
- -
145 } else {
-
146 this->maxInactivity = timeout;
-
147 }
-
148
- -
150 }
- - +

Definition at line 139 of file DescriptorEventReceiver.cpp.

+
139 {
+
140 if (timeout == TIMEOUT::DEFAULT) {
+ +
142 } else {
+
143 this->maxInactivity = timeout;
+
144 }
+
145
+ +
147 }
+ +
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, core::DescriptorEventReceiver::initialTimeout, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and core::DescriptorEventReceiver::triggered().

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, core::DescriptorEventReceiver::initialTimeout, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and core::DescriptorEventReceiver::triggered().

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

Here is the call graph for this function:
@@ -1258,7 +1258,7 @@

51 disable();

52 }
-

References core::DescriptorEventReceiver::disable().

+

References core::DescriptorEventReceiver::disable().

Here is the call graph for this function:
@@ -1295,9 +1295,9 @@

58 event.span();

59 }

-

References core::EventReceiver::event, and core::Event::span().

+

References core::EventReceiver::event, and core::Event::span().

-

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

+

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

Here is the call graph for this function:
-
+
@@ -1334,24 +1334,24 @@

-

Definition at line 111 of file DescriptorEventReceiver.cpp.

-
111 {
-
112 if (enabled) {
-
113 if (!suspended) {
-
114 suspended = true;
- -
116 } else {
-
117 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
-
118 }
-
119 } else {
-
120 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
-
121 }
-
122 }
+

Definition at line 108 of file DescriptorEventReceiver.cpp.

+
108 {
+
109 if (enabled) {
+
110 if (!suspended) {
+
111 suspended = true;
+ +
113 } else {
+
114 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
+
115 }
+
116 } else {
+
117 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
+
118 }
+
119 }
void suspend(DescriptorEventReceiver *descriptorEventReceiver)
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, core::DescriptorEventPublisher::suspend(), and core::DescriptorEventReceiver::suspended.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, core::DescriptorEventPublisher::suspend(), and core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and core::pipe::PipeSource::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and core::pipe::PipeSource::writeEvent().

Here is the call graph for this function:
@@ -1429,14 +1429,14 @@

-

Definition at line 167 of file DescriptorEventReceiver.cpp.

-
167 {
-
168 lastTriggered = currentTime;
-
169 }
+

Definition at line 164 of file DescriptorEventReceiver.cpp.

+
164 {
+
165 lastTriggered = currentTime;
+
166 }
-

References core::DescriptorEventReceiver::lastTriggered, and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::lastTriggered, and utils::Timeval::operator=().

-

Referenced by core::DescriptorEventReceiver::onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::DescriptorEventReceiver::setTimeout().

Here is the call graph for this function:
@@ -1473,19 +1473,19 @@

-

Definition at line 45 of file DescriptorEventReceiver.cpp.

-
45 {
- -
47
-
48 if (observationCounter == 0) {
- -
50 }
-
51 }
+

Definition at line 42 of file DescriptorEventReceiver.cpp.

+
42 {
+ +
44
+
45 if (observationCounter == 0) {
+ +
47 }
+
48 }
virtual void unobservedEvent()=0
-

References core::Observer::observationCounter, and core::Observer::unobservedEvent().

+

References core::Observer::observationCounter, and core::Observer::unobservedEvent().

-

Referenced by core::DescriptorEventReceiver::setDisabled().

+

Referenced by core::DescriptorEventReceiver::setDisabled().

Here is the call graph for this function:
@@ -1524,7 +1524,7 @@

core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >, core::socket::stream::SocketAcceptor< PhysicalServerSocketT, ConfigT, core::socket::stream::legacy::SocketConnection >, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, core::socket::stream::tls::SocketConnection >, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >, core::socket::stream::SocketConnector< PhysicalClientSocketT, ConfigT, core::socket::stream::legacy::SocketConnection >, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, core::socket::stream::tls::SocketConnection >, core::socket::stream::tls::TLSHandshake, core::socket::stream::tls::TLSShutdown, core::pipe::PipeSink, core::pipe::PipeSource, and database::mariadb::MariaDBConnection.

-

Referenced by core::Observer::unObserved().

+

Referenced by core::Observer::unObserved().

Here is the caller graph for this function:

@@ -1580,9 +1580,9 @@

-

Definition at line 108 of file DescriptorEventReceiver.h.

+

Definition at line 105 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -1606,7 +1606,7 @@

-

Definition at line 59 of file EventReceiver.h.

+

Definition at line 65 of file EventReceiver.h.

Referenced by core::EventReceiver::EventReceiver(), core::EventReceiver::getName(), core::EventReceiver::relax(), and core::EventReceiver::span().

@@ -1632,9 +1632,9 @@

-

Definition at line 115 of file DescriptorEventReceiver.h.

+

Definition at line 112 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::onEvent().

+

Referenced by core::DescriptorEventReceiver::onEvent().

@@ -1658,9 +1658,9 @@

-

Definition at line 113 of file DescriptorEventReceiver.h.

+

Definition at line 110 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), and core::DescriptorEventReceiver::setTimeout().

@@ -1684,9 +1684,9 @@

-

Definition at line 111 of file DescriptorEventReceiver.h.

+

Definition at line 108 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::resume(), core::DescriptorEventReceiver::setEnabled(), and core::DescriptorEventReceiver::triggered().

+

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::resume(), core::DescriptorEventReceiver::setEnabled(), and core::DescriptorEventReceiver::triggered().

@@ -1710,9 +1710,9 @@

-

Definition at line 112 of file DescriptorEventReceiver.h.

+

Definition at line 109 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::getTimeout(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::getTimeout(), and core::DescriptorEventReceiver::setTimeout().

@@ -1736,9 +1736,9 @@

-

Definition at line 53 of file DescriptorEventReceiver.h.

+

Definition at line 54 of file DescriptorEventReceiver.h.

-

Referenced by core::Observer::observed(), and core::Observer::unObserved().

+

Referenced by core::Observer::observed(), and core::Observer::unObserved().

@@ -1762,9 +1762,9 @@

-

Definition at line 106 of file DescriptorEventReceiver.h.

+

Definition at line 103 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -1788,9 +1788,9 @@

-

Definition at line 109 of file DescriptorEventReceiver.h.

+

Definition at line 106 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -1804,7 +1804,7 @@

diff --git a/html/classcore_1_1eventreceiver_1_1ReadEventReceiver-members.html b/html/classcore_1_1eventreceiver_1_1ReadEventReceiver-members.html index 5d073188db..8335469ef5 100644 --- a/html/classcore_1_1eventreceiver_1_1ReadEventReceiver-members.html +++ b/html/classcore_1_1eventreceiver_1_1ReadEventReceiver-members.html @@ -98,56 +98,59 @@ atNextTick(const std::function< void(void)> &callBack)core::EventReceiverstatic checkTimeout(const utils::Timeval &currentTime)core::DescriptorEventReceiver descriptorEventPublishercore::DescriptorEventReceiverprivate - DescriptorEventReceiver(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiver - DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiver - destruct()core::EventReceivervirtual - disable()core::DescriptorEventReceiverprotected - dispatchEvent() finalcore::eventreceiver::ReadEventReceiverprivatevirtual - enable(int fd)core::DescriptorEventReceiverprotected - enabledcore::DescriptorEventReceiverprivate - eventcore::EventReceiverprivate - eventCountercore::DescriptorEventReceiverprivate - EventReceiver(const std::string &name)core::EventReceiver - getName() constcore::EventReceiver - getRegisteredFd() constcore::DescriptorEventReceiver - getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiver - initialTimeoutcore::DescriptorEventReceiverprivate - isEnabled() constcore::DescriptorEventReceiver - isSuspended() constcore::DescriptorEventReceiver - lastTriggeredcore::DescriptorEventReceiverprivate - maxInactivitycore::DescriptorEventReceiverprivate - observationCountercore::Observerprivate - observed()core::Observerprotected - observedFdcore::DescriptorEventReceiverprivate - Observer()=defaultcore::Observerprotected - Observer(const Observer &observer)core::Observerprotected + DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiver + destruct()core::EventReceivervirtual + disable()core::DescriptorEventReceiverprotected + dispatchEvent() finalcore::eventreceiver::ReadEventReceiverprivatevirtual + enable(int fd)core::DescriptorEventReceiverprotected + enabledcore::DescriptorEventReceiverprivate + eventcore::EventReceiverprivate + eventCountercore::DescriptorEventReceiverprivate + EventReceiver(const std::string &name)core::EventReceiver + EventReceiver(EventReceiver &)=deletecore::EventReceiver + EventReceiver(EventReceiver &&)=deletecore::EventReceiver + getName() constcore::EventReceiver + getRegisteredFd() constcore::DescriptorEventReceiver + getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiver + initialTimeoutcore::DescriptorEventReceiverprivate + isEnabled() constcore::DescriptorEventReceiver + isSuspended() constcore::DescriptorEventReceiver + lastTriggeredcore::DescriptorEventReceiverprivate + maxInactivitycore::DescriptorEventReceiverprivate + observationCountercore::Observerprivate + observed()core::Observerprotected + observedFdcore::DescriptorEventReceiverprivate + Observer()=defaultcore::Observerprotected + Observer(Observer &)=deletecore::Observerprotected + Observer(Observer &&)=deletecore::Observerprotected onEvent(const utils::Timeval &currentTime) finalcore::DescriptorEventReceiverprivatevirtual onSignal(int signum)core::DescriptorEventReceiverprivate - operator=(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiver - readEvent()=0core::eventreceiver::ReadEventReceiverprivatepure virtual - ReadEventReceiver(const std::string &name, const utils::Timeval &timeout)core::eventreceiver::ReadEventReceiverprotected - readTimeout()core::eventreceiver::ReadEventReceiverprivatevirtual - relax()core::EventReceiver - resume()core::DescriptorEventReceiverprotected - setDisabled()core::DescriptorEventReceiverprivate - setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiver - signalEvent(int signum) overridecore::eventreceiver::ReadEventReceiverprivatevirtual - span()core::EventReceiver - suspend()core::DescriptorEventReceiverprotected - suspendedcore::DescriptorEventReceiverprivate - timeoutEvent() finalcore::eventreceiver::ReadEventReceiverprivatevirtual - triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - unObserved()core::Observerprotected - unobservedEvent()=0core::Observerprotectedpure virtual - ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual - ~Observer()core::Observerprotectedvirtual + operator=(EventReceiver &)=deletecore::EventReceiver + operator=(EventReceiver &&)=deletecore::EventReceiver + readEvent()=0core::eventreceiver::ReadEventReceiverprivatepure virtual + ReadEventReceiver(const std::string &name, const utils::Timeval &timeout)core::eventreceiver::ReadEventReceiverprotected + readTimeout()core::eventreceiver::ReadEventReceiverprivatevirtual + relax()core::EventReceiver + resume()core::DescriptorEventReceiverprotected + setDisabled()core::DescriptorEventReceiverprivate + setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiver + signalEvent(int signum) overridecore::eventreceiver::ReadEventReceiverprivatevirtual + span()core::EventReceiver + suspend()core::DescriptorEventReceiverprotected + suspendedcore::DescriptorEventReceiverprivate + timeoutEvent() finalcore::eventreceiver::ReadEventReceiverprivatevirtual + triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + unObserved()core::Observerprotected + unobservedEvent()=0core::Observerprotectedpure virtual + ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual + ~Observer()core::Observerprotectedvirtual

diff --git a/html/classcore_1_1eventreceiver_1_1ReadEventReceiver.html b/html/classcore_1_1eventreceiver_1_1ReadEventReceiver.html index f6e13a66d3..93fd83e59e 100644 --- a/html/classcore_1_1eventreceiver_1_1ReadEventReceiver.html +++ b/html/classcore_1_1eventreceiver_1_1ReadEventReceiver.html @@ -245,15 +245,15 @@

Definition at line 31 of file ReadEventReceiver.cpp.

-
33 name + " read",
+
33 name + " Read",
34 core::EventLoop::instance().getEventMultiplexer().getDescriptorEventPublisher(core::EventMultiplexer::DISP_TYPE::RD),
35 timeout) {
36 }
- +
static EventLoop & instance()
Definition EventLoop.cpp:59
-

References core::DescriptorEventReceiver::DescriptorEventReceiver(), core::EventMultiplexer::getDescriptorEventPublisher(), core::EventLoop::getEventMultiplexer(), core::EventLoop::instance(), and core::EventMultiplexer::RD.

+

References core::DescriptorEventReceiver::DescriptorEventReceiver(), core::EventMultiplexer::getDescriptorEventPublisher(), core::EventLoop::getEventMultiplexer(), core::EventLoop::instance(), and core::EventMultiplexer::RD.

Referenced by core::pipe::PipeSink::PipeSink(), core::socket::stream::SocketReader::SocketReader(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

@@ -322,7 +322,7 @@

References core::EventReceiver::EventReceiver(), and core::EventReceiver::span().

-

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::responseDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

Here is the call graph for this function:
-
+

@@ -360,17 +360,17 @@

-

Definition at line 171 of file DescriptorEventReceiver.cpp.

-
171 {
-
172 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
-
173 timeoutEvent();
-
174 }
-
175 }
- +

Definition at line 168 of file DescriptorEventReceiver.cpp.

+
168 {
+
169 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
+
170 timeoutEvent();
+
171 }
+
172 }
+
virtual void timeoutEvent()=0
- +
-

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and core::DescriptorEventReceiver::timeoutEvent().

+

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and core::DescriptorEventReceiver::timeoutEvent().

Referenced by core::DescriptorEventPublisher::checkTimedOutEvents().

@@ -448,26 +448,26 @@

-

Definition at line 93 of file DescriptorEventReceiver.cpp.

-
93 {
-
94 if (enabled) {
-
95 enabled = false;
- -
97 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
-
98 } else {
-
99 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
-
100 }
-
101 }
+

Definition at line 90 of file DescriptorEventReceiver.cpp.

+
90 {
+
91 if (enabled) {
+
92 enabled = false;
+ +
94 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
+
95 } else {
+
96 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
+
97 }
+
98 }
void disable(DescriptorEventReceiver *descriptorEventReceiver)
- - -
DescriptorEventPublisher & descriptorEventPublisher
+ + +
DescriptorEventPublisher & descriptorEventPublisher
const std::string & getName() const
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::disable(), core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), and core::DescriptorEventReceiver::observedFd.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::disable(), core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), and core::DescriptorEventReceiver::observedFd.

-

Referenced by core::eventreceiver::AcceptEventReceiver::acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::eventreceiver::ConnectEventReceiver::connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::eof(), core::eventreceiver::ExceptionalConditionEventReceiver::outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSink::readEvent(), readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), core::eventreceiver::AcceptEventReceiver::signalEvent(), core::eventreceiver::ConnectEventReceiver::signalEvent(), core::eventreceiver::ExceptionalConditionEventReceiver::signalEvent(), signalEvent(), core::eventreceiver::WriteEventReceiver::signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), core::pipe::PipeSource::writeEvent(), core::eventreceiver::WriteEventReceiver::writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

+

Referenced by core::eventreceiver::AcceptEventReceiver::acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::eventreceiver::ConnectEventReceiver::connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::eof(), core::eventreceiver::ExceptionalConditionEventReceiver::outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSink::readEvent(), readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), core::eventreceiver::AcceptEventReceiver::signalEvent(), core::eventreceiver::ConnectEventReceiver::signalEvent(), core::eventreceiver::ExceptionalConditionEventReceiver::signalEvent(), signalEvent(), core::eventreceiver::WriteEventReceiver::signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), core::pipe::PipeSource::writeEvent(), core::eventreceiver::WriteEventReceiver::writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

Here is the call graph for this function:
@@ -545,30 +545,30 @@

-

Definition at line 70 of file DescriptorEventReceiver.cpp.

-
70 {
- -
72 if (!enabled) {
-
73 observedFd = fd;
-
74
-
75 enabled = true;
- -
77 } else {
-
78 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
-
79 }
-
80 } else {
-
81 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
-
82 }
-
83
-
84 return enabled;
-
85 }
+

Definition at line 67 of file DescriptorEventReceiver.cpp.

+
67 {
+ +
69 if (!enabled) {
+
70 observedFd = fd;
+
71
+
72 enabled = true;
+ +
74 } else {
+
75 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
+
76 }
+
77 } else {
+
78 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
+
79 }
+
80
+
81 return enabled;
+
82 }
void enable(DescriptorEventReceiver *descriptorEventReceiver)
State eventLoopState()
Definition State.cpp:30
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::enable(), core::DescriptorEventReceiver::enabled, core::eventLoopState(), core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, and core::STOPPING.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::enable(), core::DescriptorEventReceiver::enabled, core::eventLoopState(), core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, and core::STOPPING.

-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::pipe::PipeSink::PipeSink(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::pipe::PipeSink::PipeSink(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

Here is the call graph for this function:
@@ -610,9 +610,9 @@

66 return event.getName();

67 }
-

References core::EventReceiver::event, and core::Event::getName().

+

References core::EventReceiver::event, and core::Event::getName().

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

Here is the call graph for this function:
@@ -649,12 +649,12 @@

-

Definition at line 66 of file DescriptorEventReceiver.cpp.

-
66 {
-
67 return observedFd;
-
68 }
+

Definition at line 63 of file DescriptorEventReceiver.cpp.

+
63 {
+
64 return observedFd;
+
65 }
-

References core::DescriptorEventReceiver::observedFd.

+

References core::DescriptorEventReceiver::observedFd.

Referenced by core::DescriptorEventPublisher::enable(), core::epoll::DescriptorEventPublisher::EPollEvents::muxAdd(), core::select::DescriptorEventPublisher::muxAdd(), core::poll::PollFdsManager::muxAdd(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOff(), core::select::DescriptorEventPublisher::muxOff(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOn(), core::select::DescriptorEventPublisher::muxOn(), core::socket::stream::legacy::SocketReader::read(), core::pipe::PipeSink::readEvent(), core::socket::stream::legacy::SocketWriter::write(), core::pipe::PipeSource::writeEvent(), core::pipe::PipeSink::~PipeSink(), and core::pipe::PipeSource::~PipeSource().

@@ -689,12 +689,12 @@

-

Definition at line 152 of file DescriptorEventReceiver.cpp.

-
152 {
-
153 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
-
154 }
+

Definition at line 149 of file DescriptorEventReceiver.cpp.

+
149 {
+
150 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
+
151 }
-

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

+

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

Referenced by core::DescriptorEventPublisher::getNextTimeout().

@@ -733,14 +733,14 @@

-

Definition at line 107 of file DescriptorEventReceiver.cpp.

-
107 {
-
108 return enabled;
-
109 }
+

Definition at line 104 of file DescriptorEventReceiver.cpp.

+
104 {
+
105 return enabled;
+
106 }
-

References core::DescriptorEventReceiver::enabled.

+

References core::DescriptorEventReceiver::enabled.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

Here is the caller graph for this function:
@@ -772,15 +772,15 @@

-

Definition at line 138 of file DescriptorEventReceiver.cpp.

-
138 {
-
139 return suspended;
-
140 }
- +

Definition at line 135 of file DescriptorEventReceiver.cpp.

+
135 {
+
136 return suspended;
+
137 }
+
-

References core::DescriptorEventReceiver::suspended.

+

References core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::pipe::PipeSource::send().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::pipe::PipeSource::send().

Here is the caller graph for this function:
@@ -812,15 +812,15 @@

-

Definition at line 41 of file DescriptorEventReceiver.cpp.

-
41 {
- -
43 }
- +

Definition at line 38 of file DescriptorEventReceiver.cpp.

+
38 {
+ +
40 }
+
-

References core::Observer::observationCounter.

+

References core::Observer::observationCounter.

-

Referenced by core::DescriptorEventReceiver::setEnabled().

+

Referenced by core::DescriptorEventReceiver::setEnabled().

Here is the caller graph for this function:
@@ -855,18 +855,18 @@

core::EventReceiver.

-

Definition at line 156 of file DescriptorEventReceiver.cpp.

-
156 {
-
157 eventCounter++;
-
158 triggered(currentTime);
-
159
- -
161 }
-
void triggered(const utils::Timeval &currentTime)
+

Definition at line 153 of file DescriptorEventReceiver.cpp.

+
153 {
+
154 eventCounter++;
+
155 triggered(currentTime);
+
156
+ +
158 }
+
void triggered(const utils::Timeval &currentTime)
virtual void dispatchEvent()=0
- +
-

References core::DescriptorEventReceiver::dispatchEvent(), core::DescriptorEventReceiver::eventCounter, and core::DescriptorEventReceiver::triggered().

+

References core::DescriptorEventReceiver::dispatchEvent(), core::DescriptorEventReceiver::eventCounter, and core::DescriptorEventReceiver::triggered().

Here is the call graph for this function:
@@ -899,10 +899,10 @@

-

Definition at line 163 of file DescriptorEventReceiver.cpp.

-
163 {
-
164 signalEvent(signum);
-
165 }
+

Definition at line 160 of file DescriptorEventReceiver.cpp.

+
160 {
+
161 signalEvent(signum);
+
162 }
virtual void signalEvent(int signum)=0

References core::DescriptorEventReceiver::signalEvent().

@@ -984,9 +984,9 @@

38 {
40 }
- +

-

References core::DescriptorEventReceiver::disable().

+

References core::DescriptorEventReceiver::disable().

Referenced by timeoutEvent().

@@ -1030,7 +1030,7 @@

62 event.relax();

63 }

-

References core::EventReceiver::event, and core::Event::relax().

+

References core::EventReceiver::event, and core::Event::relax().

Here is the call graph for this function:
@@ -1062,26 +1062,26 @@

-

Definition at line 124 of file DescriptorEventReceiver.cpp.

-
124 {
-
125 if (enabled) {
-
126 if (suspended) {
-
127 suspended = false;
- - -
130 } else {
-
131 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
-
132 }
-
133 } else {
-
134 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
-
135 }
-
136 }
+

Definition at line 121 of file DescriptorEventReceiver.cpp.

+
121 {
+
122 if (enabled) {
+
123 if (suspended) {
+
124 suspended = false;
+ + +
127 } else {
+
128 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
+
129 }
+
130 } else {
+
131 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
+
132 }
+
133 }
void resume(DescriptorEventReceiver *descriptorEventReceiver)
static Timeval currentTime()
Definition Timeval.cpp:54
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and core::DescriptorEventReceiver::suspended.

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSource::send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSource::send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

Here is the call graph for this function:
@@ -1118,13 +1118,13 @@

-

Definition at line 103 of file DescriptorEventReceiver.cpp.

-
103 {
-
104 unObserved();
-
105 }
- +

Definition at line 100 of file DescriptorEventReceiver.cpp.

+
100 {
+
101 unObserved();
+
102 }
+
-

References core::Observer::unObserved().

+

References core::Observer::unObserved().

Here is the call graph for this function:
@@ -1157,15 +1157,15 @@

-

Definition at line 87 of file DescriptorEventReceiver.cpp.

-
87 {
-
88 lastTriggered = currentTime;
-
89
-
90 observed();
-
91 }
- +

Definition at line 84 of file DescriptorEventReceiver.cpp.

+
84 {
+
85 lastTriggered = currentTime;
+
86
+
87 observed();
+
88 }
+
-

References core::DescriptorEventReceiver::lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

Referenced by core::DescriptorEventPublisher::enable().

@@ -1205,22 +1205,22 @@

-

Definition at line 142 of file DescriptorEventReceiver.cpp.

-
142 {
-
143 if (timeout == TIMEOUT::DEFAULT) {
- -
145 } else {
-
146 this->maxInactivity = timeout;
-
147 }
-
148
- -
150 }
- - +

Definition at line 139 of file DescriptorEventReceiver.cpp.

+
139 {
+
140 if (timeout == TIMEOUT::DEFAULT) {
+ +
142 } else {
+
143 this->maxInactivity = timeout;
+
144 }
+
145
+ +
147 }
+ +
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, core::DescriptorEventReceiver::initialTimeout, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and core::DescriptorEventReceiver::triggered().

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, core::DescriptorEventReceiver::initialTimeout, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and core::DescriptorEventReceiver::triggered().

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

Here is the call graph for this function:
@@ -1267,7 +1267,7 @@

51 disable();

52 }
-

References core::DescriptorEventReceiver::disable().

+

References core::DescriptorEventReceiver::disable().

Here is the call graph for this function:
@@ -1304,9 +1304,9 @@

58 event.span();

59 }

-

References core::EventReceiver::event, and core::Event::span().

+

References core::EventReceiver::event, and core::Event::span().

-

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

+

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

Here is the call graph for this function:
-
+
@@ -1343,24 +1343,24 @@

-

Definition at line 111 of file DescriptorEventReceiver.cpp.

-
111 {
-
112 if (enabled) {
-
113 if (!suspended) {
-
114 suspended = true;
- -
116 } else {
-
117 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
-
118 }
-
119 } else {
-
120 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
-
121 }
-
122 }
+

Definition at line 108 of file DescriptorEventReceiver.cpp.

+
108 {
+
109 if (enabled) {
+
110 if (!suspended) {
+
111 suspended = true;
+ +
113 } else {
+
114 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
+
115 }
+
116 } else {
+
117 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
+
118 }
+
119 }
void suspend(DescriptorEventReceiver *descriptorEventReceiver)
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, core::DescriptorEventPublisher::suspend(), and core::DescriptorEventReceiver::suspended.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, core::DescriptorEventPublisher::suspend(), and core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and core::pipe::PipeSource::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and core::pipe::PipeSource::writeEvent().

Here is the call graph for this function:
@@ -1438,14 +1438,14 @@

-

Definition at line 167 of file DescriptorEventReceiver.cpp.

-
167 {
-
168 lastTriggered = currentTime;
-
169 }
+

Definition at line 164 of file DescriptorEventReceiver.cpp.

+
164 {
+
165 lastTriggered = currentTime;
+
166 }
-

References core::DescriptorEventReceiver::lastTriggered, and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::lastTriggered, and utils::Timeval::operator=().

-

Referenced by core::DescriptorEventReceiver::onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::DescriptorEventReceiver::setTimeout().

Here is the call graph for this function:
@@ -1482,19 +1482,19 @@

-

Definition at line 45 of file DescriptorEventReceiver.cpp.

-
45 {
- -
47
-
48 if (observationCounter == 0) {
- -
50 }
-
51 }
+

Definition at line 42 of file DescriptorEventReceiver.cpp.

+
42 {
+ +
44
+
45 if (observationCounter == 0) {
+ +
47 }
+
48 }
virtual void unobservedEvent()=0
-

References core::Observer::observationCounter, and core::Observer::unobservedEvent().

+

References core::Observer::observationCounter, and core::Observer::unobservedEvent().

-

Referenced by core::DescriptorEventReceiver::setDisabled().

+

Referenced by core::DescriptorEventReceiver::setDisabled().

Here is the call graph for this function:
@@ -1533,7 +1533,7 @@

core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >, core::socket::stream::SocketAcceptor< PhysicalServerSocketT, ConfigT, core::socket::stream::legacy::SocketConnection >, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, core::socket::stream::tls::SocketConnection >, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >, core::socket::stream::SocketConnector< PhysicalClientSocketT, ConfigT, core::socket::stream::legacy::SocketConnection >, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, core::socket::stream::tls::SocketConnection >, core::socket::stream::tls::TLSHandshake, core::socket::stream::tls::TLSShutdown, core::pipe::PipeSink, core::pipe::PipeSource, and database::mariadb::MariaDBConnection.

-

Referenced by core::Observer::unObserved().

+

Referenced by core::Observer::unObserved().

Here is the caller graph for this function:

@@ -1589,9 +1589,9 @@

-

Definition at line 108 of file DescriptorEventReceiver.h.

+

Definition at line 105 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -1615,7 +1615,7 @@

-

Definition at line 59 of file EventReceiver.h.

+

Definition at line 65 of file EventReceiver.h.

Referenced by core::EventReceiver::EventReceiver(), core::EventReceiver::getName(), core::EventReceiver::relax(), and core::EventReceiver::span().

@@ -1641,9 +1641,9 @@

-

Definition at line 115 of file DescriptorEventReceiver.h.

+

Definition at line 112 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::onEvent().

+

Referenced by core::DescriptorEventReceiver::onEvent().

@@ -1667,9 +1667,9 @@

-

Definition at line 113 of file DescriptorEventReceiver.h.

+

Definition at line 110 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), and core::DescriptorEventReceiver::setTimeout().

@@ -1693,9 +1693,9 @@

-

Definition at line 111 of file DescriptorEventReceiver.h.

+

Definition at line 108 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::resume(), core::DescriptorEventReceiver::setEnabled(), and core::DescriptorEventReceiver::triggered().

+

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::resume(), core::DescriptorEventReceiver::setEnabled(), and core::DescriptorEventReceiver::triggered().

@@ -1719,9 +1719,9 @@

-

Definition at line 112 of file DescriptorEventReceiver.h.

+

Definition at line 109 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::getTimeout(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::getTimeout(), and core::DescriptorEventReceiver::setTimeout().

@@ -1745,9 +1745,9 @@

-

Definition at line 53 of file DescriptorEventReceiver.h.

+

Definition at line 54 of file DescriptorEventReceiver.h.

-

Referenced by core::Observer::observed(), and core::Observer::unObserved().

+

Referenced by core::Observer::observed(), and core::Observer::unObserved().

@@ -1771,9 +1771,9 @@

-

Definition at line 106 of file DescriptorEventReceiver.h.

+

Definition at line 103 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -1797,9 +1797,9 @@

-

Definition at line 109 of file DescriptorEventReceiver.h.

+

Definition at line 106 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -1813,7 +1813,7 @@

diff --git a/html/classcore_1_1eventreceiver_1_1WriteEventReceiver-members.html b/html/classcore_1_1eventreceiver_1_1WriteEventReceiver-members.html index 0456e6e21e..0c217c3036 100644 --- a/html/classcore_1_1eventreceiver_1_1WriteEventReceiver-members.html +++ b/html/classcore_1_1eventreceiver_1_1WriteEventReceiver-members.html @@ -98,56 +98,59 @@ atNextTick(const std::function< void(void)> &callBack)core::EventReceiverstatic checkTimeout(const utils::Timeval &currentTime)core::DescriptorEventReceiver descriptorEventPublishercore::DescriptorEventReceiverprivate - DescriptorEventReceiver(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiver - DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiver - destruct()core::EventReceivervirtual - disable()core::DescriptorEventReceiverprotected - dispatchEvent() finalcore::eventreceiver::WriteEventReceiverprivatevirtual - enable(int fd)core::DescriptorEventReceiverprotected - enabledcore::DescriptorEventReceiverprivate - eventcore::EventReceiverprivate - eventCountercore::DescriptorEventReceiverprivate - EventReceiver(const std::string &name)core::EventReceiver - getName() constcore::EventReceiver - getRegisteredFd() constcore::DescriptorEventReceiver - getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiver - initialTimeoutcore::DescriptorEventReceiverprivate - isEnabled() constcore::DescriptorEventReceiver - isSuspended() constcore::DescriptorEventReceiver - lastTriggeredcore::DescriptorEventReceiverprivate - maxInactivitycore::DescriptorEventReceiverprivate - observationCountercore::Observerprivate - observed()core::Observerprotected - observedFdcore::DescriptorEventReceiverprivate - Observer()=defaultcore::Observerprotected - Observer(const Observer &observer)core::Observerprotected + DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiver + destruct()core::EventReceivervirtual + disable()core::DescriptorEventReceiverprotected + dispatchEvent() finalcore::eventreceiver::WriteEventReceiverprivatevirtual + enable(int fd)core::DescriptorEventReceiverprotected + enabledcore::DescriptorEventReceiverprivate + eventcore::EventReceiverprivate + eventCountercore::DescriptorEventReceiverprivate + EventReceiver(const std::string &name)core::EventReceiver + EventReceiver(EventReceiver &)=deletecore::EventReceiver + EventReceiver(EventReceiver &&)=deletecore::EventReceiver + getName() constcore::EventReceiver + getRegisteredFd() constcore::DescriptorEventReceiver + getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiver + initialTimeoutcore::DescriptorEventReceiverprivate + isEnabled() constcore::DescriptorEventReceiver + isSuspended() constcore::DescriptorEventReceiver + lastTriggeredcore::DescriptorEventReceiverprivate + maxInactivitycore::DescriptorEventReceiverprivate + observationCountercore::Observerprivate + observed()core::Observerprotected + observedFdcore::DescriptorEventReceiverprivate + Observer()=defaultcore::Observerprotected + Observer(Observer &)=deletecore::Observerprotected + Observer(Observer &&)=deletecore::Observerprotected onEvent(const utils::Timeval &currentTime) finalcore::DescriptorEventReceiverprivatevirtual onSignal(int signum)core::DescriptorEventReceiverprivate - operator=(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiver - relax()core::EventReceiver - resume()core::DescriptorEventReceiverprotected - setDisabled()core::DescriptorEventReceiverprivate - setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiver - signalEvent(int signum) overridecore::eventreceiver::WriteEventReceiverprivatevirtual - span()core::EventReceiver - suspend()core::DescriptorEventReceiverprotected - suspendedcore::DescriptorEventReceiverprivate - timeoutEvent() finalcore::eventreceiver::WriteEventReceiverprivatevirtual - triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - unObserved()core::Observerprotected - unobservedEvent()=0core::Observerprotectedpure virtual - writeEvent()=0core::eventreceiver::WriteEventReceiverprivatepure virtual - WriteEventReceiver(const std::string &name, const utils::Timeval &timeout)core::eventreceiver::WriteEventReceiverprotected - writeTimeout()core::eventreceiver::WriteEventReceiverprivatevirtual - ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual - ~Observer()core::Observerprotectedvirtual + operator=(EventReceiver &)=deletecore::EventReceiver + operator=(EventReceiver &&)=deletecore::EventReceiver + relax()core::EventReceiver + resume()core::DescriptorEventReceiverprotected + setDisabled()core::DescriptorEventReceiverprivate + setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiver + signalEvent(int signum) overridecore::eventreceiver::WriteEventReceiverprivatevirtual + span()core::EventReceiver + suspend()core::DescriptorEventReceiverprotected + suspendedcore::DescriptorEventReceiverprivate + timeoutEvent() finalcore::eventreceiver::WriteEventReceiverprivatevirtual + triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + unObserved()core::Observerprotected + unobservedEvent()=0core::Observerprotectedpure virtual + writeEvent()=0core::eventreceiver::WriteEventReceiverprivatepure virtual + WriteEventReceiver(const std::string &name, const utils::Timeval &timeout)core::eventreceiver::WriteEventReceiverprotected + writeTimeout()core::eventreceiver::WriteEventReceiverprivatevirtual + ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual + ~Observer()core::Observerprotectedvirtual

diff --git a/html/classcore_1_1eventreceiver_1_1WriteEventReceiver.html b/html/classcore_1_1eventreceiver_1_1WriteEventReceiver.html index fa40d79d73..fee1b18d18 100644 --- a/html/classcore_1_1eventreceiver_1_1WriteEventReceiver.html +++ b/html/classcore_1_1eventreceiver_1_1WriteEventReceiver.html @@ -245,15 +245,15 @@

Definition at line 31 of file WriteEventReceiver.cpp.

-
33 name + " write",
+
33 name + " Write",
34 core::EventLoop::instance().getEventMultiplexer().getDescriptorEventPublisher(core::EventMultiplexer::DISP_TYPE::WR),
35 timeout) {
36 }
- +
static EventLoop & instance()
Definition EventLoop.cpp:59
-

References core::DescriptorEventReceiver::DescriptorEventReceiver(), core::EventMultiplexer::getDescriptorEventPublisher(), core::EventLoop::getEventMultiplexer(), core::EventLoop::instance(), and core::EventMultiplexer::WR.

+

References core::DescriptorEventReceiver::DescriptorEventReceiver(), core::EventMultiplexer::getDescriptorEventPublisher(), core::EventLoop::getEventMultiplexer(), core::EventLoop::instance(), and core::EventMultiplexer::WR.

Referenced by core::pipe::PipeSource::PipeSource(), core::socket::stream::SocketWriter::SocketWriter(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

@@ -322,7 +322,7 @@

References core::EventReceiver::EventReceiver(), and core::EventReceiver::span().

-

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::responseDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

Here is the call graph for this function:
-
+

@@ -360,17 +360,17 @@

-

Definition at line 171 of file DescriptorEventReceiver.cpp.

-
171 {
-
172 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
-
173 timeoutEvent();
-
174 }
-
175 }
- +

Definition at line 168 of file DescriptorEventReceiver.cpp.

+
168 {
+
169 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
+
170 timeoutEvent();
+
171 }
+
172 }
+
virtual void timeoutEvent()=0
- +
-

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and core::DescriptorEventReceiver::timeoutEvent().

+

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and core::DescriptorEventReceiver::timeoutEvent().

Referenced by core::DescriptorEventPublisher::checkTimedOutEvents().

@@ -448,26 +448,26 @@

-

Definition at line 93 of file DescriptorEventReceiver.cpp.

-
93 {
-
94 if (enabled) {
-
95 enabled = false;
- -
97 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
-
98 } else {
-
99 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
-
100 }
-
101 }
+

Definition at line 90 of file DescriptorEventReceiver.cpp.

+
90 {
+
91 if (enabled) {
+
92 enabled = false;
+ +
94 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
+
95 } else {
+
96 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
+
97 }
+
98 }
void disable(DescriptorEventReceiver *descriptorEventReceiver)
- - -
DescriptorEventPublisher & descriptorEventPublisher
+ + +
DescriptorEventPublisher & descriptorEventPublisher
const std::string & getName() const
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::disable(), core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), and core::DescriptorEventReceiver::observedFd.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::disable(), core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), and core::DescriptorEventReceiver::observedFd.

-

Referenced by core::eventreceiver::AcceptEventReceiver::acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::eventreceiver::ConnectEventReceiver::connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::eof(), core::eventreceiver::ExceptionalConditionEventReceiver::outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSink::readEvent(), core::eventreceiver::ReadEventReceiver::readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), core::eventreceiver::AcceptEventReceiver::signalEvent(), core::eventreceiver::ConnectEventReceiver::signalEvent(), core::eventreceiver::ExceptionalConditionEventReceiver::signalEvent(), core::eventreceiver::ReadEventReceiver::signalEvent(), signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), core::pipe::PipeSource::writeEvent(), writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

+

Referenced by core::eventreceiver::AcceptEventReceiver::acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::eventreceiver::ConnectEventReceiver::connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::eof(), core::eventreceiver::ExceptionalConditionEventReceiver::outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSink::readEvent(), core::eventreceiver::ReadEventReceiver::readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), core::eventreceiver::AcceptEventReceiver::signalEvent(), core::eventreceiver::ConnectEventReceiver::signalEvent(), core::eventreceiver::ExceptionalConditionEventReceiver::signalEvent(), core::eventreceiver::ReadEventReceiver::signalEvent(), signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), core::pipe::PipeSource::writeEvent(), writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

Here is the call graph for this function:
@@ -545,30 +545,30 @@

-

Definition at line 70 of file DescriptorEventReceiver.cpp.

-
70 {
- -
72 if (!enabled) {
-
73 observedFd = fd;
-
74
-
75 enabled = true;
- -
77 } else {
-
78 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
-
79 }
-
80 } else {
-
81 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
-
82 }
-
83
-
84 return enabled;
-
85 }
+

Definition at line 67 of file DescriptorEventReceiver.cpp.

+
67 {
+ +
69 if (!enabled) {
+
70 observedFd = fd;
+
71
+
72 enabled = true;
+ +
74 } else {
+
75 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
+
76 }
+
77 } else {
+
78 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
+
79 }
+
80
+
81 return enabled;
+
82 }
void enable(DescriptorEventReceiver *descriptorEventReceiver)
State eventLoopState()
Definition State.cpp:30
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::enable(), core::DescriptorEventReceiver::enabled, core::eventLoopState(), core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, and core::STOPPING.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::enable(), core::DescriptorEventReceiver::enabled, core::eventLoopState(), core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, and core::STOPPING.

-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::pipe::PipeSink::PipeSink(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::pipe::PipeSink::PipeSink(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

Here is the call graph for this function:
@@ -610,9 +610,9 @@

66 return event.getName();

67 }
-

References core::EventReceiver::event, and core::Event::getName().

+

References core::EventReceiver::event, and core::Event::getName().

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

Here is the call graph for this function:
@@ -649,12 +649,12 @@

-

Definition at line 66 of file DescriptorEventReceiver.cpp.

-
66 {
-
67 return observedFd;
-
68 }
+

Definition at line 63 of file DescriptorEventReceiver.cpp.

+
63 {
+
64 return observedFd;
+
65 }
-

References core::DescriptorEventReceiver::observedFd.

+

References core::DescriptorEventReceiver::observedFd.

Referenced by core::DescriptorEventPublisher::enable(), core::epoll::DescriptorEventPublisher::EPollEvents::muxAdd(), core::select::DescriptorEventPublisher::muxAdd(), core::poll::PollFdsManager::muxAdd(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOff(), core::select::DescriptorEventPublisher::muxOff(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOn(), core::select::DescriptorEventPublisher::muxOn(), core::socket::stream::legacy::SocketReader::read(), core::pipe::PipeSink::readEvent(), core::socket::stream::legacy::SocketWriter::write(), core::pipe::PipeSource::writeEvent(), core::pipe::PipeSink::~PipeSink(), and core::pipe::PipeSource::~PipeSource().

@@ -689,12 +689,12 @@

-

Definition at line 152 of file DescriptorEventReceiver.cpp.

-
152 {
-
153 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
-
154 }
+

Definition at line 149 of file DescriptorEventReceiver.cpp.

+
149 {
+
150 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
+
151 }
-

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

+

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

Referenced by core::DescriptorEventPublisher::getNextTimeout().

@@ -733,14 +733,14 @@

-

Definition at line 107 of file DescriptorEventReceiver.cpp.

-
107 {
-
108 return enabled;
-
109 }
+

Definition at line 104 of file DescriptorEventReceiver.cpp.

+
104 {
+
105 return enabled;
+
106 }
-

References core::DescriptorEventReceiver::enabled.

+

References core::DescriptorEventReceiver::enabled.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

Here is the caller graph for this function:
@@ -772,15 +772,15 @@

-

Definition at line 138 of file DescriptorEventReceiver.cpp.

-
138 {
-
139 return suspended;
-
140 }
- +

Definition at line 135 of file DescriptorEventReceiver.cpp.

+
135 {
+
136 return suspended;
+
137 }
+
-

References core::DescriptorEventReceiver::suspended.

+

References core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::pipe::PipeSource::send().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::pipe::PipeSource::send().

Here is the caller graph for this function:
@@ -812,15 +812,15 @@

-

Definition at line 41 of file DescriptorEventReceiver.cpp.

-
41 {
- -
43 }
- +

Definition at line 38 of file DescriptorEventReceiver.cpp.

+
38 {
+ +
40 }
+
-

References core::Observer::observationCounter.

+

References core::Observer::observationCounter.

-

Referenced by core::DescriptorEventReceiver::setEnabled().

+

Referenced by core::DescriptorEventReceiver::setEnabled().

Here is the caller graph for this function:
@@ -855,18 +855,18 @@

core::EventReceiver.

-

Definition at line 156 of file DescriptorEventReceiver.cpp.

-
156 {
-
157 eventCounter++;
-
158 triggered(currentTime);
-
159
- -
161 }
-
void triggered(const utils::Timeval &currentTime)
+

Definition at line 153 of file DescriptorEventReceiver.cpp.

+
153 {
+
154 eventCounter++;
+
155 triggered(currentTime);
+
156
+ +
158 }
+
void triggered(const utils::Timeval &currentTime)
virtual void dispatchEvent()=0
- +
-

References core::DescriptorEventReceiver::dispatchEvent(), core::DescriptorEventReceiver::eventCounter, and core::DescriptorEventReceiver::triggered().

+

References core::DescriptorEventReceiver::dispatchEvent(), core::DescriptorEventReceiver::eventCounter, and core::DescriptorEventReceiver::triggered().

Here is the call graph for this function:
@@ -899,10 +899,10 @@

-

Definition at line 163 of file DescriptorEventReceiver.cpp.

-
163 {
-
164 signalEvent(signum);
-
165 }
+

Definition at line 160 of file DescriptorEventReceiver.cpp.

+
160 {
+
161 signalEvent(signum);
+
162 }
virtual void signalEvent(int signum)=0

References core::DescriptorEventReceiver::signalEvent().

@@ -949,7 +949,7 @@

62 event.relax();

63 }

-

References core::EventReceiver::event, and core::Event::relax().

+

References core::EventReceiver::event, and core::Event::relax().

Here is the call graph for this function:
@@ -981,26 +981,26 @@

-

Definition at line 124 of file DescriptorEventReceiver.cpp.

-
124 {
-
125 if (enabled) {
-
126 if (suspended) {
-
127 suspended = false;
- - -
130 } else {
-
131 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
-
132 }
-
133 } else {
-
134 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
-
135 }
-
136 }
+

Definition at line 121 of file DescriptorEventReceiver.cpp.

+
121 {
+
122 if (enabled) {
+
123 if (suspended) {
+
124 suspended = false;
+ + +
127 } else {
+
128 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
+
129 }
+
130 } else {
+
131 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
+
132 }
+
133 }
void resume(DescriptorEventReceiver *descriptorEventReceiver)
static Timeval currentTime()
Definition Timeval.cpp:54
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and core::DescriptorEventReceiver::suspended.

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSource::send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSource::send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

Here is the call graph for this function:
@@ -1037,13 +1037,13 @@

-

Definition at line 103 of file DescriptorEventReceiver.cpp.

-
103 {
-
104 unObserved();
-
105 }
- +

Definition at line 100 of file DescriptorEventReceiver.cpp.

+
100 {
+
101 unObserved();
+
102 }
+
-

References core::Observer::unObserved().

+

References core::Observer::unObserved().

Here is the call graph for this function:
@@ -1076,15 +1076,15 @@

-

Definition at line 87 of file DescriptorEventReceiver.cpp.

-
87 {
-
88 lastTriggered = currentTime;
-
89
-
90 observed();
-
91 }
- +

Definition at line 84 of file DescriptorEventReceiver.cpp.

+
84 {
+
85 lastTriggered = currentTime;
+
86
+
87 observed();
+
88 }
+
-

References core::DescriptorEventReceiver::lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

Referenced by core::DescriptorEventPublisher::enable().

@@ -1124,22 +1124,22 @@

-

Definition at line 142 of file DescriptorEventReceiver.cpp.

-
142 {
-
143 if (timeout == TIMEOUT::DEFAULT) {
- -
145 } else {
-
146 this->maxInactivity = timeout;
-
147 }
-
148
- -
150 }
- - +

Definition at line 139 of file DescriptorEventReceiver.cpp.

+
139 {
+
140 if (timeout == TIMEOUT::DEFAULT) {
+ +
142 } else {
+
143 this->maxInactivity = timeout;
+
144 }
+
145
+ +
147 }
+ +
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, core::DescriptorEventReceiver::initialTimeout, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and core::DescriptorEventReceiver::triggered().

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, core::DescriptorEventReceiver::initialTimeout, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and core::DescriptorEventReceiver::triggered().

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

Here is the call graph for this function:
-

References core::DescriptorEventReceiver::disable().

+

References core::DescriptorEventReceiver::disable().

Here is the call graph for this function:
@@ -1222,9 +1222,9 @@

58 event.span();

59 }
-

References core::EventReceiver::event, and core::Event::span().

+

References core::EventReceiver::event, and core::Event::span().

-

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

+

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

Here is the call graph for this function:
-
+

@@ -1261,24 +1261,24 @@

-

Definition at line 111 of file DescriptorEventReceiver.cpp.

-
111 {
-
112 if (enabled) {
-
113 if (!suspended) {
-
114 suspended = true;
- -
116 } else {
-
117 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
-
118 }
-
119 } else {
-
120 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
-
121 }
-
122 }
+

Definition at line 108 of file DescriptorEventReceiver.cpp.

+
108 {
+
109 if (enabled) {
+
110 if (!suspended) {
+
111 suspended = true;
+ +
113 } else {
+
114 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
+
115 }
+
116 } else {
+
117 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
+
118 }
+
119 }
void suspend(DescriptorEventReceiver *descriptorEventReceiver)
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, core::DescriptorEventPublisher::suspend(), and core::DescriptorEventReceiver::suspended.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, core::DescriptorEventPublisher::suspend(), and core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and core::pipe::PipeSource::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and core::pipe::PipeSource::writeEvent().

Here is the call graph for this function:
@@ -1356,14 +1356,14 @@

-

Definition at line 167 of file DescriptorEventReceiver.cpp.

-
167 {
-
168 lastTriggered = currentTime;
-
169 }
+

Definition at line 164 of file DescriptorEventReceiver.cpp.

+
164 {
+
165 lastTriggered = currentTime;
+
166 }
-

References core::DescriptorEventReceiver::lastTriggered, and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::lastTriggered, and utils::Timeval::operator=().

-

Referenced by core::DescriptorEventReceiver::onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::DescriptorEventReceiver::setTimeout().

Here is the call graph for this function:
@@ -1400,19 +1400,19 @@

-

Definition at line 45 of file DescriptorEventReceiver.cpp.

-
45 {
- -
47
-
48 if (observationCounter == 0) {
- -
50 }
-
51 }
+

Definition at line 42 of file DescriptorEventReceiver.cpp.

+
42 {
+ +
44
+
45 if (observationCounter == 0) {
+ +
47 }
+
48 }
virtual void unobservedEvent()=0
-

References core::Observer::observationCounter, and core::Observer::unobservedEvent().

+

References core::Observer::observationCounter, and core::Observer::unobservedEvent().

-

Referenced by core::DescriptorEventReceiver::setDisabled().

+

Referenced by core::DescriptorEventReceiver::setDisabled().

Here is the call graph for this function:
-

References core::DescriptorEventReceiver::disable().

+

References core::DescriptorEventReceiver::disable().

Referenced by timeoutEvent().

@@ -1587,9 +1587,9 @@

-

Definition at line 108 of file DescriptorEventReceiver.h.

+

Definition at line 105 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -1613,7 +1613,7 @@

-

Definition at line 59 of file EventReceiver.h.

+

Definition at line 65 of file EventReceiver.h.

Referenced by core::EventReceiver::EventReceiver(), core::EventReceiver::getName(), core::EventReceiver::relax(), and core::EventReceiver::span().

@@ -1639,9 +1639,9 @@

-

Definition at line 115 of file DescriptorEventReceiver.h.

+

Definition at line 112 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::onEvent().

+

Referenced by core::DescriptorEventReceiver::onEvent().

@@ -1665,9 +1665,9 @@

-

Definition at line 113 of file DescriptorEventReceiver.h.

+

Definition at line 110 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), and core::DescriptorEventReceiver::setTimeout().

@@ -1691,9 +1691,9 @@

-

Definition at line 111 of file DescriptorEventReceiver.h.

+

Definition at line 108 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::resume(), core::DescriptorEventReceiver::setEnabled(), and core::DescriptorEventReceiver::triggered().

+

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::resume(), core::DescriptorEventReceiver::setEnabled(), and core::DescriptorEventReceiver::triggered().

@@ -1717,9 +1717,9 @@

-

Definition at line 112 of file DescriptorEventReceiver.h.

+

Definition at line 109 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::getTimeout(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::getTimeout(), and core::DescriptorEventReceiver::setTimeout().

@@ -1743,9 +1743,9 @@

-

Definition at line 53 of file DescriptorEventReceiver.h.

+

Definition at line 54 of file DescriptorEventReceiver.h.

-

Referenced by core::Observer::observed(), and core::Observer::unObserved().

+

Referenced by core::Observer::observed(), and core::Observer::unObserved().

@@ -1769,9 +1769,9 @@

-

Definition at line 106 of file DescriptorEventReceiver.h.

+

Definition at line 103 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -1795,9 +1795,9 @@

-

Definition at line 109 of file DescriptorEventReceiver.h.

+

Definition at line 106 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -1811,7 +1811,7 @@

diff --git a/html/classcore_1_1file_1_1File-members.html b/html/classcore_1_1file_1_1File-members.html index cb99c941df..7cb000e77a 100644 --- a/html/classcore_1_1file_1_1File-members.html +++ b/html/classcore_1_1file_1_1File-members.html @@ -112,7 +112,7 @@ diff --git a/html/classcore_1_1file_1_1File.html b/html/classcore_1_1file_1_1File.html index 1bd11fcab4..c246570579 100644 --- a/html/classcore_1_1file_1_1File.html +++ b/html/classcore_1_1file_1_1File.html @@ -263,7 +263,7 @@

    - +

diff --git a/html/classcore_1_1file_1_1FileReader-members.html b/html/classcore_1_1file_1_1FileReader-members.html index 779820ec1a..31f47d3de9 100644 --- a/html/classcore_1_1file_1_1FileReader-members.html +++ b/html/classcore_1_1file_1_1FileReader-members.html @@ -106,6 +106,8 @@ error(int errnum)core::pipe::Sourceprotected eventcore::EventReceiverprivate EventReceiver(const std::string &name)core::EventReceiver + EventReceiver(EventReceiver &)=deletecore::EventReceiver + EventReceiver(EventReceiver &&)=deletecore::EventReceiver fdcore::Descriptorprivate File()core::file::File FileReader(int fd, const std::string &name, std::size_t pufferSize, int openErrno)core::file::FileReaderprivate @@ -115,8 +117,10 @@ onEvent(const utils::Timeval &currentTime) overridecore::file::FileReaderprivatevirtual open(const std::string &path)core::file::FileReaderstatic openErrnocore::file::FileReaderprotected - core::operator=(Source &)=deletecore::pipe::Source - core::operator=(Source &&) noexcept=defaultcore::pipe::Source + core::operator=(EventReceiver &)=deletecore::EventReceiver + core::operator=(EventReceiver &&)=deletecore::EventReceiver + core::pipe::Source::operator=(Source &)=deletecore::pipe::Source + core::pipe::Source::operator=(Source &&) noexcept=defaultcore::pipe::Source core::file::File::operator=(int fd)core::Descriptor core::file::File::operator=(const Descriptor &descriptor)=deletecore::Descriptor core::file::File::operator=(Descriptor &&descriptor) noexceptcore::Descriptor @@ -145,7 +149,7 @@ diff --git a/html/classcore_1_1file_1_1FileReader.html b/html/classcore_1_1file_1_1FileReader.html index 7f7e9ddb5a..60ccd13146 100644 --- a/html/classcore_1_1file_1_1FileReader.html +++ b/html/classcore_1_1file_1_1FileReader.html @@ -316,7 +316,7 @@

References core::EventReceiver::EventReceiver(), and core::EventReceiver::span().

-

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::responseDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

Here is the call graph for this function:
-
+

@@ -584,9 +584,9 @@

66 return event.getName();

67 }
-

References core::EventReceiver::event, and core::Event::getName().

+

References core::EventReceiver::event, and core::Event::getName().

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

Here is the call graph for this function:
-

References core::EventReceiver::event, and core::Event::span().

+

References core::EventReceiver::event, and core::Event::span().

-

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), start(), stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

+

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), start(), stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

Here is the call graph for this function:
-
+

@@ -1203,7 +1203,7 @@

-

Definition at line 59 of file EventReceiver.h.

+

Definition at line 65 of file EventReceiver.h.

Referenced by core::EventReceiver::EventReceiver(), core::EventReceiver::getName(), core::EventReceiver::relax(), and core::EventReceiver::span().

@@ -1375,7 +1375,7 @@

    - +

diff --git a/html/classcore_1_1pipe_1_1Pipe-members.html b/html/classcore_1_1pipe_1_1Pipe-members.html index d66c10e212..35881e8378 100644 --- a/html/classcore_1_1pipe_1_1Pipe-members.html +++ b/html/classcore_1_1pipe_1_1Pipe-members.html @@ -104,7 +104,7 @@ diff --git a/html/classcore_1_1pipe_1_1Pipe.html b/html/classcore_1_1pipe_1_1Pipe.html index b5091990bd..1202a6b2ea 100644 --- a/html/classcore_1_1pipe_1_1Pipe.html +++ b/html/classcore_1_1pipe_1_1Pipe.html @@ -261,7 +261,7 @@

    - +

diff --git a/html/classcore_1_1pipe_1_1PipeSink-members.html b/html/classcore_1_1pipe_1_1PipeSink-members.html index e9ea8e6a52..f7636ac90c 100644 --- a/html/classcore_1_1pipe_1_1PipeSink-members.html +++ b/html/classcore_1_1pipe_1_1PipeSink-members.html @@ -98,66 +98,69 @@ atNextTick(const std::function< void(void)> &callBack)core::EventReceiverstatic checkTimeout(const utils::Timeval &currentTime)core::DescriptorEventReceiver descriptorEventPublishercore::DescriptorEventReceiverprivate - DescriptorEventReceiver(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiver - DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiver - destruct()core::EventReceivervirtual - disable()core::DescriptorEventReceiverprotected - dispatchEvent() finalcore::eventreceiver::ReadEventReceiverprivatevirtual - enable(int fd)core::DescriptorEventReceiverprotected - enabledcore::DescriptorEventReceiverprivate - eventcore::EventReceiverprivate - eventCountercore::DescriptorEventReceiverprivate - EventReceiver(const std::string &name)core::EventReceiver - getName() constcore::EventReceiver - getRegisteredFd() constcore::DescriptorEventReceiver - getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiver - initialTimeoutcore::DescriptorEventReceiverprivate - isEnabled() constcore::DescriptorEventReceiver - isSuspended() constcore::DescriptorEventReceiver - lastTriggeredcore::DescriptorEventReceiverprivate - maxInactivitycore::DescriptorEventReceiverprivate - observationCountercore::Observerprivate - observed()core::Observerprotected - observedFdcore::DescriptorEventReceiverprivate - Observer()=defaultcore::Observerprotected - Observer(const Observer &observer)core::Observerprotected + DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiver + destruct()core::EventReceivervirtual + disable()core::DescriptorEventReceiverprotected + dispatchEvent() finalcore::eventreceiver::ReadEventReceiverprivatevirtual + enable(int fd)core::DescriptorEventReceiverprotected + enabledcore::DescriptorEventReceiverprivate + eventcore::EventReceiverprivate + eventCountercore::DescriptorEventReceiverprivate + EventReceiver(const std::string &name)core::EventReceiver + EventReceiver(EventReceiver &)=deletecore::EventReceiver + EventReceiver(EventReceiver &&)=deletecore::EventReceiver + getName() constcore::EventReceiver + getRegisteredFd() constcore::DescriptorEventReceiver + getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiver + initialTimeoutcore::DescriptorEventReceiverprivate + isEnabled() constcore::DescriptorEventReceiver + isSuspended() constcore::DescriptorEventReceiver + lastTriggeredcore::DescriptorEventReceiverprivate + maxInactivitycore::DescriptorEventReceiverprivate + observationCountercore::Observerprivate + observed()core::Observerprotected + observedFdcore::DescriptorEventReceiverprivate + Observer()=defaultcore::Observerprotected + Observer(Observer &)=deletecore::Observerprotected + Observer(Observer &&)=deletecore::Observerprotected onDatacore::pipe::PipeSinkprivate onEofcore::pipe::PipeSinkprivate onErrorcore::pipe::PipeSinkprivate onEvent(const utils::Timeval &currentTime) finalcore::DescriptorEventReceiverprivatevirtual onSignal(int signum)core::DescriptorEventReceiverprivate operator=(const PipeSink &)=deletecore::pipe::PipeSink - core::eventreceiver::ReadEventReceiver::operator=(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiver - PipeSink(const PipeSink &)=deletecore::pipe::PipeSink - PipeSink(int fd)core::pipe::PipeSinkexplicit - readEvent() overridecore::pipe::PipeSinkprivatevirtual - ReadEventReceiver(const std::string &name, const utils::Timeval &timeout)core::eventreceiver::ReadEventReceiverprotected - readTimeout()core::eventreceiver::ReadEventReceiverprivatevirtual - relax()core::EventReceiver - resume()core::DescriptorEventReceiverprotected - setDisabled()core::DescriptorEventReceiverprivate - setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - setOnData(const std::function< void(const char *, std::size_t)> &onData)core::pipe::PipeSink - setOnEof(const std::function< void()> &onEof)core::pipe::PipeSink - setOnError(const std::function< void(int)> &onError)core::pipe::PipeSink - setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiver - signalEvent(int signum) overridecore::eventreceiver::ReadEventReceiverprivatevirtual - span()core::EventReceiver - suspend()core::DescriptorEventReceiverprotected - suspendedcore::DescriptorEventReceiverprivate - timeoutEvent() finalcore::eventreceiver::ReadEventReceiverprivatevirtual - triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - unObserved()core::Observerprotected - unobservedEvent() overridecore::pipe::PipeSinkprivatevirtual - ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual - ~Observer()core::Observerprotectedvirtual - ~PipeSink() overridecore::pipe::PipeSink + core::eventreceiver::ReadEventReceiver::operator=(EventReceiver &)=deletecore::EventReceiver + core::eventreceiver::ReadEventReceiver::operator=(EventReceiver &&)=deletecore::EventReceiver + PipeSink(const PipeSink &)=deletecore::pipe::PipeSink + PipeSink(int fd)core::pipe::PipeSinkexplicit + readEvent() overridecore::pipe::PipeSinkprivatevirtual + ReadEventReceiver(const std::string &name, const utils::Timeval &timeout)core::eventreceiver::ReadEventReceiverprotected + readTimeout()core::eventreceiver::ReadEventReceiverprivatevirtual + relax()core::EventReceiver + resume()core::DescriptorEventReceiverprotected + setDisabled()core::DescriptorEventReceiverprivate + setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + setOnData(const std::function< void(const char *, std::size_t)> &onData)core::pipe::PipeSink + setOnEof(const std::function< void()> &onEof)core::pipe::PipeSink + setOnError(const std::function< void(int)> &onError)core::pipe::PipeSink + setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiver + signalEvent(int signum) overridecore::eventreceiver::ReadEventReceiverprivatevirtual + span()core::EventReceiver + suspend()core::DescriptorEventReceiverprotected + suspendedcore::DescriptorEventReceiverprivate + timeoutEvent() finalcore::eventreceiver::ReadEventReceiverprivatevirtual + triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + unObserved()core::Observerprotected + unobservedEvent() overridecore::pipe::PipeSinkprivatevirtual + ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual + ~Observer()core::Observerprotectedvirtual + ~PipeSink() overridecore::pipe::PipeSink

diff --git a/html/classcore_1_1pipe_1_1PipeSink.html b/html/classcore_1_1pipe_1_1PipeSink.html index 2cb1904385..f58816db97 100644 --- a/html/classcore_1_1pipe_1_1PipeSink.html +++ b/html/classcore_1_1pipe_1_1PipeSink.html @@ -285,7 +285,7 @@

42 }

-

References core::DescriptorEventReceiver::enable(), and core::eventreceiver::ReadEventReceiver::ReadEventReceiver().

+

References core::DescriptorEventReceiver::enable(), and core::eventreceiver::ReadEventReceiver::ReadEventReceiver().

Referenced by core::pipe::Pipe::Pipe().

-

References core::DescriptorEventReceiver::getRegisteredFd().

+

References core::DescriptorEventReceiver::getRegisteredFd().

Here is the call graph for this function:
@@ -393,7 +393,7 @@

References core::EventReceiver::EventReceiver(), and core::EventReceiver::span().

-

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::responseDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

Here is the call graph for this function:
-
+

@@ -431,17 +431,17 @@

-

Definition at line 171 of file DescriptorEventReceiver.cpp.

-
171 {
-
172 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
-
173 timeoutEvent();
-
174 }
-
175 }
- +

Definition at line 168 of file DescriptorEventReceiver.cpp.

+
168 {
+
169 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
+
170 timeoutEvent();
+
171 }
+
172 }
+
virtual void timeoutEvent()=0
- +
-

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and core::DescriptorEventReceiver::timeoutEvent().

+

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and core::DescriptorEventReceiver::timeoutEvent().

Referenced by core::DescriptorEventPublisher::checkTimedOutEvents().

@@ -519,26 +519,26 @@

-

Definition at line 93 of file DescriptorEventReceiver.cpp.

-
93 {
-
94 if (enabled) {
-
95 enabled = false;
- -
97 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
-
98 } else {
-
99 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
-
100 }
-
101 }
+

Definition at line 90 of file DescriptorEventReceiver.cpp.

+
90 {
+
91 if (enabled) {
+
92 enabled = false;
+ +
94 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
+
95 } else {
+
96 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
+
97 }
+
98 }
void disable(DescriptorEventReceiver *descriptorEventReceiver)
- - -
DescriptorEventPublisher & descriptorEventPublisher
+ + +
DescriptorEventPublisher & descriptorEventPublisher
const std::string & getName() const
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::disable(), core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), and core::DescriptorEventReceiver::observedFd.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::disable(), core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), and core::DescriptorEventReceiver::observedFd.

-

Referenced by core::eventreceiver::AcceptEventReceiver::acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::eventreceiver::ConnectEventReceiver::connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::eof(), core::eventreceiver::ExceptionalConditionEventReceiver::outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), readEvent(), core::eventreceiver::ReadEventReceiver::readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), core::eventreceiver::AcceptEventReceiver::signalEvent(), core::eventreceiver::ConnectEventReceiver::signalEvent(), core::eventreceiver::ExceptionalConditionEventReceiver::signalEvent(), core::eventreceiver::ReadEventReceiver::signalEvent(), core::eventreceiver::WriteEventReceiver::signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), core::pipe::PipeSource::writeEvent(), core::eventreceiver::WriteEventReceiver::writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

+

Referenced by core::eventreceiver::AcceptEventReceiver::acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::eventreceiver::ConnectEventReceiver::connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::eof(), core::eventreceiver::ExceptionalConditionEventReceiver::outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), readEvent(), core::eventreceiver::ReadEventReceiver::readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), core::eventreceiver::AcceptEventReceiver::signalEvent(), core::eventreceiver::ConnectEventReceiver::signalEvent(), core::eventreceiver::ExceptionalConditionEventReceiver::signalEvent(), core::eventreceiver::ReadEventReceiver::signalEvent(), core::eventreceiver::WriteEventReceiver::signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), core::pipe::PipeSource::writeEvent(), core::eventreceiver::WriteEventReceiver::writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

Here is the call graph for this function:
@@ -616,30 +616,30 @@

-

Definition at line 70 of file DescriptorEventReceiver.cpp.

-
70 {
- -
72 if (!enabled) {
-
73 observedFd = fd;
-
74
-
75 enabled = true;
- -
77 } else {
-
78 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
-
79 }
-
80 } else {
-
81 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
-
82 }
-
83
-
84 return enabled;
-
85 }
+

Definition at line 67 of file DescriptorEventReceiver.cpp.

+
67 {
+ +
69 if (!enabled) {
+
70 observedFd = fd;
+
71
+
72 enabled = true;
+ +
74 } else {
+
75 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
+
76 }
+
77 } else {
+
78 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
+
79 }
+
80
+
81 return enabled;
+
82 }
void enable(DescriptorEventReceiver *descriptorEventReceiver)
State eventLoopState()
Definition State.cpp:30
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::enable(), core::DescriptorEventReceiver::enabled, core::eventLoopState(), core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, and core::STOPPING.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::enable(), core::DescriptorEventReceiver::enabled, core::eventLoopState(), core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, and core::STOPPING.

-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), PipeSink(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), PipeSink(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

Here is the call graph for this function:
@@ -681,9 +681,9 @@

66 return event.getName();

67 }
-

References core::EventReceiver::event, and core::Event::getName().

+

References core::EventReceiver::event, and core::Event::getName().

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

Here is the call graph for this function:
@@ -720,12 +720,12 @@

-

Definition at line 66 of file DescriptorEventReceiver.cpp.

-
66 {
-
67 return observedFd;
-
68 }
+

Definition at line 63 of file DescriptorEventReceiver.cpp.

+
63 {
+
64 return observedFd;
+
65 }
-

References core::DescriptorEventReceiver::observedFd.

+

References core::DescriptorEventReceiver::observedFd.

Referenced by core::DescriptorEventPublisher::enable(), core::epoll::DescriptorEventPublisher::EPollEvents::muxAdd(), core::select::DescriptorEventPublisher::muxAdd(), core::poll::PollFdsManager::muxAdd(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOff(), core::select::DescriptorEventPublisher::muxOff(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOn(), core::select::DescriptorEventPublisher::muxOn(), core::socket::stream::legacy::SocketReader::read(), readEvent(), core::socket::stream::legacy::SocketWriter::write(), core::pipe::PipeSource::writeEvent(), ~PipeSink(), and core::pipe::PipeSource::~PipeSource().

@@ -760,12 +760,12 @@

-

Definition at line 152 of file DescriptorEventReceiver.cpp.

-
152 {
-
153 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
-
154 }
+

Definition at line 149 of file DescriptorEventReceiver.cpp.

+
149 {
+
150 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
+
151 }
-

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

+

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

Referenced by core::DescriptorEventPublisher::getNextTimeout().

@@ -804,14 +804,14 @@

-

Definition at line 107 of file DescriptorEventReceiver.cpp.

-
107 {
-
108 return enabled;
-
109 }
+

Definition at line 104 of file DescriptorEventReceiver.cpp.

+
104 {
+
105 return enabled;
+
106 }
-

References core::DescriptorEventReceiver::enabled.

+

References core::DescriptorEventReceiver::enabled.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

Here is the caller graph for this function:
@@ -843,15 +843,15 @@

-

Definition at line 138 of file DescriptorEventReceiver.cpp.

-
138 {
-
139 return suspended;
-
140 }
- +

Definition at line 135 of file DescriptorEventReceiver.cpp.

+
135 {
+
136 return suspended;
+
137 }
+
-

References core::DescriptorEventReceiver::suspended.

+

References core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::pipe::PipeSource::send().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::pipe::PipeSource::send().

Here is the caller graph for this function:
@@ -883,15 +883,15 @@

-

Definition at line 41 of file DescriptorEventReceiver.cpp.

-
41 {
- -
43 }
- +

Definition at line 38 of file DescriptorEventReceiver.cpp.

+
38 {
+ +
40 }
+
-

References core::Observer::observationCounter.

+

References core::Observer::observationCounter.

-

Referenced by core::DescriptorEventReceiver::setEnabled().

+

Referenced by core::DescriptorEventReceiver::setEnabled().

Here is the caller graph for this function:
@@ -926,18 +926,18 @@

core::EventReceiver.

-

Definition at line 156 of file DescriptorEventReceiver.cpp.

-
156 {
-
157 eventCounter++;
-
158 triggered(currentTime);
-
159
- -
161 }
-
void triggered(const utils::Timeval &currentTime)
+

Definition at line 153 of file DescriptorEventReceiver.cpp.

+
153 {
+
154 eventCounter++;
+
155 triggered(currentTime);
+
156
+ +
158 }
+
void triggered(const utils::Timeval &currentTime)
virtual void dispatchEvent()=0
- +
-

References core::DescriptorEventReceiver::dispatchEvent(), core::DescriptorEventReceiver::eventCounter, and core::DescriptorEventReceiver::triggered().

+

References core::DescriptorEventReceiver::dispatchEvent(), core::DescriptorEventReceiver::eventCounter, and core::DescriptorEventReceiver::triggered().

Here is the call graph for this function:
@@ -970,10 +970,10 @@

-

Definition at line 163 of file DescriptorEventReceiver.cpp.

-
163 {
-
164 signalEvent(signum);
-
165 }
+

Definition at line 160 of file DescriptorEventReceiver.cpp.

+
160 {
+
161 signalEvent(signum);
+
162 }
virtual void signalEvent(int signum)=0

References core::DescriptorEventReceiver::signalEvent().

@@ -1074,7 +1074,7 @@

std::function< void(int errnum)> onError
Definition PipeSink.h:53

ssize_t read(int fd, void *buf, std::size_t count)
Definition unistd.cpp:35

-

References core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::getRegisteredFd(), onData, onEof, onError, and core::system::read().

+

References core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::getRegisteredFd(), onData, onEof, onError, and core::system::read().

Here is the call graph for this function:
-

References core::DescriptorEventReceiver::disable().

+

References core::DescriptorEventReceiver::disable().

Referenced by core::eventreceiver::ReadEventReceiver::timeoutEvent().

@@ -1158,7 +1158,7 @@

62 event.relax();

63 }
-

References core::EventReceiver::event, and core::Event::relax().

+

References core::EventReceiver::event, and core::Event::relax().

Here is the call graph for this function:
@@ -1190,26 +1190,26 @@

-

Definition at line 124 of file DescriptorEventReceiver.cpp.

-
124 {
-
125 if (enabled) {
-
126 if (suspended) {
-
127 suspended = false;
- - -
130 } else {
-
131 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
-
132 }
-
133 } else {
-
134 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
-
135 }
-
136 }
+

Definition at line 121 of file DescriptorEventReceiver.cpp.

+
121 {
+
122 if (enabled) {
+
123 if (suspended) {
+
124 suspended = false;
+ + +
127 } else {
+
128 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
+
129 }
+
130 } else {
+
131 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
+
132 }
+
133 }
void resume(DescriptorEventReceiver *descriptorEventReceiver)
static Timeval currentTime()
Definition Timeval.cpp:54
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and core::DescriptorEventReceiver::suspended.

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSource::send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSource::send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

Here is the call graph for this function:
@@ -1246,13 +1246,13 @@

-

Definition at line 103 of file DescriptorEventReceiver.cpp.

-
103 {
-
104 unObserved();
-
105 }
- +

Definition at line 100 of file DescriptorEventReceiver.cpp.

+
100 {
+
101 unObserved();
+
102 }
+
-

References core::Observer::unObserved().

+

References core::Observer::unObserved().

Here is the call graph for this function:
@@ -1285,15 +1285,15 @@

-

Definition at line 87 of file DescriptorEventReceiver.cpp.

-
87 {
-
88 lastTriggered = currentTime;
-
89
-
90 observed();
-
91 }
- +

Definition at line 84 of file DescriptorEventReceiver.cpp.

+
84 {
+
85 lastTriggered = currentTime;
+
86
+
87 observed();
+
88 }
+
-

References core::DescriptorEventReceiver::lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

Referenced by core::DescriptorEventPublisher::enable().

@@ -1408,22 +1408,22 @@

-

Definition at line 142 of file DescriptorEventReceiver.cpp.

-
142 {
-
143 if (timeout == TIMEOUT::DEFAULT) {
- -
145 } else {
-
146 this->maxInactivity = timeout;
-
147 }
-
148
- -
150 }
- - +

Definition at line 139 of file DescriptorEventReceiver.cpp.

+
139 {
+
140 if (timeout == TIMEOUT::DEFAULT) {
+ +
142 } else {
+
143 this->maxInactivity = timeout;
+
144 }
+
145
+ +
147 }
+ +
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, core::DescriptorEventReceiver::initialTimeout, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and core::DescriptorEventReceiver::triggered().

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, core::DescriptorEventReceiver::initialTimeout, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and core::DescriptorEventReceiver::triggered().

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

Here is the call graph for this function:
@@ -1470,7 +1470,7 @@

51 disable();

52 }
-

References core::DescriptorEventReceiver::disable().

+

References core::DescriptorEventReceiver::disable().

Here is the call graph for this function:
@@ -1507,9 +1507,9 @@

58 event.span();

59 }

-

References core::EventReceiver::event, and core::Event::span().

+

References core::EventReceiver::event, and core::Event::span().

-

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

+

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

Here is the call graph for this function:
-
+
@@ -1546,24 +1546,24 @@

-

Definition at line 111 of file DescriptorEventReceiver.cpp.

-
111 {
-
112 if (enabled) {
-
113 if (!suspended) {
-
114 suspended = true;
- -
116 } else {
-
117 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
-
118 }
-
119 } else {
-
120 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
-
121 }
-
122 }
+

Definition at line 108 of file DescriptorEventReceiver.cpp.

+
108 {
+
109 if (enabled) {
+
110 if (!suspended) {
+
111 suspended = true;
+ +
113 } else {
+
114 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
+
115 }
+
116 } else {
+
117 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
+
118 }
+
119 }
void suspend(DescriptorEventReceiver *descriptorEventReceiver)
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, core::DescriptorEventPublisher::suspend(), and core::DescriptorEventReceiver::suspended.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, core::DescriptorEventPublisher::suspend(), and core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and core::pipe::PipeSource::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and core::pipe::PipeSource::writeEvent().

Here is the call graph for this function:
@@ -1641,14 +1641,14 @@

-

Definition at line 167 of file DescriptorEventReceiver.cpp.

-
167 {
-
168 lastTriggered = currentTime;
-
169 }
+

Definition at line 164 of file DescriptorEventReceiver.cpp.

+
164 {
+
165 lastTriggered = currentTime;
+
166 }
-

References core::DescriptorEventReceiver::lastTriggered, and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::lastTriggered, and utils::Timeval::operator=().

-

Referenced by core::DescriptorEventReceiver::onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::DescriptorEventReceiver::setTimeout().

Here is the call graph for this function:
@@ -1685,19 +1685,19 @@

-

Definition at line 45 of file DescriptorEventReceiver.cpp.

- @@ -1790,9 +1790,9 @@

-

Definition at line 108 of file DescriptorEventReceiver.h.

+

Definition at line 105 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -1816,7 +1816,7 @@

-

Definition at line 59 of file EventReceiver.h.

+

Definition at line 65 of file EventReceiver.h.

Referenced by core::EventReceiver::EventReceiver(), core::EventReceiver::getName(), core::EventReceiver::relax(), and core::EventReceiver::span().

@@ -1842,9 +1842,9 @@

-

Definition at line 115 of file DescriptorEventReceiver.h.

+

Definition at line 112 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::onEvent().

+

Referenced by core::DescriptorEventReceiver::onEvent().

@@ -1868,9 +1868,9 @@

-

Definition at line 113 of file DescriptorEventReceiver.h.

+

Definition at line 110 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), and core::DescriptorEventReceiver::setTimeout().

@@ -1894,9 +1894,9 @@

-

Definition at line 111 of file DescriptorEventReceiver.h.

+

Definition at line 108 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::resume(), core::DescriptorEventReceiver::setEnabled(), and core::DescriptorEventReceiver::triggered().

+

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::resume(), core::DescriptorEventReceiver::setEnabled(), and core::DescriptorEventReceiver::triggered().

@@ -1920,9 +1920,9 @@

-

Definition at line 112 of file DescriptorEventReceiver.h.

+

Definition at line 109 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::getTimeout(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::getTimeout(), and core::DescriptorEventReceiver::setTimeout().

@@ -1946,9 +1946,9 @@

-

Definition at line 53 of file DescriptorEventReceiver.h.

+

Definition at line 54 of file DescriptorEventReceiver.h.

-

Referenced by core::Observer::observed(), and core::Observer::unObserved().

+

Referenced by core::Observer::observed(), and core::Observer::unObserved().

@@ -1972,9 +1972,9 @@

-

Definition at line 106 of file DescriptorEventReceiver.h.

+

Definition at line 103 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -2076,9 +2076,9 @@

-

Definition at line 109 of file DescriptorEventReceiver.h.

+

Definition at line 106 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -2092,7 +2092,7 @@

    - +

diff --git a/html/classcore_1_1pipe_1_1PipeSource-members.html b/html/classcore_1_1pipe_1_1PipeSource-members.html index 1b9be1a896..610b3b3ee3 100644 --- a/html/classcore_1_1pipe_1_1PipeSource-members.html +++ b/html/classcore_1_1pipe_1_1PipeSource-members.html @@ -98,66 +98,69 @@ atNextTick(const std::function< void(void)> &callBack)core::EventReceiverstatic checkTimeout(const utils::Timeval &currentTime)core::DescriptorEventReceiver descriptorEventPublishercore::DescriptorEventReceiverprivate - DescriptorEventReceiver(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiver - DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiver - destruct()core::EventReceivervirtual - disable()core::DescriptorEventReceiverprotected - dispatchEvent() finalcore::eventreceiver::WriteEventReceiverprivatevirtual - enable(int fd)core::DescriptorEventReceiverprotected - enabledcore::DescriptorEventReceiverprivate - eof()core::pipe::PipeSource - eventcore::EventReceiverprivate - eventCountercore::DescriptorEventReceiverprivate - EventReceiver(const std::string &name)core::EventReceiver - getName() constcore::EventReceiver - getRegisteredFd() constcore::DescriptorEventReceiver - getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiver - initialTimeoutcore::DescriptorEventReceiverprivate - isEnabled() constcore::DescriptorEventReceiver - isSuspended() constcore::DescriptorEventReceiver - lastTriggeredcore::DescriptorEventReceiverprivate - maxInactivitycore::DescriptorEventReceiverprivate - observationCountercore::Observerprivate - observed()core::Observerprotected - observedFdcore::DescriptorEventReceiverprivate - Observer()=defaultcore::Observerprotected - Observer(const Observer &observer)core::Observerprotected + DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiver + destruct()core::EventReceivervirtual + disable()core::DescriptorEventReceiverprotected + dispatchEvent() finalcore::eventreceiver::WriteEventReceiverprivatevirtual + enable(int fd)core::DescriptorEventReceiverprotected + enabledcore::DescriptorEventReceiverprivate + eof()core::pipe::PipeSource + eventcore::EventReceiverprivate + eventCountercore::DescriptorEventReceiverprivate + EventReceiver(const std::string &name)core::EventReceiver + EventReceiver(EventReceiver &)=deletecore::EventReceiver + EventReceiver(EventReceiver &&)=deletecore::EventReceiver + getName() constcore::EventReceiver + getRegisteredFd() constcore::DescriptorEventReceiver + getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiver + initialTimeoutcore::DescriptorEventReceiverprivate + isEnabled() constcore::DescriptorEventReceiver + isSuspended() constcore::DescriptorEventReceiver + lastTriggeredcore::DescriptorEventReceiverprivate + maxInactivitycore::DescriptorEventReceiverprivate + observationCountercore::Observerprivate + observed()core::Observerprotected + observedFdcore::DescriptorEventReceiverprivate + Observer()=defaultcore::Observerprotected + Observer(Observer &)=deletecore::Observerprotected + Observer(Observer &&)=deletecore::Observerprotected onErrorcore::pipe::PipeSourceprivate onEvent(const utils::Timeval &currentTime) finalcore::DescriptorEventReceiverprivatevirtual onSignal(int signum)core::DescriptorEventReceiverprivate operator=(const PipeSource &)=deletecore::pipe::PipeSource - core::eventreceiver::WriteEventReceiver::operator=(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiver - PipeSource(const PipeSource &)=deletecore::pipe::PipeSource - PipeSource(int fd)core::pipe::PipeSourceexplicit - relax()core::EventReceiver - resume()core::DescriptorEventReceiverprotected - send(const char *chunk, std::size_t chunkLen)core::pipe::PipeSource - send(const std::string &data)core::pipe::PipeSource - setDisabled()core::DescriptorEventReceiverprivate - setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - setOnError(const std::function< void(int)> &onError)core::pipe::PipeSource - setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiver - signalEvent(int signum) overridecore::eventreceiver::WriteEventReceiverprivatevirtual - span()core::EventReceiver - suspend()core::DescriptorEventReceiverprotected - suspendedcore::DescriptorEventReceiverprivate - timeoutEvent() finalcore::eventreceiver::WriteEventReceiverprivatevirtual - triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - unObserved()core::Observerprotected - unobservedEvent() overridecore::pipe::PipeSourceprotectedvirtual - writeBuffercore::pipe::PipeSourceprivate - writeEvent() overridecore::pipe::PipeSourceprotectedvirtual - WriteEventReceiver(const std::string &name, const utils::Timeval &timeout)core::eventreceiver::WriteEventReceiverprotected - writeTimeout()core::eventreceiver::WriteEventReceiverprivatevirtual - ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual - ~Observer()core::Observerprotectedvirtual - ~PipeSource() overridecore::pipe::PipeSource + core::eventreceiver::WriteEventReceiver::operator=(EventReceiver &)=deletecore::EventReceiver + core::eventreceiver::WriteEventReceiver::operator=(EventReceiver &&)=deletecore::EventReceiver + PipeSource(const PipeSource &)=deletecore::pipe::PipeSource + PipeSource(int fd)core::pipe::PipeSourceexplicit + relax()core::EventReceiver + resume()core::DescriptorEventReceiverprotected + send(const char *chunk, std::size_t chunkLen)core::pipe::PipeSource + send(const std::string &data)core::pipe::PipeSource + setDisabled()core::DescriptorEventReceiverprivate + setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + setOnError(const std::function< void(int)> &onError)core::pipe::PipeSource + setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiver + signalEvent(int signum) overridecore::eventreceiver::WriteEventReceiverprivatevirtual + span()core::EventReceiver + suspend()core::DescriptorEventReceiverprotected + suspendedcore::DescriptorEventReceiverprivate + timeoutEvent() finalcore::eventreceiver::WriteEventReceiverprivatevirtual + triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + unObserved()core::Observerprotected + unobservedEvent() overridecore::pipe::PipeSourceprotectedvirtual + writeBuffercore::pipe::PipeSourceprivate + writeEvent() overridecore::pipe::PipeSourceprotectedvirtual + WriteEventReceiver(const std::string &name, const utils::Timeval &timeout)core::eventreceiver::WriteEventReceiverprotected + writeTimeout()core::eventreceiver::WriteEventReceiverprivatevirtual + ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual + ~Observer()core::Observerprotectedvirtual + ~PipeSource() overridecore::pipe::PipeSource

diff --git a/html/classcore_1_1pipe_1_1PipeSource.html b/html/classcore_1_1pipe_1_1PipeSource.html index 522cc76e4e..72321f6e7b 100644 --- a/html/classcore_1_1pipe_1_1PipeSource.html +++ b/html/classcore_1_1pipe_1_1PipeSource.html @@ -287,7 +287,7 @@

44 }

-

References core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::suspend(), and core::eventreceiver::WriteEventReceiver::WriteEventReceiver().

+

References core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::suspend(), and core::eventreceiver::WriteEventReceiver::WriteEventReceiver().

Referenced by core::pipe::Pipe::Pipe().

-

References core::DescriptorEventReceiver::getRegisteredFd().

+

References core::DescriptorEventReceiver::getRegisteredFd().

Here is the call graph for this function:
@@ -395,7 +395,7 @@

References core::EventReceiver::EventReceiver(), and core::EventReceiver::span().

-

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::responseDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

Here is the call graph for this function:
-
+

@@ -433,17 +433,17 @@

-

Definition at line 171 of file DescriptorEventReceiver.cpp.

-
171 {
-
172 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
-
173 timeoutEvent();
-
174 }
-
175 }
- +

Definition at line 168 of file DescriptorEventReceiver.cpp.

+
168 {
+
169 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
+
170 timeoutEvent();
+
171 }
+
172 }
+
virtual void timeoutEvent()=0
- +
-

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and core::DescriptorEventReceiver::timeoutEvent().

+

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and core::DescriptorEventReceiver::timeoutEvent().

Referenced by core::DescriptorEventPublisher::checkTimedOutEvents().

@@ -521,26 +521,26 @@

-

Definition at line 93 of file DescriptorEventReceiver.cpp.

-
93 {
-
94 if (enabled) {
-
95 enabled = false;
- -
97 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
-
98 } else {
-
99 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
-
100 }
-
101 }
+

Definition at line 90 of file DescriptorEventReceiver.cpp.

+
90 {
+
91 if (enabled) {
+
92 enabled = false;
+ +
94 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
+
95 } else {
+
96 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
+
97 }
+
98 }
void disable(DescriptorEventReceiver *descriptorEventReceiver)
- - -
DescriptorEventPublisher & descriptorEventPublisher
+ + +
DescriptorEventPublisher & descriptorEventPublisher
const std::string & getName() const
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::disable(), core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), and core::DescriptorEventReceiver::observedFd.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::disable(), core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), and core::DescriptorEventReceiver::observedFd.

-

Referenced by core::eventreceiver::AcceptEventReceiver::acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::eventreceiver::ConnectEventReceiver::connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), eof(), core::eventreceiver::ExceptionalConditionEventReceiver::outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSink::readEvent(), core::eventreceiver::ReadEventReceiver::readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), core::eventreceiver::AcceptEventReceiver::signalEvent(), core::eventreceiver::ConnectEventReceiver::signalEvent(), core::eventreceiver::ExceptionalConditionEventReceiver::signalEvent(), core::eventreceiver::ReadEventReceiver::signalEvent(), core::eventreceiver::WriteEventReceiver::signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), writeEvent(), core::eventreceiver::WriteEventReceiver::writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

+

Referenced by core::eventreceiver::AcceptEventReceiver::acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::eventreceiver::ConnectEventReceiver::connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), eof(), core::eventreceiver::ExceptionalConditionEventReceiver::outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSink::readEvent(), core::eventreceiver::ReadEventReceiver::readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), core::eventreceiver::AcceptEventReceiver::signalEvent(), core::eventreceiver::ConnectEventReceiver::signalEvent(), core::eventreceiver::ExceptionalConditionEventReceiver::signalEvent(), core::eventreceiver::ReadEventReceiver::signalEvent(), core::eventreceiver::WriteEventReceiver::signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), writeEvent(), core::eventreceiver::WriteEventReceiver::writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

Here is the call graph for this function:
@@ -618,30 +618,30 @@

-

Definition at line 70 of file DescriptorEventReceiver.cpp.

-
70 {
- -
72 if (!enabled) {
-
73 observedFd = fd;
-
74
-
75 enabled = true;
- -
77 } else {
-
78 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
-
79 }
-
80 } else {
-
81 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
-
82 }
-
83
-
84 return enabled;
-
85 }
+

Definition at line 67 of file DescriptorEventReceiver.cpp.

+
67 {
+ +
69 if (!enabled) {
+
70 observedFd = fd;
+
71
+
72 enabled = true;
+ +
74 } else {
+
75 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
+
76 }
+
77 } else {
+
78 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
+
79 }
+
80
+
81 return enabled;
+
82 }
void enable(DescriptorEventReceiver *descriptorEventReceiver)
State eventLoopState()
Definition State.cpp:30
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::enable(), core::DescriptorEventReceiver::enabled, core::eventLoopState(), core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, and core::STOPPING.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::enable(), core::DescriptorEventReceiver::enabled, core::eventLoopState(), core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, and core::STOPPING.

-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::pipe::PipeSink::PipeSink(), PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::pipe::PipeSink::PipeSink(), PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

Here is the call graph for this function:
68 }
-

References core::DescriptorEventReceiver::disable().

+

References core::DescriptorEventReceiver::disable().

Here is the call graph for this function:
@@ -712,9 +712,9 @@

66 return event.getName();

67 }

-

References core::EventReceiver::event, and core::Event::getName().

+

References core::EventReceiver::event, and core::Event::getName().

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

Here is the call graph for this function:
@@ -751,12 +751,12 @@

-

Definition at line 66 of file DescriptorEventReceiver.cpp.

-
66 {
-
67 return observedFd;
-
68 }
+

Definition at line 63 of file DescriptorEventReceiver.cpp.

+
63 {
+
64 return observedFd;
+
65 }
-

References core::DescriptorEventReceiver::observedFd.

+

References core::DescriptorEventReceiver::observedFd.

Referenced by core::DescriptorEventPublisher::enable(), core::epoll::DescriptorEventPublisher::EPollEvents::muxAdd(), core::select::DescriptorEventPublisher::muxAdd(), core::poll::PollFdsManager::muxAdd(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOff(), core::select::DescriptorEventPublisher::muxOff(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOn(), core::select::DescriptorEventPublisher::muxOn(), core::socket::stream::legacy::SocketReader::read(), core::pipe::PipeSink::readEvent(), core::socket::stream::legacy::SocketWriter::write(), writeEvent(), core::pipe::PipeSink::~PipeSink(), and ~PipeSource().

@@ -791,12 +791,12 @@

-

Definition at line 152 of file DescriptorEventReceiver.cpp.

-
152 {
-
153 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
-
154 }
+

Definition at line 149 of file DescriptorEventReceiver.cpp.

+
149 {
+
150 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
+
151 }
-

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

+

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

Referenced by core::DescriptorEventPublisher::getNextTimeout().

@@ -835,14 +835,14 @@

-

Definition at line 107 of file DescriptorEventReceiver.cpp.

-
107 {
-
108 return enabled;
-
109 }
+

Definition at line 104 of file DescriptorEventReceiver.cpp.

+
104 {
+
105 return enabled;
+
106 }
-

References core::DescriptorEventReceiver::enabled.

+

References core::DescriptorEventReceiver::enabled.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

Here is the caller graph for this function:
@@ -874,15 +874,15 @@

-

Definition at line 138 of file DescriptorEventReceiver.cpp.

-
138 {
-
139 return suspended;
-
140 }
- +

Definition at line 135 of file DescriptorEventReceiver.cpp.

+
135 {
+
136 return suspended;
+
137 }
+
-

References core::DescriptorEventReceiver::suspended.

+

References core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and send().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and send().

Here is the caller graph for this function:
@@ -914,15 +914,15 @@

-

Definition at line 41 of file DescriptorEventReceiver.cpp.

-
41 {
- -
43 }
- +

Definition at line 38 of file DescriptorEventReceiver.cpp.

+
38 {
+ +
40 }
+
-

References core::Observer::observationCounter.

+

References core::Observer::observationCounter.

-

Referenced by core::DescriptorEventReceiver::setEnabled().

+

Referenced by core::DescriptorEventReceiver::setEnabled().

Here is the caller graph for this function:
@@ -957,18 +957,18 @@

core::EventReceiver.

-

Definition at line 156 of file DescriptorEventReceiver.cpp.

-
156 {
-
157 eventCounter++;
-
158 triggered(currentTime);
-
159
- -
161 }
-
void triggered(const utils::Timeval &currentTime)
+

Definition at line 153 of file DescriptorEventReceiver.cpp.

+
153 {
+
154 eventCounter++;
+
155 triggered(currentTime);
+
156
+ +
158 }
+
void triggered(const utils::Timeval &currentTime)
virtual void dispatchEvent()=0
- +
-

References core::DescriptorEventReceiver::dispatchEvent(), core::DescriptorEventReceiver::eventCounter, and core::DescriptorEventReceiver::triggered().

+

References core::DescriptorEventReceiver::dispatchEvent(), core::DescriptorEventReceiver::eventCounter, and core::DescriptorEventReceiver::triggered().

Here is the call graph for this function:
@@ -1001,10 +1001,10 @@

-

Definition at line 163 of file DescriptorEventReceiver.cpp.

-
163 {
-
164 signalEvent(signum);
-
165 }
+

Definition at line 160 of file DescriptorEventReceiver.cpp.

+
160 {
+
161 signalEvent(signum);
+
162 }
virtual void signalEvent(int signum)=0

References core::DescriptorEventReceiver::signalEvent().

@@ -1077,7 +1077,7 @@

62 event.relax();

63 }

-

References core::EventReceiver::event, and core::Event::relax().

+

References core::EventReceiver::event, and core::Event::relax().

Here is the call graph for this function:
@@ -1109,26 +1109,26 @@

-

Definition at line 124 of file DescriptorEventReceiver.cpp.

-
124 {
-
125 if (enabled) {
-
126 if (suspended) {
-
127 suspended = false;
- - -
130 } else {
-
131 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
-
132 }
-
133 } else {
-
134 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
-
135 }
-
136 }
+

Definition at line 121 of file DescriptorEventReceiver.cpp.

+
121 {
+
122 if (enabled) {
+
123 if (suspended) {
+
124 suspended = false;
+ + +
127 } else {
+
128 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
+
129 }
+
130 } else {
+
131 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
+
132 }
+
133 }
void resume(DescriptorEventReceiver *descriptorEventReceiver)
static Timeval currentTime()
Definition Timeval.cpp:54
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and core::DescriptorEventReceiver::suspended.

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

Here is the call graph for this function:
@@ -1178,7 +1178,7 @@

60 }

std::vector< char > writeBuffer
Definition PipeSource.h:58
-

References core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and writeBuffer.

+

References core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and writeBuffer.

Referenced by send().

@@ -1248,13 +1248,13 @@

-

Definition at line 103 of file DescriptorEventReceiver.cpp.

-
103 {
-
104 unObserved();
-
105 }
- +

Definition at line 100 of file DescriptorEventReceiver.cpp.

+
100 {
+
101 unObserved();
+
102 }
+
-

References core::Observer::unObserved().

+

References core::Observer::unObserved().

Here is the call graph for this function:
@@ -1287,15 +1287,15 @@

-

Definition at line 87 of file DescriptorEventReceiver.cpp.

-
87 {
-
88 lastTriggered = currentTime;
-
89
-
90 observed();
-
91 }
- +

Definition at line 84 of file DescriptorEventReceiver.cpp.

+
84 {
+
85 lastTriggered = currentTime;
+
86
+
87 observed();
+
88 }
+
-

References core::DescriptorEventReceiver::lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

Referenced by core::DescriptorEventPublisher::enable().

@@ -1361,22 +1361,22 @@

-

Definition at line 142 of file DescriptorEventReceiver.cpp.

-
142 {
-
143 if (timeout == TIMEOUT::DEFAULT) {
- -
145 } else {
-
146 this->maxInactivity = timeout;
-
147 }
-
148
- -
150 }
- - +

Definition at line 139 of file DescriptorEventReceiver.cpp.

+
139 {
+
140 if (timeout == TIMEOUT::DEFAULT) {
+ +
142 } else {
+
143 this->maxInactivity = timeout;
+
144 }
+
145
+ +
147 }
+ +
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, core::DescriptorEventReceiver::initialTimeout, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and core::DescriptorEventReceiver::triggered().

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, core::DescriptorEventReceiver::initialTimeout, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and core::DescriptorEventReceiver::triggered().

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

Here is the call graph for this function:
-

References core::DescriptorEventReceiver::disable().

+

References core::DescriptorEventReceiver::disable().

Here is the call graph for this function:
@@ -1459,9 +1459,9 @@

58 event.span();

59 }
-

References core::EventReceiver::event, and core::Event::span().

+

References core::EventReceiver::event, and core::Event::span().

-

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

+

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

Here is the call graph for this function:
-
+

@@ -1498,24 +1498,24 @@

-

Definition at line 111 of file DescriptorEventReceiver.cpp.

-
111 {
-
112 if (enabled) {
-
113 if (!suspended) {
-
114 suspended = true;
- -
116 } else {
-
117 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
-
118 }
-
119 } else {
-
120 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
-
121 }
-
122 }
+

Definition at line 108 of file DescriptorEventReceiver.cpp.

+
108 {
+
109 if (enabled) {
+
110 if (!suspended) {
+
111 suspended = true;
+ +
113 } else {
+
114 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
+
115 }
+
116 } else {
+
117 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
+
118 }
+
119 }
void suspend(DescriptorEventReceiver *descriptorEventReceiver)
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, core::DescriptorEventPublisher::suspend(), and core::DescriptorEventReceiver::suspended.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, core::DescriptorEventPublisher::suspend(), and core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and writeEvent().

Here is the call graph for this function:
@@ -1593,14 +1593,14 @@

-

Definition at line 167 of file DescriptorEventReceiver.cpp.

-
167 {
-
168 lastTriggered = currentTime;
-
169 }
+

Definition at line 164 of file DescriptorEventReceiver.cpp.

+
164 {
+
165 lastTriggered = currentTime;
+
166 }
-

References core::DescriptorEventReceiver::lastTriggered, and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::lastTriggered, and utils::Timeval::operator=().

-

Referenced by core::DescriptorEventReceiver::onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::DescriptorEventReceiver::setTimeout().

Here is the call graph for this function:
@@ -1637,19 +1637,19 @@

-

Definition at line 45 of file DescriptorEventReceiver.cpp.

-
45 {
- -
47
-
48 if (observationCounter == 0) {
- -
50 }
-
51 }
+

Definition at line 42 of file DescriptorEventReceiver.cpp.

+
42 {
+ +
44
+
45 if (observationCounter == 0) {
+ +
47 }
+
48 }
virtual void unobservedEvent()=0
-

References core::Observer::observationCounter, and core::Observer::unobservedEvent().

+

References core::Observer::observationCounter, and core::Observer::unobservedEvent().

-

Referenced by core::DescriptorEventReceiver::setDisabled().

+

Referenced by core::DescriptorEventReceiver::setDisabled().

Here is the call graph for this function:
@@ -1742,7 +1742,7 @@

#define MAX_SEND_JUNKSIZE

ssize_t write(int fd, const void *buf, std::size_t count)
Definition unistd.cpp:40
-

References core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::getRegisteredFd(), onError, core::DescriptorEventReceiver::suspend(), core::system::write(), and writeBuffer.

+

References core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::getRegisteredFd(), onError, core::DescriptorEventReceiver::suspend(), core::system::write(), and writeBuffer.

Here is the call graph for this function:
@@ -1781,7 +1781,7 @@

39 disable();

40 }

-

References core::DescriptorEventReceiver::disable().

+

References core::DescriptorEventReceiver::disable().

Referenced by core::eventreceiver::WriteEventReceiver::timeoutEvent().

@@ -1844,9 +1844,9 @@

-

Definition at line 108 of file DescriptorEventReceiver.h.

+

Definition at line 105 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -1870,7 +1870,7 @@

-

Definition at line 59 of file EventReceiver.h.

+

Definition at line 65 of file EventReceiver.h.

Referenced by core::EventReceiver::EventReceiver(), core::EventReceiver::getName(), core::EventReceiver::relax(), and core::EventReceiver::span().

@@ -1896,9 +1896,9 @@

-

Definition at line 115 of file DescriptorEventReceiver.h.

+

Definition at line 112 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::onEvent().

+

Referenced by core::DescriptorEventReceiver::onEvent().

@@ -1922,9 +1922,9 @@

-

Definition at line 113 of file DescriptorEventReceiver.h.

+

Definition at line 110 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), and core::DescriptorEventReceiver::setTimeout().

@@ -1948,9 +1948,9 @@

-

Definition at line 111 of file DescriptorEventReceiver.h.

+

Definition at line 108 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::resume(), core::DescriptorEventReceiver::setEnabled(), and core::DescriptorEventReceiver::triggered().

+

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::resume(), core::DescriptorEventReceiver::setEnabled(), and core::DescriptorEventReceiver::triggered().

@@ -1974,9 +1974,9 @@

-

Definition at line 112 of file DescriptorEventReceiver.h.

+

Definition at line 109 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::getTimeout(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::getTimeout(), and core::DescriptorEventReceiver::setTimeout().

@@ -2000,9 +2000,9 @@

-

Definition at line 53 of file DescriptorEventReceiver.h.

+

Definition at line 54 of file DescriptorEventReceiver.h.

-

Referenced by core::Observer::observed(), and core::Observer::unObserved().

+

Referenced by core::Observer::observed(), and core::Observer::unObserved().

@@ -2026,9 +2026,9 @@

-

Definition at line 106 of file DescriptorEventReceiver.h.

+

Definition at line 103 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -2078,9 +2078,9 @@

-

Definition at line 109 of file DescriptorEventReceiver.h.

+

Definition at line 106 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -2120,7 +2120,7 @@

    - +

diff --git a/html/classcore_1_1pipe_1_1Sink-members.html b/html/classcore_1_1pipe_1_1Sink-members.html index 631dfe9455..fa896ef097 100644 --- a/html/classcore_1_1pipe_1_1Sink-members.html +++ b/html/classcore_1_1pipe_1_1Sink-members.html @@ -119,7 +119,7 @@ diff --git a/html/classcore_1_1pipe_1_1Sink.html b/html/classcore_1_1pipe_1_1Sink.html index 2a462b2384..0357d2faaf 100644 --- a/html/classcore_1_1pipe_1_1Sink.html +++ b/html/classcore_1_1pipe_1_1Sink.html @@ -360,11 +360,11 @@

References source.

-

Referenced by web::http::client::Request::~Request().

+

Referenced by web::http::client::Request::~Request(), and web::http::server::Response::~Response().

Here is the caller graph for this function:
-
+

@@ -878,7 +878,7 @@

    - +

diff --git a/html/classcore_1_1pipe_1_1Sink_aadcf95f30275fc3062d977c3cfe983ad_icgraph.map b/html/classcore_1_1pipe_1_1Sink_aadcf95f30275fc3062d977c3cfe983ad_icgraph.map index 2ac0e7c135..09d510880c 100644 --- a/html/classcore_1_1pipe_1_1Sink_aadcf95f30275fc3062d977c3cfe983ad_icgraph.map +++ b/html/classcore_1_1pipe_1_1Sink_aadcf95f30275fc3062d977c3cfe983ad_icgraph.map @@ -1,5 +1,7 @@ - - - + + + + + diff --git a/html/classcore_1_1pipe_1_1Sink_aadcf95f30275fc3062d977c3cfe983ad_icgraph.md5 b/html/classcore_1_1pipe_1_1Sink_aadcf95f30275fc3062d977c3cfe983ad_icgraph.md5 index d59267e6e1..2130bf70db 100644 --- a/html/classcore_1_1pipe_1_1Sink_aadcf95f30275fc3062d977c3cfe983ad_icgraph.md5 +++ b/html/classcore_1_1pipe_1_1Sink_aadcf95f30275fc3062d977c3cfe983ad_icgraph.md5 @@ -1 +1 @@ -fc582817026d1a483d22f36c5b9a4a07 \ No newline at end of file +e81e51efb0b280e2cf866dcdeb011182 \ No newline at end of file diff --git a/html/classcore_1_1pipe_1_1Sink_aadcf95f30275fc3062d977c3cfe983ad_icgraph.svg b/html/classcore_1_1pipe_1_1Sink_aadcf95f30275fc3062d977c3cfe983ad_icgraph.svg index 1a894e0cf3..d75d04d940 100644 --- a/html/classcore_1_1pipe_1_1Sink_aadcf95f30275fc3062d977c3cfe983ad_icgraph.svg +++ b/html/classcore_1_1pipe_1_1Sink_aadcf95f30275fc3062d977c3cfe983ad_icgraph.svg @@ -4,16 +4,16 @@ - - + + core::pipe::Sink::isStreaming Node1 - -core::pipe::Sink::isStreaming + +core::pipe::Sink::isStreaming @@ -21,9 +21,9 @@ Node2 - -web::http::client:: -Request::~Request + +web::http::client:: +Request::~Request @@ -31,8 +31,27 @@ Node1->Node2 - - + + + + + + + +Node3 + + +web::http::server:: +Response::~Response + + + + + +Node1->Node3 + + + diff --git a/html/classcore_1_1pipe_1_1Source-members.html b/html/classcore_1_1pipe_1_1Source-members.html index d3f72c5c51..83e2c3f32b 100644 --- a/html/classcore_1_1pipe_1_1Source-members.html +++ b/html/classcore_1_1pipe_1_1Source-members.html @@ -119,7 +119,7 @@ diff --git a/html/classcore_1_1pipe_1_1Source.html b/html/classcore_1_1pipe_1_1Source.html index 9dc0d71ce8..c284082918 100644 --- a/html/classcore_1_1pipe_1_1Source.html +++ b/html/classcore_1_1pipe_1_1Source.html @@ -609,7 +609,7 @@

References isOpen(), core::pipe::Sink::pipe(), sink, and stop().

-

Referenced by web::http::client::Request::executeSendFile(), pipe(), and web::http::server::Response::sendFile().

+

Referenced by web::http::client::Request::executeSendFile(), pipe(), and web::http::server::Response::sendFile().

Here is the call graph for this function:
@@ -747,7 +747,7 @@

core::file::FileReader.

-

Referenced by web::http::client::Request::onSourceConnect(), and web::http::server::Response::onSourceConnect().

+

Referenced by web::http::client::Request::onSourceConnect(), and web::http::server::Response::onSourceConnect().

Here is the caller graph for this function:
@@ -781,7 +781,7 @@

core::file::FileReader.

-

Referenced by disconnect(), web::http::client::Request::onSourceConnect(), web::http::server::Response::onSourceConnect(), and pipe().

+

Referenced by disconnect(), web::http::client::Request::onSourceConnect(), web::http::server::Response::onSourceConnect(), and pipe().

Here is the caller graph for this function:
@@ -886,7 +886,7 @@

    - +

diff --git a/html/classcore_1_1poll_1_1DescriptorEventPublisher-members.html b/html/classcore_1_1poll_1_1DescriptorEventPublisher-members.html index 1adf307e54..3149b5bd98 100644 --- a/html/classcore_1_1poll_1_1DescriptorEventPublisher-members.html +++ b/html/classcore_1_1poll_1_1DescriptorEventPublisher-members.html @@ -130,7 +130,7 @@ diff --git a/html/classcore_1_1poll_1_1DescriptorEventPublisher.html b/html/classcore_1_1poll_1_1DescriptorEventPublisher.html index cd0a30eeeb..b15e5abed5 100644 --- a/html/classcore_1_1poll_1_1DescriptorEventPublisher.html +++ b/html/classcore_1_1poll_1_1DescriptorEventPublisher.html @@ -269,7 +269,7 @@

69 }

std::map< int, std::list< DescriptorEventReceiver * > > observedEventReceivers

-

References core::DescriptorEventReceiver::checkTimeout(), and core::DescriptorEventPublisher::observedEventReceivers.

+

References core::DescriptorEventReceiver::checkTimeout(), and core::DescriptorEventPublisher::observedEventReceivers.

Referenced by core::EventMultiplexer::checkTimedOutEvents().

@@ -317,7 +317,7 @@

144 }

145 }

-

References core::DescriptorEventReceiver::disable(), and core::DescriptorEventPublisher::observedEventReceivers.

+

References core::DescriptorEventReceiver::disable(), and core::DescriptorEventPublisher::observedEventReceivers.

Referenced by core::EventMultiplexer::terminate().

@@ -365,7 +365,7 @@

References core::DescriptorEventPublisher::observedEventReceiversDirty.

-

Referenced by core::DescriptorEventReceiver::disable().

+

Referenced by core::DescriptorEventReceiver::disable().

Here is the caller graph for this function:
@@ -412,9 +412,9 @@

virtual void muxOff(DescriptorEventReceiver *descriptorEventReceiver)=0

static Timeval currentTime()
Definition Timeval.cpp:54

-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventPublisher::muxAdd(), core::DescriptorEventPublisher::muxOff(), core::DescriptorEventPublisher::observedEventReceivers, and core::DescriptorEventReceiver::setEnabled().

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventPublisher::muxAdd(), core::DescriptorEventPublisher::muxOff(), core::DescriptorEventPublisher::observedEventReceivers, and core::DescriptorEventReceiver::setEnabled().

-

Referenced by core::DescriptorEventReceiver::enable().

+

Referenced by core::DescriptorEventReceiver::enable().

Here is the call graph for this function:
@@ -499,9 +499,9 @@

128 return nextTimeout;

129 }
- +

-

References core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventPublisher::observedEventReceivers, core::DescriptorEventPublisher::observedEventReceiversDirty, and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventPublisher::observedEventReceivers, core::DescriptorEventPublisher::observedEventReceiversDirty, and utils::Timeval::operator=().

Referenced by core::EventMultiplexer::getNextTimeout().

@@ -825,7 +825,7 @@

virtual void muxDel(int fd)=0

virtual void muxOn(DescriptorEventReceiver *descriptorEventReceiver)=0
-

References core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventPublisher::muxDel(), core::DescriptorEventPublisher::muxOff(), core::DescriptorEventPublisher::muxOn(), core::DescriptorEventPublisher::observedEventReceivers, core::DescriptorEventPublisher::observedEventReceiversDirty, and core::DescriptorEventReceiver::triggered().

+

References core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventPublisher::muxDel(), core::DescriptorEventPublisher::muxOff(), core::DescriptorEventPublisher::muxOn(), core::DescriptorEventPublisher::observedEventReceivers, core::DescriptorEventPublisher::observedEventReceiversDirty, and core::DescriptorEventReceiver::triggered().

Referenced by core::EventMultiplexer::releaseExpiredResources().

@@ -872,7 +872,7 @@

References core::DescriptorEventPublisher::muxOn().

-

Referenced by core::DescriptorEventReceiver::resume().

+

Referenced by core::DescriptorEventReceiver::resume().

Here is the call graph for this function:
@@ -919,7 +919,7 @@

136 }

137 }

-

References core::DescriptorEventPublisher::observedEventReceivers, and core::DescriptorEventReceiver::onSignal().

+

References core::DescriptorEventPublisher::observedEventReceivers, and core::DescriptorEventReceiver::onSignal().

Referenced by core::EventMultiplexer::signal().

@@ -977,7 +977,7 @@

71 }

72 }
- +
const std::unordered_map< int, PollFdIndex > & getPollFdIndices() const
@@ -1022,7 +1022,7 @@

References core::DescriptorEventPublisher::muxOff().

-

Referenced by core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::suspend().

Here is the call graph for this function:
@@ -1229,7 +1229,7 @@

diff --git a/html/classcore_1_1poll_1_1EventMultiplexer-members.html b/html/classcore_1_1poll_1_1EventMultiplexer-members.html index bceeffd41b..d754b026a8 100644 --- a/html/classcore_1_1poll_1_1EventMultiplexer-members.html +++ b/html/classcore_1_1poll_1_1EventMultiplexer-members.html @@ -130,7 +130,7 @@ diff --git a/html/classcore_1_1poll_1_1EventMultiplexer.html b/html/classcore_1_1poll_1_1EventMultiplexer.html index a6b1c274ac..aafd49b24d 100644 --- a/html/classcore_1_1poll_1_1EventMultiplexer.html +++ b/html/classcore_1_1poll_1_1EventMultiplexer.html @@ -515,9 +515,9 @@

core::TimerEventPublisher *const timerEventPublisher

utils::Timeval getNextTimeout(const utils::Timeval &currentTime)
- +

-

References core::EventMultiplexer::descriptorEventPublishers, core::EventMultiplexer::EventQueue::empty(), core::EventMultiplexer::eventQueue, core::TimerEventPublisher::getNextTimeout(), core::DescriptorEventPublisher::getNextTimeout(), core::DescriptorEventReceiver::TIMEOUT::MAX, utils::Timeval::operator=(), core::EventMultiplexer::timerEventPublisher, and utils::Timeval::Timeval().

+

References core::EventMultiplexer::descriptorEventPublishers, core::EventMultiplexer::EventQueue::empty(), core::EventMultiplexer::eventQueue, core::TimerEventPublisher::getNextTimeout(), core::DescriptorEventPublisher::getNextTimeout(), core::DescriptorEventReceiver::TIMEOUT::MAX, utils::Timeval::operator=(), core::EventMultiplexer::timerEventPublisher, and utils::Timeval::Timeval().

Referenced by core::EventMultiplexer::waitForEvents().

-
+
@@ -1295,7 +1295,7 @@

    - +

diff --git a/html/classcore_1_1poll_1_1PollFdsManager-members.html b/html/classcore_1_1poll_1_1PollFdsManager-members.html index 0b08856f56..f02eedb236 100644 --- a/html/classcore_1_1poll_1_1PollFdsManager-members.html +++ b/html/classcore_1_1poll_1_1PollFdsManager-members.html @@ -112,7 +112,7 @@ diff --git a/html/classcore_1_1poll_1_1PollFdsManager.html b/html/classcore_1_1poll_1_1PollFdsManager.html index 894d4dfbcb..99ada84e41 100644 --- a/html/classcore_1_1poll_1_1PollFdsManager.html +++ b/html/classcore_1_1poll_1_1PollFdsManager.html @@ -361,9 +361,9 @@

69 pollFdIndex.events |= event;

70 }
71 }
-
+
-

References core::poll::PollFdsManager::PollFdIndex::events, core::DescriptorEventReceiver::getRegisteredFd(), and pollFdIndices.

+

References core::poll::PollFdsManager::PollFdIndex::events, core::DescriptorEventReceiver::getRegisteredFd(), and pollFdIndices.

Referenced by core::poll::DescriptorEventPublisher::muxAdd().

@@ -607,7 +607,7 @@

    - +

diff --git a/html/classcore_1_1select_1_1DescriptorEventPublisher-members.html b/html/classcore_1_1select_1_1DescriptorEventPublisher-members.html index 6544d82fd9..2eaf56bab8 100644 --- a/html/classcore_1_1select_1_1DescriptorEventPublisher-members.html +++ b/html/classcore_1_1select_1_1DescriptorEventPublisher-members.html @@ -128,7 +128,7 @@ diff --git a/html/classcore_1_1select_1_1DescriptorEventPublisher.html b/html/classcore_1_1select_1_1DescriptorEventPublisher.html index c58c68d62a..844b972245 100644 --- a/html/classcore_1_1select_1_1DescriptorEventPublisher.html +++ b/html/classcore_1_1select_1_1DescriptorEventPublisher.html @@ -256,7 +256,7 @@

69 }

std::map< int, std::list< DescriptorEventReceiver * > > observedEventReceivers
-

References core::DescriptorEventReceiver::checkTimeout(), and core::DescriptorEventPublisher::observedEventReceivers.

+

References core::DescriptorEventReceiver::checkTimeout(), and core::DescriptorEventPublisher::observedEventReceivers.

Referenced by core::EventMultiplexer::checkTimedOutEvents().

@@ -304,7 +304,7 @@

144 }

145 }

-

References core::DescriptorEventReceiver::disable(), and core::DescriptorEventPublisher::observedEventReceivers.

+

References core::DescriptorEventReceiver::disable(), and core::DescriptorEventPublisher::observedEventReceivers.

Referenced by core::EventMultiplexer::terminate().

@@ -352,7 +352,7 @@

References core::DescriptorEventPublisher::observedEventReceiversDirty.

-

Referenced by core::DescriptorEventReceiver::disable().

+

Referenced by core::DescriptorEventReceiver::disable().

Here is the caller graph for this function:
@@ -399,9 +399,9 @@

virtual void muxOff(DescriptorEventReceiver *descriptorEventReceiver)=0

static Timeval currentTime()
Definition Timeval.cpp:54

-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventPublisher::muxAdd(), core::DescriptorEventPublisher::muxOff(), core::DescriptorEventPublisher::observedEventReceivers, and core::DescriptorEventReceiver::setEnabled().

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventPublisher::muxAdd(), core::DescriptorEventPublisher::muxOff(), core::DescriptorEventPublisher::observedEventReceivers, and core::DescriptorEventReceiver::setEnabled().

-

Referenced by core::DescriptorEventReceiver::enable().

+

Referenced by core::DescriptorEventReceiver::enable().

Here is the call graph for this function:
@@ -486,9 +486,9 @@

128 return nextTimeout;

129 }
- +
-

References core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventPublisher::observedEventReceivers, core::DescriptorEventPublisher::observedEventReceiversDirty, and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventPublisher::observedEventReceivers, core::DescriptorEventPublisher::observedEventReceiversDirty, and utils::Timeval::operator=().

Referenced by core::EventMultiplexer::getNextTimeout().

-

References fdSet, core::DescriptorEventReceiver::getRegisteredFd(), and core::select::FdSet::set().

+

References fdSet, core::DescriptorEventReceiver::getRegisteredFd(), and core::select::FdSet::set().

Here is the call graph for this function:
@@ -703,7 +703,7 @@

90 fdSet.clr(eventReceiver->getRegisteredFd());

91 }

-

References core::select::FdSet::clr(), fdSet, and core::DescriptorEventReceiver::getRegisteredFd().

+

References core::select::FdSet::clr(), fdSet, and core::DescriptorEventReceiver::getRegisteredFd().

Here is the call graph for this function:
@@ -743,7 +743,7 @@

86 fdSet.set(eventReceiver->getRegisteredFd());

87 }

-

References fdSet, core::DescriptorEventReceiver::getRegisteredFd(), and core::select::FdSet::set().

+

References fdSet, core::DescriptorEventReceiver::getRegisteredFd(), and core::select::FdSet::set().

Here is the call graph for this function:
@@ -811,7 +811,7 @@

virtual void muxDel(int fd)=0

virtual void muxOn(DescriptorEventReceiver *descriptorEventReceiver)=0
-

References core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventPublisher::muxDel(), core::DescriptorEventPublisher::muxOff(), core::DescriptorEventPublisher::muxOn(), core::DescriptorEventPublisher::observedEventReceivers, core::DescriptorEventPublisher::observedEventReceiversDirty, and core::DescriptorEventReceiver::triggered().

+

References core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventPublisher::muxDel(), core::DescriptorEventPublisher::muxOff(), core::DescriptorEventPublisher::muxOn(), core::DescriptorEventPublisher::observedEventReceivers, core::DescriptorEventPublisher::observedEventReceiversDirty, and core::DescriptorEventReceiver::triggered().

Referenced by core::EventMultiplexer::releaseExpiredResources().

@@ -858,7 +858,7 @@

References core::DescriptorEventPublisher::muxOn().

-

Referenced by core::DescriptorEventReceiver::resume().

+

Referenced by core::DescriptorEventReceiver::resume().

Here is the call graph for this function:
@@ -905,7 +905,7 @@

136 }

137 }

-

References core::DescriptorEventPublisher::observedEventReceivers, and core::DescriptorEventReceiver::onSignal().

+

References core::DescriptorEventPublisher::observedEventReceivers, and core::DescriptorEventReceiver::onSignal().

Referenced by core::EventMultiplexer::signal().

@@ -957,7 +957,7 @@

100 }

101 }
- +

@@ -1001,7 +1001,7 @@

References core::DescriptorEventPublisher::muxOff().

-

Referenced by core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::suspend().

Here is the call graph for this function:
@@ -1156,7 +1156,7 @@

diff --git a/html/classcore_1_1select_1_1EventMultiplexer-members.html b/html/classcore_1_1select_1_1EventMultiplexer-members.html index ba8cd12548..0969a62da7 100644 --- a/html/classcore_1_1select_1_1EventMultiplexer-members.html +++ b/html/classcore_1_1select_1_1EventMultiplexer-members.html @@ -130,7 +130,7 @@ diff --git a/html/classcore_1_1select_1_1EventMultiplexer.html b/html/classcore_1_1select_1_1EventMultiplexer.html index dccaaf63b2..2b289d7fc2 100644 --- a/html/classcore_1_1select_1_1EventMultiplexer.html +++ b/html/classcore_1_1select_1_1EventMultiplexer.html @@ -507,9 +507,9 @@

core::TimerEventPublisher *const timerEventPublisher

utils::Timeval getNextTimeout(const utils::Timeval &currentTime)
- +

-

References core::EventMultiplexer::descriptorEventPublishers, core::EventMultiplexer::EventQueue::empty(), core::EventMultiplexer::eventQueue, core::TimerEventPublisher::getNextTimeout(), core::DescriptorEventPublisher::getNextTimeout(), core::DescriptorEventReceiver::TIMEOUT::MAX, utils::Timeval::operator=(), core::EventMultiplexer::timerEventPublisher, and utils::Timeval::Timeval().

+

References core::EventMultiplexer::descriptorEventPublishers, core::EventMultiplexer::EventQueue::empty(), core::EventMultiplexer::eventQueue, core::TimerEventPublisher::getNextTimeout(), core::DescriptorEventPublisher::getNextTimeout(), core::DescriptorEventReceiver::TIMEOUT::MAX, utils::Timeval::operator=(), core::EventMultiplexer::timerEventPublisher, and utils::Timeval::Timeval().

Referenced by core::EventMultiplexer::waitForEvents().

-
+
@@ -1293,7 +1293,7 @@

    - +

diff --git a/html/classcore_1_1select_1_1FdSet-members.html b/html/classcore_1_1select_1_1FdSet-members.html index 3e5802254d..05ff548cae 100644 --- a/html/classcore_1_1select_1_1FdSet-members.html +++ b/html/classcore_1_1select_1_1FdSet-members.html @@ -108,7 +108,7 @@ diff --git a/html/classcore_1_1select_1_1FdSet.html b/html/classcore_1_1select_1_1FdSet.html index da08750bac..f38ba5cd36 100644 --- a/html/classcore_1_1select_1_1FdSet.html +++ b/html/classcore_1_1select_1_1FdSet.html @@ -400,7 +400,7 @@

    - +

diff --git a/html/classcore_1_1socket_1_1Socket-members.html b/html/classcore_1_1socket_1_1Socket-members.html index c0dd210939..1cf4975551 100644 --- a/html/classcore_1_1socket_1_1Socket-members.html +++ b/html/classcore_1_1socket_1_1Socket-members.html @@ -109,7 +109,7 @@ diff --git a/html/classcore_1_1socket_1_1Socket.html b/html/classcore_1_1socket_1_1Socket.html index 4c82a86e79..2b63c4f2cf 100644 --- a/html/classcore_1_1socket_1_1Socket.html +++ b/html/classcore_1_1socket_1_1Socket.html @@ -400,7 +400,7 @@

    - +

diff --git a/html/classcore_1_1socket_1_1SocketAddress-members.html b/html/classcore_1_1socket_1_1SocketAddress-members.html index 342894cf5d..f95da0ea47 100644 --- a/html/classcore_1_1socket_1_1SocketAddress-members.html +++ b/html/classcore_1_1socket_1_1SocketAddress-members.html @@ -103,7 +103,7 @@ diff --git a/html/classcore_1_1socket_1_1SocketAddress.html b/html/classcore_1_1socket_1_1SocketAddress.html index 7fc4c4c9ec..f94979fd93 100644 --- a/html/classcore_1_1socket_1_1SocketAddress.html +++ b/html/classcore_1_1socket_1_1SocketAddress.html @@ -227,7 +227,7 @@

    - +

diff --git a/html/classcore_1_1socket_1_1SocketAddress_1_1BadSocketAddress-members.html b/html/classcore_1_1socket_1_1SocketAddress_1_1BadSocketAddress-members.html index 95887318d6..488d91bf56 100644 --- a/html/classcore_1_1socket_1_1SocketAddress_1_1BadSocketAddress-members.html +++ b/html/classcore_1_1socket_1_1SocketAddress_1_1BadSocketAddress-members.html @@ -107,7 +107,7 @@ diff --git a/html/classcore_1_1socket_1_1SocketAddress_1_1BadSocketAddress.html b/html/classcore_1_1socket_1_1SocketAddress_1_1BadSocketAddress.html index f535e5c1c2..f3e515450e 100644 --- a/html/classcore_1_1socket_1_1SocketAddress_1_1BadSocketAddress.html +++ b/html/classcore_1_1socket_1_1SocketAddress_1_1BadSocketAddress.html @@ -347,7 +347,7 @@

diff --git a/html/classcore_1_1socket_1_1SocketContext-members.html b/html/classcore_1_1socket_1_1SocketContext-members.html index f697d2e934..b89d01c37f 100644 --- a/html/classcore_1_1socket_1_1SocketContext-members.html +++ b/html/classcore_1_1socket_1_1SocketContext-members.html @@ -115,7 +115,7 @@ diff --git a/html/classcore_1_1socket_1_1SocketContext.html b/html/classcore_1_1socket_1_1SocketContext.html index b8799e5bd9..204ec3af7a 100644 --- a/html/classcore_1_1socket_1_1SocketContext.html +++ b/html/classcore_1_1socket_1_1SocketContext.html @@ -547,7 +547,7 @@

Here is the caller graph for this function:

-
+
@@ -576,7 +576,7 @@

References sendToPeer().

-

Referenced by web::http::client::Request::executeSendFragment(), web::http::client::Request::executeSendHeader(), web::http::client::Request::requestDelivered(), web::http::server::Response::sendCompleted(), web::http::server::Response::sendFragment(), and web::http::server::Response::sendHeader().

+

Referenced by web::http::client::Request::executeSendFragment(), web::http::client::Request::executeSendHeader(), web::http::client::Request::requestDelivered(), web::http::server::Response::sendCompleted(), web::http::server::Response::sendFragment(), and web::http::server::Response::sendHeader().

Here is the call graph for this function:
-
+

@@ -628,7 +628,7 @@

    - +

diff --git a/html/classcore_1_1socket_1_1SocketContext_a171ec3bb2190630276ff2e6cb5fd9ccf_icgraph.map b/html/classcore_1_1socket_1_1SocketContext_a171ec3bb2190630276ff2e6cb5fd9ccf_icgraph.map index bc8ac2d4fe..4d289a67dd 100644 --- a/html/classcore_1_1socket_1_1SocketContext_a171ec3bb2190630276ff2e6cb5fd9ccf_icgraph.map +++ b/html/classcore_1_1socket_1_1SocketContext_a171ec3bb2190630276ff2e6cb5fd9ccf_icgraph.map @@ -1,137 +1,145 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/classcore_1_1socket_1_1SocketContext_a171ec3bb2190630276ff2e6cb5fd9ccf_icgraph.md5 b/html/classcore_1_1socket_1_1SocketContext_a171ec3bb2190630276ff2e6cb5fd9ccf_icgraph.md5 index 4ab91523ac..a837b73e5a 100644 --- a/html/classcore_1_1socket_1_1SocketContext_a171ec3bb2190630276ff2e6cb5fd9ccf_icgraph.md5 +++ b/html/classcore_1_1socket_1_1SocketContext_a171ec3bb2190630276ff2e6cb5fd9ccf_icgraph.md5 @@ -1 +1 @@ -7d15c1f7d7ef6a41fe3663cc2972a639 \ No newline at end of file +40916b40fcf5b715608c1836bb8832ad \ No newline at end of file diff --git a/html/classcore_1_1socket_1_1SocketContext_a171ec3bb2190630276ff2e6cb5fd9ccf_icgraph.svg b/html/classcore_1_1socket_1_1SocketContext_a171ec3bb2190630276ff2e6cb5fd9ccf_icgraph.svg index dc5bcb7feb..d471a807bb 100644 --- a/html/classcore_1_1socket_1_1SocketContext_a171ec3bb2190630276ff2e6cb5fd9ccf_icgraph.svg +++ b/html/classcore_1_1socket_1_1SocketContext_a171ec3bb2190630276ff2e6cb5fd9ccf_icgraph.svg @@ -4,17 +4,17 @@ - - + + core::socket::SocketContext::sendToPeer Node1 - -core::socket::SocketContext -::sendToPeer + +core::socket::SocketContext +::sendToPeer @@ -22,9 +22,9 @@ Node2 - -web::http::client:: -Request::executeSendFragment + +web::http::client:: +Request::executeSendFragment @@ -32,8 +32,8 @@ Node1->Node2 - - + + @@ -41,94 +41,94 @@ Node5 - -web::http::client:: -Request::requestDelivered + +web::http::client:: +Request::requestDelivered - + Node1->Node5 - - - + + + - - -Node17 - - -web::http::client:: -Request::executeSendHeader + + +Node21 + + +web::http::client:: +Request::executeSendHeader - - -Node1->Node17 - - - + + +Node1->Node21 + + + - - -Node23 - - -web::http::server:: -Response::sendCompleted + + +Node27 + + +web::http::server:: +Response::sendCompleted - - -Node1->Node23 - - - + + +Node1->Node27 + + + - - -Node56 - - -web::http::server:: -Response::sendFragment + + +Node60 + + +web::http::server:: +Response::sendFragment - - -Node1->Node56 - - - + + +Node1->Node60 + + + - - -Node61 - - -web::http::server:: -Response::sendHeader + + +Node65 + + +web::http::server:: +Response::sendHeader - - -Node1->Node61 - - - + + +Node1->Node65 + + + @@ -136,10 +136,10 @@ Node3 - -web::http::client:: -commands::SendFragmentCommand -::execute + +web::http::client:: +commands::SendFragmentCommand +::execute @@ -147,8 +147,8 @@ Node2->Node3 - - + + @@ -156,9 +156,9 @@ Node4 - -web::http::client:: -Request::onSourceData + +web::http::client:: +Request::onSourceData @@ -166,8 +166,8 @@ Node2->Node4 - - + + @@ -175,8 +175,8 @@ Node2->Node5 - - + + @@ -184,9 +184,9 @@ Node6 - -web::http::client:: -Request::initiate + +web::http::client:: +Request::initiate @@ -194,46 +194,46 @@ Node5->Node6 - - + + - - -Node15 - - -web::http::client:: -Request::onSourceEof + + +Node19 + + +web::http::client:: +Request::onSourceEof - - -Node5->Node15 - - - + + +Node5->Node19 + + + - - -Node16 - - -web::http::client:: -Request::onSourceError + + +Node20 + + +web::http::client:: +Request::onSourceError - - -Node5->Node16 - - - + + +Node5->Node20 + + + @@ -241,9 +241,9 @@ Node7 - -web::http::client:: -SocketContext::initiateRequest + +web::http::client:: +SocketContext::initiateRequest @@ -251,8 +251,8 @@ Node6->Node7 - - + + @@ -260,8 +260,8 @@ Node7->Node7 - - + + @@ -269,9 +269,9 @@ Node8 - -web::http::client:: -SocketContext::requestDelivered + +web::http::client:: +SocketContext::requestDelivered @@ -279,18 +279,18 @@ Node7->Node8 - - + + Node9 - - -web::http::client:: -SocketContext::requestPrepared + + +web::http::client:: +SocketContext::requestPrepared @@ -298,8 +298,27 @@ Node7->Node9 - - + + + + + + + +Node16 + + +web::http::client:: +SocketContext::responseDelivered + + + + + +Node7->Node16 + + + @@ -307,18 +326,18 @@ Node8->Node5 - - + + Node10 - - -web::http::client:: -Request::end + + +web::http::client:: +Request::requestPrepared @@ -326,173 +345,152 @@ Node9->Node10 - - + + Node11 - - -web::http::client:: -Request::send + + +web::http::client:: +Request::end - - -Node9->Node11 - - - + + +Node10->Node11 + + + - - -Node13 - - -web::http::client:: -Request::sendFile + + +Node12 + + +web::http::client:: +Request::send - - -Node9->Node13 - - - + + +Node10->Node12 + + + Node14 - - -web::http::client:: -Request::upgrade - - - - - -Node9->Node14 - - - - - - - - -Node12 - - -web::http::client:: -Request::send + + +web::http::client:: +Request::sendFile - - -Node11->Node12 - - - + + +Node10->Node14 + + + - - -Node18 - - -web::http::client:: -commands::SendHeaderCommand -::execute + + +Node15 + + +web::http::client:: +Request::upgrade - - -Node17->Node18 - - - + + +Node10->Node15 + + + - - -Node19 - - -web::http::client:: -Request::executeSendFile + + +Node13 + + +web::http::client:: +Request::send - - -Node17->Node19 - - - + + +Node12->Node13 + + + - - -Node21 - - -web::http::client:: -Request::executeUpgrade + + +Node17 + + +web::http::client:: +SocketContext::deliverResponse - - -Node17->Node21 - - - + + +Node16->Node17 + + + - - -Node20 - - -web::http::client:: -commands::SendFileCommand -::execute + + +Node18 + + +web::http::client:: +SocketContext::onDisconnected - - -Node19->Node20 - - - + + +Node17->Node18 + + + Node22 - - -web::http::client:: -commands::UpgradeCommand -::execute + + +web::http::client:: +commands::SendHeaderCommand +::execute @@ -500,187 +498,152 @@ Node21->Node22 - - + + - - -Node24 - - -web::http::server:: -Response::onSourceEof + + +Node23 + + +web::http::client:: +Request::executeSendFile - - -Node23->Node24 - - - + + +Node21->Node23 + + + Node25 - - -web::http::server:: -Response::onSourceError + + +web::http::client:: +Request::executeUpgrade - - -Node23->Node25 - - - + + +Node21->Node25 + + + - - -Node26 - - -web::http::server:: -Response::send + + +Node24 + + +web::http::client:: +commands::SendFileCommand +::execute - - -Node23->Node26 - - - + + +Node23->Node24 + + + - - -Node27 - - -express::Response::send + + +Node26 + + +web::http::client:: +commands::UpgradeCommand +::execute - - -Node26->Node27 - - - + + +Node25->Node26 + + + Node28 - - -web::http::server:: -Response::send + + +web::http::server:: +Response::onSourceEof - - -Node26->Node28 - - - + + +Node27->Node28 + + + Node29 - - -web::http::server:: -Response::end + + +web::http::server:: +Response::onSourceError - - -Node28->Node29 - - - - - - - - -Node36 - - -express::Response::send - - - - - -Node28->Node36 - - - + + +Node27->Node29 + + + Node30 - - -express::Response::end - - - - - -Node29->Node30 - - - + + +web::http::server:: +Response::send - - -Node34 - - -web::http::server:: -Response::upgrade - - - - - -Node29->Node34 - - - + + +Node27->Node30 + + + Node31 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +express::Response::send @@ -688,39 +651,37 @@ Node30->Node31 - - + + Node32 - - -express::middleware -::StaticMiddleware:: -instance + + +web::http::server:: +Response::send - - -Node31->Node32 - - - + + +Node30->Node32 + + + Node33 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +web::http::server:: +Response::end @@ -728,162 +689,151 @@ Node32->Node33 - - + + - - -Node35 - - -express::Response:: -upgrade + + +Node40 + + +express::Response::send - - -Node34->Node35 - - - + + +Node32->Node40 + + + - - -Node37 - - -express::Response::json + + +Node34 + + +express::Response::end - - -Node36->Node37 - - - + + +Node33->Node34 + + + Node38 - - -express::Response:: -sendStatus + + +web::http::server:: +Response::upgrade - - -Node36->Node38 - - - + + +Node33->Node38 + + + - - -Node38->Node31 - - - - - - - - -Node39 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +Node35 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node38->Node39 - - - + + +Node34->Node35 + + + - - -Node42 - - -express::RootRoute -::dispatch + + +Node36 + + +express::middleware +::StaticMiddleware:: +instance - - -Node38->Node42 - - - + + +Node35->Node36 + + + - - -Node54 - - -express::Response:: -redirect + + +Node37 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node38->Node54 - - - + + +Node36->Node37 + + + - - -Node40 - - -express::middleware -::BasicAuthentication -::instance + + +Node39 + + +express::Response:: +upgrade - - -Node39->Node40 - - - + + +Node38->Node39 + + + Node41 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +express::Response::json @@ -891,18 +841,47 @@ Node40->Node41 - - + + + + + + + +Node42 + + +express::Response:: +sendStatus + + + + + +Node40->Node42 + + + + + + + + +Node42->Node35 + + + Node43 - - -express::RootRoute -::dispatch + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -910,36 +889,77 @@ Node42->Node43 - - + + + + + + + +Node46 + + +express::RootRoute +::dispatch + + + + + +Node42->Node46 + + + + + + + + +Node58 + + +express::Response:: +redirect + + + + + +Node42->Node58 + + + Node44 - - -express::Controller -::next + + +express::middleware +::BasicAuthentication +::instance - - -Node42->Node44 - - - + + +Node43->Node44 + + + Node45 - - -express::Next::operator() + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -947,347 +967,403 @@ Node44->Node45 - - + + - - -Node45->Node31 - - - + + +Node47 + + +express::RootRoute +::dispatch - - -Node45->Node39 - - - + + +Node46->Node47 + + + - - -Node46 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node48 + + +express::Controller +::next - - -Node45->Node46 - - - + + +Node46->Node48 + + + Node49 - - -express::middleware -::VerboseRequest::VerboseRequest + + +express::Next::operator() - - -Node45->Node49 - - - + + +Node48->Node49 + + + - - -Node51 - - -express::middleware -::VHost::VHost + + +Node49->Node35 + + + - - -Node45->Node51 - - - + + +Node49->Node43 + + + - - -Node47 - - -express::middleware -::JsonMiddleware::instance + + +Node50 + + +express::middleware +::JsonMiddleware::JsonMiddleware - - -Node46->Node47 - - - + + +Node49->Node50 + + + - - -Node48 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node53 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node47->Node48 - - - + + +Node49->Node53 + + + - - -Node50 - - -express::middleware -::VerboseRequest::VerboseRequest + + +Node55 + + +express::middleware +::VHost::VHost - - -Node49->Node50 - - - + + +Node49->Node55 + + + - - -Node52 - - -express::middleware -::VHost::instance + + +Node51 + + +express::middleware +::JsonMiddleware::instance - - -Node51->Node52 - - - + + +Node50->Node51 + + + - - -Node53 - - -express::middleware -::VHost::VHost + + +Node52 + + +express::middleware +::JsonMiddleware::JsonMiddleware - - -Node52->Node53 - - - + + +Node51->Node52 + + + - - -Node54->Node31 - - - + + +Node54 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node55 - - -express::Response:: -redirect + + +Node53->Node54 + + + - - -Node54->Node55 - - - + + +Node56 + + +express::middleware +::VHost::instance - - -Node56->Node26 - - - + + +Node55->Node56 + + + Node57 - - -web::http::server:: -Response::onSourceData + + +express::middleware +::VHost::VHost - + Node56->Node57 - - - - - - - - -Node58 - - -express::Response:: -sendFragment + + + - - -Node56->Node58 - - - + + +Node58->Node35 + + + Node59 - - -web::http::server:: -Response::sendFragment + + +express::Response:: +redirect - - -Node56->Node59 - - - + + +Node58->Node59 + + + - - -Node59->Node23 - - - + + +Node60->Node30 + + + - - -Node60 - - -express::Response:: -sendFragment - - - - - -Node59->Node60 - - - + + +Node61 + + +web::http::server:: +Response::onSourceData - - -Node61->Node26 - - - + + +Node60->Node61 + + + Node62 - - -web::http::server:: -Response::onSourceConnect + + +express::Response:: +sendFragment - - -Node61->Node62 - - - + + +Node60->Node62 + + + Node63 - - -express::Response:: -sendHeader + + +web::http::server:: +Response::sendFragment + + + + + +Node60->Node63 + + + + + + + + +Node63->Node27 + + + + + + + + +Node64 + + +express::Response:: +sendFragment + + + + + +Node63->Node64 + + + + + + + + +Node65->Node30 + + + + + + + + +Node66 + + +web::http::server:: +Response::onSourceConnect + + + + + +Node65->Node66 + + + + + + + + +Node67 + + +express::Response:: +sendHeader - - -Node61->Node63 - - - + + +Node65->Node67 + + + diff --git a/html/classcore_1_1socket_1_1SocketContext_ad483b080be706b99648da684b74cdcd9_icgraph.map b/html/classcore_1_1socket_1_1SocketContext_ad483b080be706b99648da684b74cdcd9_icgraph.map index 9c3f19126c..73044c6a66 100644 --- a/html/classcore_1_1socket_1_1SocketContext_ad483b080be706b99648da684b74cdcd9_icgraph.map +++ b/html/classcore_1_1socket_1_1SocketContext_ad483b080be706b99648da684b74cdcd9_icgraph.map @@ -1,139 +1,147 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/classcore_1_1socket_1_1SocketContext_ad483b080be706b99648da684b74cdcd9_icgraph.md5 b/html/classcore_1_1socket_1_1SocketContext_ad483b080be706b99648da684b74cdcd9_icgraph.md5 index 9cb3b947d3..04564af318 100644 --- a/html/classcore_1_1socket_1_1SocketContext_ad483b080be706b99648da684b74cdcd9_icgraph.md5 +++ b/html/classcore_1_1socket_1_1SocketContext_ad483b080be706b99648da684b74cdcd9_icgraph.md5 @@ -1 +1 @@ -25424e20c114ead6cefbf2bcc6f12c1b \ No newline at end of file +ae5362af74a8fe6ce32054d87b8feeb2 \ No newline at end of file diff --git a/html/classcore_1_1socket_1_1SocketContext_ad483b080be706b99648da684b74cdcd9_icgraph.svg b/html/classcore_1_1socket_1_1SocketContext_ad483b080be706b99648da684b74cdcd9_icgraph.svg index b9bfcaee3d..b72b0565e6 100644 --- a/html/classcore_1_1socket_1_1SocketContext_ad483b080be706b99648da684b74cdcd9_icgraph.svg +++ b/html/classcore_1_1socket_1_1SocketContext_ad483b080be706b99648da684b74cdcd9_icgraph.svg @@ -4,17 +4,17 @@ - - + + core::socket::SocketContext::sendToPeer Node1 - -core::socket::SocketContext -::sendToPeer + +core::socket::SocketContext +::sendToPeer @@ -22,9 +22,9 @@ Node2 - -core::socket::SocketContext -::sendToPeer + +core::socket::SocketContext +::sendToPeer @@ -32,8 +32,8 @@ Node1->Node2 - - + + @@ -41,9 +41,9 @@ Node3 - -web::http::client:: -Request::executeSendFragment + +web::http::client:: +Request::executeSendFragment @@ -51,8 +51,8 @@ Node2->Node3 - - + + @@ -60,94 +60,94 @@ Node6 - -web::http::client:: -Request::requestDelivered + +web::http::client:: +Request::requestDelivered - + Node2->Node6 - - - + + + - - -Node18 - - -web::http::client:: -Request::executeSendHeader + + +Node22 + + +web::http::client:: +Request::executeSendHeader - - -Node2->Node18 - - - + + +Node2->Node22 + + + - - -Node24 - - -web::http::server:: -Response::sendCompleted + + +Node28 + + +web::http::server:: +Response::sendCompleted - - -Node2->Node24 - - - + + +Node2->Node28 + + + - - -Node57 - - -web::http::server:: -Response::sendFragment + + +Node61 + + +web::http::server:: +Response::sendFragment - - -Node2->Node57 - - - + + +Node2->Node61 + + + - - -Node62 - - -web::http::server:: -Response::sendHeader + + +Node66 + + +web::http::server:: +Response::sendHeader - - -Node2->Node62 - - - + + +Node2->Node66 + + + @@ -155,10 +155,10 @@ Node4 - -web::http::client:: -commands::SendFragmentCommand -::execute + +web::http::client:: +commands::SendFragmentCommand +::execute @@ -166,8 +166,8 @@ Node3->Node4 - - + + @@ -175,9 +175,9 @@ Node5 - -web::http::client:: -Request::onSourceData + +web::http::client:: +Request::onSourceData @@ -185,8 +185,8 @@ Node3->Node5 - - + + @@ -194,8 +194,8 @@ Node3->Node6 - - + + @@ -203,9 +203,9 @@ Node7 - -web::http::client:: -Request::initiate + +web::http::client:: +Request::initiate @@ -213,46 +213,46 @@ Node6->Node7 - - + + - - -Node16 - - -web::http::client:: -Request::onSourceEof + + +Node20 + + +web::http::client:: +Request::onSourceEof - - -Node6->Node16 - - - + + +Node6->Node20 + + + - - -Node17 - - -web::http::client:: -Request::onSourceError + + +Node21 + + +web::http::client:: +Request::onSourceError - - -Node6->Node17 - - - + + +Node6->Node21 + + + @@ -260,9 +260,9 @@ Node8 - -web::http::client:: -SocketContext::initiateRequest + +web::http::client:: +SocketContext::initiateRequest @@ -270,8 +270,8 @@ Node7->Node8 - - + + @@ -279,8 +279,8 @@ Node8->Node8 - - + + @@ -288,9 +288,9 @@ Node9 - -web::http::client:: -SocketContext::requestDelivered + +web::http::client:: +SocketContext::requestDelivered @@ -298,18 +298,18 @@ Node8->Node9 - - + + Node10 - - -web::http::client:: -SocketContext::requestPrepared + + +web::http::client:: +SocketContext::requestPrepared @@ -317,8 +317,27 @@ Node8->Node10 - - + + + + + + + +Node17 + + +web::http::client:: +SocketContext::responseDelivered + + + + + +Node8->Node17 + + + @@ -326,18 +345,18 @@ Node9->Node6 - - + + Node11 - - -web::http::client:: -Request::end + + +web::http::client:: +Request::requestPrepared @@ -345,173 +364,152 @@ Node10->Node11 - - + + Node12 - - -web::http::client:: -Request::send + + +web::http::client:: +Request::end - - -Node10->Node12 - - - + + +Node11->Node12 + + + - - -Node14 - - -web::http::client:: -Request::sendFile + + +Node13 + + +web::http::client:: +Request::send - - -Node10->Node14 - - - + + +Node11->Node13 + + + Node15 - - -web::http::client:: -Request::upgrade - - - - - -Node10->Node15 - - - - - - - - -Node13 - - -web::http::client:: -Request::send + + +web::http::client:: +Request::sendFile - - -Node12->Node13 - - - + + +Node11->Node15 + + + - - -Node19 - - -web::http::client:: -commands::SendHeaderCommand -::execute + + +Node16 + + +web::http::client:: +Request::upgrade - - -Node18->Node19 - - - + + +Node11->Node16 + + + - - -Node20 - - -web::http::client:: -Request::executeSendFile + + +Node14 + + +web::http::client:: +Request::send - - -Node18->Node20 - - - + + +Node13->Node14 + + + - - -Node22 - - -web::http::client:: -Request::executeUpgrade + + +Node18 + + +web::http::client:: +SocketContext::deliverResponse - - -Node18->Node22 - - - + + +Node17->Node18 + + + - - -Node21 - - -web::http::client:: -commands::SendFileCommand -::execute + + +Node19 + + +web::http::client:: +SocketContext::onDisconnected - - -Node20->Node21 - - - + + +Node18->Node19 + + + Node23 - - -web::http::client:: -commands::UpgradeCommand -::execute + + +web::http::client:: +commands::SendHeaderCommand +::execute @@ -519,187 +517,152 @@ Node22->Node23 - - + + - - -Node25 - - -web::http::server:: -Response::onSourceEof + + +Node24 + + +web::http::client:: +Request::executeSendFile - - -Node24->Node25 - - - + + +Node22->Node24 + + + Node26 - - -web::http::server:: -Response::onSourceError + + +web::http::client:: +Request::executeUpgrade - - -Node24->Node26 - - - + + +Node22->Node26 + + + - - -Node27 - - -web::http::server:: -Response::send + + +Node25 + + +web::http::client:: +commands::SendFileCommand +::execute - - -Node24->Node27 - - - + + +Node24->Node25 + + + - - -Node28 - - -express::Response::send + + +Node27 + + +web::http::client:: +commands::UpgradeCommand +::execute - - -Node27->Node28 - - - + + +Node26->Node27 + + + Node29 - - -web::http::server:: -Response::send + + +web::http::server:: +Response::onSourceEof - - -Node27->Node29 - - - + + +Node28->Node29 + + + Node30 - - -web::http::server:: -Response::end + + +web::http::server:: +Response::onSourceError - - -Node29->Node30 - - - - - - - - -Node37 - - -express::Response::send - - - - - -Node29->Node37 - - - + + +Node28->Node30 + + + Node31 - - -express::Response::end - - - - - -Node30->Node31 - - - + + +web::http::server:: +Response::send - - -Node35 - - -web::http::server:: -Response::upgrade - - - - - -Node30->Node35 - - - + + +Node28->Node31 + + + Node32 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +express::Response::send @@ -707,39 +670,37 @@ Node31->Node32 - - + + Node33 - - -express::middleware -::StaticMiddleware:: -instance + + +web::http::server:: +Response::send - - -Node32->Node33 - - - + + +Node31->Node33 + + + Node34 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +web::http::server:: +Response::end @@ -747,162 +708,151 @@ Node33->Node34 - - + + - - -Node36 - - -express::Response:: -upgrade + + +Node41 + + +express::Response::send - - -Node35->Node36 - - - + + +Node33->Node41 + + + - - -Node38 - - -express::Response::json + + +Node35 + + +express::Response::end - - -Node37->Node38 - - - + + +Node34->Node35 + + + Node39 - - -express::Response:: -sendStatus + + +web::http::server:: +Response::upgrade - - -Node37->Node39 - - - + + +Node34->Node39 + + + - - -Node39->Node32 - - - - - - - - -Node40 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +Node36 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node39->Node40 - - - + + +Node35->Node36 + + + - - -Node43 - - -express::RootRoute -::dispatch + + +Node37 + + +express::middleware +::StaticMiddleware:: +instance - - -Node39->Node43 - - - + + +Node36->Node37 + + + - - -Node55 - - -express::Response:: -redirect + + +Node38 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node39->Node55 - - - + + +Node37->Node38 + + + - - -Node41 - - -express::middleware -::BasicAuthentication -::instance + + +Node40 + + +express::Response:: +upgrade - - -Node40->Node41 - - - + + +Node39->Node40 + + + Node42 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +express::Response::json @@ -910,18 +860,47 @@ Node41->Node42 - - + + + + + + + +Node43 + + +express::Response:: +sendStatus + + + + + +Node41->Node43 + + + + + + + + +Node43->Node36 + + + Node44 - - -express::RootRoute -::dispatch + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -929,36 +908,77 @@ Node43->Node44 - - + + + + + + + +Node47 + + +express::RootRoute +::dispatch + + + + + +Node43->Node47 + + + + + + + + +Node59 + + +express::Response:: +redirect + + + + + +Node43->Node59 + + + Node45 - - -express::Controller -::next + + +express::middleware +::BasicAuthentication +::instance - - -Node43->Node45 - - - + + +Node44->Node45 + + + Node46 - - -express::Next::operator() + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -966,347 +986,403 @@ Node45->Node46 - - + + - - -Node46->Node32 - - - + + +Node48 + + +express::RootRoute +::dispatch - - -Node46->Node40 - - - + + +Node47->Node48 + + + - - -Node47 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node49 + + +express::Controller +::next - - -Node46->Node47 - - - + + +Node47->Node49 + + + Node50 - - -express::middleware -::VerboseRequest::VerboseRequest + + +express::Next::operator() - - -Node46->Node50 - - - + + +Node49->Node50 + + + - - -Node52 - - -express::middleware -::VHost::VHost + + +Node50->Node36 + + + - - -Node46->Node52 - - - + + +Node50->Node44 + + + - - -Node48 - - -express::middleware -::JsonMiddleware::instance + + +Node51 + + +express::middleware +::JsonMiddleware::JsonMiddleware - - -Node47->Node48 - - - + + +Node50->Node51 + + + - - -Node49 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node54 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node48->Node49 - - - + + +Node50->Node54 + + + - - -Node51 - - -express::middleware -::VerboseRequest::VerboseRequest + + +Node56 + + +express::middleware +::VHost::VHost - - -Node50->Node51 - - - + + +Node50->Node56 + + + - - -Node53 - - -express::middleware -::VHost::instance + + +Node52 + + +express::middleware +::JsonMiddleware::instance - - -Node52->Node53 - - - + + +Node51->Node52 + + + - - -Node54 - - -express::middleware -::VHost::VHost + + +Node53 + + +express::middleware +::JsonMiddleware::JsonMiddleware - - -Node53->Node54 - - - + + +Node52->Node53 + + + - - -Node55->Node32 - - - + + +Node55 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node56 - - -express::Response:: -redirect + + +Node54->Node55 + + + - - -Node55->Node56 - - - + + +Node57 + + +express::middleware +::VHost::instance - - -Node57->Node27 - - - + + +Node56->Node57 + + + Node58 - - -web::http::server:: -Response::onSourceData + + +express::middleware +::VHost::VHost - + Node57->Node58 - - - - - - - - -Node59 - - -express::Response:: -sendFragment + + + - - -Node57->Node59 - - - + + +Node59->Node36 + + + Node60 - - -web::http::server:: -Response::sendFragment + + +express::Response:: +redirect - - -Node57->Node60 - - - + + +Node59->Node60 + + + - - -Node60->Node24 - - - + + +Node61->Node31 + + + - - -Node61 - - -express::Response:: -sendFragment - - - - - -Node60->Node61 - - - + + +Node62 + + +web::http::server:: +Response::onSourceData - - -Node62->Node27 - - - + + +Node61->Node62 + + + Node63 - - -web::http::server:: -Response::onSourceConnect + + +express::Response:: +sendFragment - - -Node62->Node63 - - - + + +Node61->Node63 + + + Node64 - - -express::Response:: -sendHeader + + +web::http::server:: +Response::sendFragment + + + + + +Node61->Node64 + + + + + + + + +Node64->Node28 + + + + + + + + +Node65 + + +express::Response:: +sendFragment + + + + + +Node64->Node65 + + + + + + + + +Node66->Node31 + + + + + + + + +Node67 + + +web::http::server:: +Response::onSourceConnect + + + + + +Node66->Node67 + + + + + + + + +Node68 + + +express::Response:: +sendHeader - - -Node62->Node64 - - - + + +Node66->Node68 + + + diff --git a/html/classcore_1_1socket_1_1State-members.html b/html/classcore_1_1socket_1_1State-members.html index fd580b6dca..8ab049216a 100644 --- a/html/classcore_1_1socket_1_1State-members.html +++ b/html/classcore_1_1socket_1_1State-members.html @@ -123,7 +123,7 @@ diff --git a/html/classcore_1_1socket_1_1State.html b/html/classcore_1_1socket_1_1State.html index 2ad09b30e7..f3cdedd4a0 100644 --- a/html/classcore_1_1socket_1_1State.html +++ b/html/classcore_1_1socket_1_1State.html @@ -491,7 +491,7 @@

References errnum, errstr, file, line, State(), and state.

-

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init().

+

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init().

Here is the call graph for this function:

@@ -872,7 +872,7 @@

    - +

diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketAcceptor-members.html b/html/classcore_1_1socket_1_1stream_1_1SocketAcceptor-members.html index 9798d05f73..98c431dd6d 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketAcceptor-members.html +++ b/html/classcore_1_1socket_1_1stream_1_1SocketAcceptor-members.html @@ -103,72 +103,71 @@ Config typedefcore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >protected configcore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >protected descriptorEventPublishercore::DescriptorEventReceiverprivate - DescriptorEventReceiver(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiverprotected - DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiverprotected - destruct() finalcore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >protectedvirtual - disable()core::DescriptorEventReceiverprotected - dispatchEvent() finalcore::eventreceiver::AcceptEventReceiverprivatevirtual - enable(int fd)core::DescriptorEventReceiverprotected - enabledcore::DescriptorEventReceiverprivate - eventcore::EventReceiverprivate - eventCountercore::DescriptorEventReceiverprivate - EventReceiver(const std::string &name)core::EventReceiverprotected - getName() constcore::EventReceiverprotected - getRegisteredFd() constcore::DescriptorEventReceiverprotected - getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiverprotected - init()core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >protectedvirtual - initialTimeoutcore::DescriptorEventReceiverprivate - isEnabled() constcore::DescriptorEventReceiverprotected - isSuspended() constcore::DescriptorEventReceiverprotected - lastTriggeredcore::DescriptorEventReceiverprivate - localAddresscore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >private - maxInactivitycore::DescriptorEventReceiverprivate - observationCountercore::Observerprivate - observed()core::Observerprotected - observedFdcore::DescriptorEventReceiverprivate - Observer()=defaultcore::Observerprotected - Observer(const Observer &observer)core::Observerprotected + DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiverprotected + destruct() finalcore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >protectedvirtual + disable()core::DescriptorEventReceiverprotected + dispatchEvent() finalcore::eventreceiver::AcceptEventReceiverprivatevirtual + enable(int fd)core::DescriptorEventReceiverprotected + enabledcore::DescriptorEventReceiverprivate + eventcore::EventReceiverprivate + eventCountercore::DescriptorEventReceiverprivate + EventReceiver(const std::string &name)core::EventReceiverprotected + EventReceiver(EventReceiver &)=deletecore::EventReceiverprotected + EventReceiver(EventReceiver &&)=deletecore::EventReceiverprotected + getName() constcore::EventReceiverprotected + getRegisteredFd() constcore::DescriptorEventReceiverprotected + getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiverprotected + init()core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >protectedvirtual + initialTimeoutcore::DescriptorEventReceiverprivate + isEnabled() constcore::DescriptorEventReceiverprotected + isSuspended() constcore::DescriptorEventReceiverprotected + lastTriggeredcore::DescriptorEventReceiverprivate + localAddresscore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >private + maxInactivitycore::DescriptorEventReceiverprivate + observationCountercore::Observerprivate + observed()core::Observerprotected + observedFdcore::DescriptorEventReceiverprivate + Observer()=defaultcore::Observerprotected + Observer(Observer &)=deletecore::Observerprotected + Observer(Observer &&)=deletecore::Observerprotected onConnectcore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >protected onConnectedcore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >protected onDisconnectcore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >protected onEvent(const utils::Timeval &currentTime) finalcore::DescriptorEventReceiverprivatevirtual onSignal(int signum)core::DescriptorEventReceiverprivate onStatuscore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >protected - operator=(const SocketAcceptor &)=deletecore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT > - operator=(SocketAcceptor &&)=deletecore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT > - core::eventreceiver::AcceptEventReceiver::operator=(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiverprotected - PhysicalServerSocket typedefcore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >private - physicalServerSocketcore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >private - relax()core::EventReceiverprotected - resume()core::DescriptorEventReceiverprotected - setDisabled()core::DescriptorEventReceiverprivate - setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiverprotected - signalEvent(int signum) overridecore::eventreceiver::AcceptEventReceiverprivatevirtual - SocketAcceptor()=deletecore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT > - SocketAcceptor(SocketAcceptor &&)=deletecore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT > - SocketAcceptor(const std::shared_ptr< core::socket::stream::SocketContextFactory > &socketContextFactory, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus, const std::shared_ptr< Config > &config)core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT > - SocketAcceptor(const SocketAcceptor &socketAcceptor)core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT > - SocketAddress typedefcore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >protected - SocketConnection typedefcore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >protected - socketContextFactorycore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >protected - span()core::EventReceiverprotected - suspend()core::DescriptorEventReceiverprotected - suspendedcore::DescriptorEventReceiverprivate - timeoutEvent() finalcore::eventreceiver::AcceptEventReceiverprivatevirtual - triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - unObserved()core::Observerprotected - unobservedEvent() finalcore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >privatevirtual - useNextSocketAddress()=0core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >pure virtual - ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual - ~Observer()core::Observerprotectedvirtual - ~SocketAcceptor() overridecore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT > + operator=(EventReceiver &)=deletecore::EventReceiverprotected + operator=(EventReceiver &&)=deletecore::EventReceiverprotected + PhysicalServerSocket typedefcore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >private + physicalServerSocketcore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >private + relax()core::EventReceiverprotected + resume()core::DescriptorEventReceiverprotected + setDisabled()core::DescriptorEventReceiverprivate + setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiverprotected + signalEvent(int signum) overridecore::eventreceiver::AcceptEventReceiverprivatevirtual + SocketAcceptor(const std::shared_ptr< core::socket::stream::SocketContextFactory > &socketContextFactory, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus, const std::shared_ptr< Config > &config)core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT > + SocketAcceptor(const SocketAcceptor &socketAcceptor)core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT > + SocketAddress typedefcore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >protected + SocketConnection typedefcore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >protected + socketContextFactorycore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >protected + span()core::EventReceiverprotected + suspend()core::DescriptorEventReceiverprotected + suspendedcore::DescriptorEventReceiverprivate + timeoutEvent() finalcore::eventreceiver::AcceptEventReceiverprivatevirtual + triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + unObserved()core::Observerprotected + unobservedEvent() finalcore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >privatevirtual + useNextSocketAddress()=0core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >pure virtual + ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual + ~Observer()core::Observerprotectedvirtual + ~SocketAcceptor() overridecore::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >
diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketAcceptor.html b/html/classcore_1_1socket_1_1stream_1_1SocketAcceptor.html index b06ac0251b..58db2de3c4 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketAcceptor.html +++ b/html/classcore_1_1socket_1_1stream_1_1SocketAcceptor.html @@ -117,14 +117,6 @@ - - - - - - - - @@ -367,63 +359,8 @@

Constructor & Destructor Documentation

- -

◆ SocketAcceptor() [1/4]

- -
-
-
-template<typename PhysicalSocketServerT , typename ConfigT , template< typename PhysicalSocketServer > typename SocketConnectionT>
-

Public Member Functions

 SocketAcceptor ()=delete
 
 SocketAcceptor (SocketAcceptor &&)=delete
 
SocketAcceptoroperator= (const SocketAcceptor &)=delete
 
SocketAcceptoroperator= (SocketAcceptor &&)=delete
 
 SocketAcceptor (const std::shared_ptr< core::socket::stream::SocketContextFactory > &socketContextFactory, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus, const std::shared_ptr< Config > &config)
 
 SocketAcceptor (const SocketAcceptor &socketAcceptor)
- - - - -
- - - - - - - -
core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor ()
-
-delete
-
- -
- - -

◆ SocketAcceptor() [2/4]

- -
-
-
-template<typename PhysicalSocketServerT , typename ConfigT , template< typename PhysicalSocketServer > typename SocketConnectionT>
- - - - - -
- - - - - - - - -
core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor (SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT > && )
-
-delete
-
- -
-
-

◆ SocketAcceptor() [3/4]

+

◆ SocketAcceptor() [1/2]

@@ -488,15 +425,15 @@

103 }

static void atNextTick(const std::function< void(void)> &callBack)
- -
std::function< void(SocketConnection *)> onConnected
-
std::function< void(SocketConnection *)> onConnect
-
std::function< void(SocketConnection *)> onDisconnect
-
std::shared_ptr< core::socket::stream::SocketContextFactory > socketContextFactory
-
std::shared_ptr< Config > config
-
std::function< void(const SocketAddress &, core::socket::State)> onStatus
+ +
std::function< void(SocketConnection *)> onConnected
+
std::function< void(SocketConnection *)> onConnect
+
std::function< void(SocketConnection *)> onDisconnect
+
std::shared_ptr< core::socket::stream::SocketContextFactory > socketContextFactory
+
std::shared_ptr< Config > config
+
std::function< void(const SocketAddress &, core::socket::State)> onStatus
-

References core::EventReceiver::atNextTick(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::config, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onConnect, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onConnected, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onDisconnect, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onStatus, and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::socketContextFactory.

+

References core::EventReceiver::atNextTick(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::config, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onConnect, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onConnected, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onDisconnect, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onStatus, and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::socketContextFactory.

Here is the call graph for this function:
@@ -506,7 +443,7 @@

-

◆ SocketAcceptor() [4/4]

+

◆ SocketAcceptor() [2/2]

@@ -523,22 +460,20 @@

-

Definition at line 114 of file SocketAcceptor.hpp.

-
115 : core::Observer(socketAcceptor)
-
116 , core::eventreceiver::AcceptEventReceiver(socketAcceptor.config->getInstanceName() + " SocketAcceptor:", 0)
-
117 , socketContextFactory(socketAcceptor.socketContextFactory)
-
118 , onConnect(socketAcceptor.onConnect)
-
119 , onConnected(socketAcceptor.onConnected)
-
120 , onDisconnect(socketAcceptor.onDisconnect)
-
121 , onStatus(socketAcceptor.onStatus)
-
122 , config(socketAcceptor.config) {
-
123 atNextTick([this]() -> void {
-
124 init();
-
125 });
-
126 }
- +

Definition at line 106 of file SocketAcceptor.hpp.

+
107 : core::eventreceiver::AcceptEventReceiver(socketAcceptor.config->getInstanceName() + " SocketAcceptor:", 0)
+
108 , socketContextFactory(socketAcceptor.socketContextFactory)
+
109 , onConnect(socketAcceptor.onConnect)
+
110 , onConnected(socketAcceptor.onConnected)
+
111 , onDisconnect(socketAcceptor.onDisconnect)
+
112 , onStatus(socketAcceptor.onStatus)
+
113 , config(socketAcceptor.config) {
+
114 atNextTick([this]() -> void {
+
115 init();
+
116 });
+
117 }
-

References core::EventReceiver::atNextTick(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::config, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onConnect, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onConnected, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onDisconnect, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onStatus, and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::socketContextFactory.

+

References core::EventReceiver::atNextTick(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::config, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onConnect, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onConnected, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onDisconnect, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onStatus, and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::socketContextFactory.

Here is the call graph for this function:
@@ -572,9 +507,9 @@

-

Definition at line 132 of file SocketAcceptor.hpp.

-
132 {
-
133 }
+

Definition at line 120 of file SocketAcceptor.hpp.

+
120 {
+
121 }

@@ -606,44 +541,44 @@

core::eventreceiver::AcceptEventReceiver.

-

Definition at line 219 of file SocketAcceptor.hpp.

-
219 {
-
220 int acceptsPerTick = config->getAcceptsPerTick();
-
221
-
222 do {
-
223 PhysicalServerSocket connectedPhysicalSocket(physicalServerSocket.accept4(PhysicalServerSocket::Flags::NONBLOCK),
-
224 physicalServerSocket.getBindAddress());
-
225 if (connectedPhysicalSocket.isValid()) {
-
226 LOG(TRACE) << config->getInstanceName() << " accept: Success '" << connectedPhysicalSocket.getBindAddress().toString()
-
227 << "'";
-
228
-
229 SocketConnection* socketConnection =
-
230 new SocketConnection(config->getInstanceName(),
-
231 std::move(connectedPhysicalSocket),
- -
233 localAddress.toString(false),
-
234 getLocalSocketAddress<SocketAddress>(connectedPhysicalSocket, config),
-
235 getRemoteSocketAddress<SocketAddress>(connectedPhysicalSocket, config),
-
236 config->getReadTimeout(),
-
237 config->getWriteTimeout(),
-
238 config->getReadBlockSize(),
-
239 config->getWriteBlockSize(),
-
240 config->getTerminateTimeout());
-
241
-
242 onConnect(socketConnection);
-
243 onConnected(socketConnection);
-
244 } else if (errno != EINTR && errno != EAGAIN && errno != EWOULDBLOCK) {
-
245 PLOG(TRACE) << config->getInstanceName() << " accept: Failed '" << physicalServerSocket.getBindAddress().toString() << "'";
-
246 }
-
247 } while (--acceptsPerTick > 0);
-
248 }
+

Definition at line 207 of file SocketAcceptor.hpp.

+
207 {
+
208 int acceptsPerTick = config->getAcceptsPerTick();
+
209
+
210 do {
+
211 PhysicalServerSocket connectedPhysicalSocket(physicalServerSocket.accept4(PhysicalServerSocket::Flags::NONBLOCK),
+
212 physicalServerSocket.getBindAddress());
+
213 if (connectedPhysicalSocket.isValid()) {
+
214 LOG(TRACE) << config->getInstanceName() << " accept: Success '" << connectedPhysicalSocket.getBindAddress().toString()
+
215 << "'";
+
216
+
217 SocketConnection* socketConnection =
+
218 new SocketConnection(config->getInstanceName(),
+
219 std::move(connectedPhysicalSocket),
+ +
221 localAddress.toString(false),
+
222 getLocalSocketAddress<SocketAddress>(connectedPhysicalSocket, config),
+
223 getRemoteSocketAddress<SocketAddress>(connectedPhysicalSocket, config),
+
224 config->getReadTimeout(),
+
225 config->getWriteTimeout(),
+
226 config->getReadBlockSize(),
+
227 config->getWriteBlockSize(),
+
228 config->getTerminateTimeout());
+
229
+
230 onConnect(socketConnection);
+
231 onConnected(socketConnection);
+
232 } else if (errno != EINTR && errno != EAGAIN && errno != EWOULDBLOCK) {
+
233 PLOG(TRACE) << config->getInstanceName() << " accept: Failed '" << physicalServerSocket.getBindAddress().toString() << "'";
+
234 }
+
235 } while (--acceptsPerTick > 0);
+
236 }
SocketConnectionT< PhysicalServerSocket > SocketConnection
PhysicalSocketServerT PhysicalServerSocket
- -
PhysicalServerSocket physicalServerSocket
+ +
PhysicalServerSocket physicalServerSocket
-

References core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::config, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::localAddress, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onConnect, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onConnected, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onDisconnect, and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::physicalServerSocket.

+

References core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::config, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::localAddress, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onConnect, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onConnected, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onDisconnect, and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::physicalServerSocket.

@@ -674,9 +609,9 @@

38 {
40 }
- +

-

References core::DescriptorEventReceiver::disable().

+

References core::DescriptorEventReceiver::disable().

Referenced by core::eventreceiver::AcceptEventReceiver::timeoutEvent().

@@ -744,7 +679,7 @@

References core::EventReceiver::EventReceiver(), and core::EventReceiver::span().

-

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::responseDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

Here is the call graph for this function:
-
+

@@ -782,17 +717,17 @@

-

Definition at line 171 of file DescriptorEventReceiver.cpp.

-
171 {
-
172 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
-
173 timeoutEvent();
-
174 }
-
175 }
- +

Definition at line 168 of file DescriptorEventReceiver.cpp.

+
168 {
+
169 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
+
170 timeoutEvent();
+
171 }
+
172 }
+
virtual void timeoutEvent()=0
- +
-

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and core::DescriptorEventReceiver::timeoutEvent().

+

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and core::DescriptorEventReceiver::timeoutEvent().

Referenced by core::DescriptorEventPublisher::checkTimedOutEvents().

@@ -835,12 +770,12 @@

core::EventReceiver.

-

Definition at line 256 of file SocketAcceptor.hpp.

-
256 {
-
257 delete this;
-
258 }
+

Definition at line 244 of file SocketAcceptor.hpp.

+
244 {
+
245 delete this;
+
246 }
-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::unobservedEvent().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::unobservedEvent().

Here is the caller graph for this function:
@@ -872,25 +807,25 @@

-

Definition at line 93 of file DescriptorEventReceiver.cpp.

-
93 {
-
94 if (enabled) {
-
95 enabled = false;
- -
97 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
-
98 } else {
-
99 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
-
100 }
-
101 }
+

Definition at line 90 of file DescriptorEventReceiver.cpp.

+
90 {
+
91 if (enabled) {
+
92 enabled = false;
+ +
94 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
+
95 } else {
+
96 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
+
97 }
+
98 }
void disable(DescriptorEventReceiver *descriptorEventReceiver)
- - -
DescriptorEventPublisher & descriptorEventPublisher
+ + +
DescriptorEventPublisher & descriptorEventPublisher
const std::string & getName() const
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::disable(), core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), and core::DescriptorEventReceiver::observedFd.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::disable(), core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), and core::DescriptorEventReceiver::observedFd.

-

Referenced by core::eventreceiver::AcceptEventReceiver::acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::eventreceiver::ConnectEventReceiver::connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::eof(), core::eventreceiver::ExceptionalConditionEventReceiver::outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSink::readEvent(), core::eventreceiver::ReadEventReceiver::readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), core::eventreceiver::AcceptEventReceiver::signalEvent(), core::eventreceiver::ConnectEventReceiver::signalEvent(), core::eventreceiver::ExceptionalConditionEventReceiver::signalEvent(), core::eventreceiver::ReadEventReceiver::signalEvent(), core::eventreceiver::WriteEventReceiver::signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), core::pipe::PipeSource::writeEvent(), core::eventreceiver::WriteEventReceiver::writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

+

Referenced by core::eventreceiver::AcceptEventReceiver::acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::eventreceiver::ConnectEventReceiver::connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::eof(), core::eventreceiver::ExceptionalConditionEventReceiver::outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSink::readEvent(), core::eventreceiver::ReadEventReceiver::readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), core::eventreceiver::AcceptEventReceiver::signalEvent(), core::eventreceiver::ConnectEventReceiver::signalEvent(), core::eventreceiver::ExceptionalConditionEventReceiver::signalEvent(), core::eventreceiver::ReadEventReceiver::signalEvent(), core::eventreceiver::WriteEventReceiver::signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), core::pipe::PipeSource::writeEvent(), core::eventreceiver::WriteEventReceiver::writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

Here is the call graph for this function:
@@ -968,30 +903,30 @@

-

Definition at line 70 of file DescriptorEventReceiver.cpp.

-
70 {
- -
72 if (!enabled) {
-
73 observedFd = fd;
-
74
-
75 enabled = true;
- -
77 } else {
-
78 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
-
79 }
-
80 } else {
-
81 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
-
82 }
-
83
-
84 return enabled;
-
85 }
+

Definition at line 67 of file DescriptorEventReceiver.cpp.

+
67 {
+ +
69 if (!enabled) {
+
70 observedFd = fd;
+
71
+
72 enabled = true;
+ +
74 } else {
+
75 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
+
76 }
+
77 } else {
+
78 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
+
79 }
+
80
+
81 return enabled;
+
82 }
void enable(DescriptorEventReceiver *descriptorEventReceiver)
State eventLoopState()
Definition State.cpp:30
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::enable(), core::DescriptorEventReceiver::enabled, core::eventLoopState(), core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, and core::STOPPING.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::enable(), core::DescriptorEventReceiver::enabled, core::eventLoopState(), core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, and core::STOPPING.

-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::pipe::PipeSink::PipeSink(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::pipe::PipeSink::PipeSink(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

Here is the call graph for this function:
@@ -1033,9 +968,9 @@

66 return event.getName();

67 }
-

References core::EventReceiver::event, and core::Event::getName().

+

References core::EventReceiver::event, and core::Event::getName().

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

Here is the call graph for this function:
@@ -1072,12 +1007,12 @@

-

Definition at line 66 of file DescriptorEventReceiver.cpp.

-
66 {
-
67 return observedFd;
-
68 }
+

Definition at line 63 of file DescriptorEventReceiver.cpp.

+
63 {
+
64 return observedFd;
+
65 }
-

References core::DescriptorEventReceiver::observedFd.

+

References core::DescriptorEventReceiver::observedFd.

Referenced by core::DescriptorEventPublisher::enable(), core::epoll::DescriptorEventPublisher::EPollEvents::muxAdd(), core::select::DescriptorEventPublisher::muxAdd(), core::poll::PollFdsManager::muxAdd(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOff(), core::select::DescriptorEventPublisher::muxOff(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOn(), core::select::DescriptorEventPublisher::muxOn(), core::socket::stream::legacy::SocketReader::read(), core::pipe::PipeSink::readEvent(), core::socket::stream::legacy::SocketWriter::write(), core::pipe::PipeSource::writeEvent(), core::pipe::PipeSink::~PipeSink(), and core::pipe::PipeSource::~PipeSource().

@@ -1112,12 +1047,12 @@

-

Definition at line 152 of file DescriptorEventReceiver.cpp.

-
152 {
-
153 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
-
154 }
+

Definition at line 149 of file DescriptorEventReceiver.cpp.

+
149 {
+
150 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
+
151 }
-

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

+

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

Referenced by core::DescriptorEventPublisher::getNextTimeout().

@@ -1160,99 +1095,99 @@

core::socket::stream::tls::SocketAcceptor< PhysicalSocketServerT, ConfigT >.

-

Definition at line 136 of file SocketAcceptor.hpp.

-
136 {
-
137 if (!config->getDisabled()) {
-
138 try {
-
139 LOG(TRACE) << config->getInstanceName() << ": Starting";
-
140
-
141 localAddress = config->Local::getSocketAddress();
-
142
-
143 core::socket::State state = core::socket::STATE_OK;
-
144
-
145 if (physicalServerSocket.open(config->getSocketOptions(), PhysicalServerSocket::Flags::NONBLOCK) < 0) {
-
146 switch (errno) {
-
147 case EMFILE:
-
148 case ENFILE:
-
149 case ENOBUFS:
-
150 case ENOMEM:
-
151 state = core::socket::STATE_ERROR;
-
152 PLOG(TRACE) << config->getInstanceName() << " open: '" << localAddress.toString() << "'";
-
153 break;
-
154 default:
-
155 state = core::socket::STATE_FATAL;
-
156 PLOG(TRACE) << config->getInstanceName() << " open: '" << localAddress.toString() << "'";
-
157 break;
-
158 }
-
159 } else if (physicalServerSocket.bind(localAddress) < 0) {
-
160 switch (errno) {
-
161 case EADDRINUSE:
-
162 state = core::socket::STATE_ERROR;
-
163 PLOG(TRACE) << config->getInstanceName() << " bind: '" << localAddress.toString() << "'";
-
164 break;
-
165 default:
-
166 state = core::socket::STATE_FATAL;
-
167 PLOG(TRACE) << config->getInstanceName() << " bind: '" << localAddress.toString() << "'";
-
168 break;
-
169 }
-
170 } else if (physicalServerSocket.listen(config->getBacklog()) < 0) {
-
171 switch (errno) {
-
172 case EADDRINUSE:
-
173 state = core::socket::STATE_ERROR;
-
174 PLOG(TRACE) << config->getInstanceName() << " listen: '" << localAddress.toString() << "'";
-
175 break;
-
176 default:
-
177 state = core::socket::STATE_FATAL;
-
178 PLOG(TRACE) << config->getInstanceName() << " listen: '" << localAddress.toString() << "'";
-
179 break;
-
180 }
-
181 } else {
-
182 if (enable(physicalServerSocket.getFd())) {
-
183 LOG(TRACE) << config->getInstanceName() << " enabled: '" << localAddress.toString() << "' success";
-
184 } else {
-
185 LOG(TRACE) << config->getInstanceName() << " enabled: '" << localAddress.toString() << "' failed";
-
186 }
-
187 }
-
188
-
189 if (localAddress.useNext()) {
-
190 LOG(TRACE) << config->getInstanceName() << ": Using next SocketAddress '"
-
191 << config->Local::getSocketAddress().toString() << "'";
-
192
- -
194
- -
196 } else {
-
197 onStatus(localAddress, state);
-
198 }
-
199
-
200 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) {
-
201 LOG(TRACE) << config->getInstanceName() << ": " << badSocketAddress.what();
-
202
-
203 onStatus({}, core::socket::STATE(badSocketAddress.getState(), badSocketAddress.getErrnum(), badSocketAddress.what()));
-
204 }
-
205 } else {
-
206 LOG(TRACE) << config->getInstanceName() << ": Disabled";
-
207
-
208 onStatus({}, core::socket::STATE_DISABLED);
-
209 }
-
210
-
211 if (isEnabled()) {
- -
213 } else {
-
214 destruct();
-
215 }
-
216 }
-
void setTimeout(const utils::Timeval &timeout)
- - +

Definition at line 124 of file SocketAcceptor.hpp.

+
124 {
+
125 if (!config->getDisabled()) {
+
126 try {
+
127 LOG(TRACE) << config->getInstanceName() << ": Starting";
+
128
+
129 localAddress = config->Local::getSocketAddress();
+
130
+
131 core::socket::State state = core::socket::STATE_OK;
+
132
+
133 if (physicalServerSocket.open(config->getSocketOptions(), PhysicalServerSocket::Flags::NONBLOCK) < 0) {
+
134 switch (errno) {
+
135 case EMFILE:
+
136 case ENFILE:
+
137 case ENOBUFS:
+
138 case ENOMEM:
+
139 state = core::socket::STATE_ERROR;
+
140 PLOG(TRACE) << config->getInstanceName() << " open: '" << localAddress.toString() << "'";
+
141 break;
+
142 default:
+
143 state = core::socket::STATE_FATAL;
+
144 PLOG(TRACE) << config->getInstanceName() << " open: '" << localAddress.toString() << "'";
+
145 break;
+
146 }
+
147 } else if (physicalServerSocket.bind(localAddress) < 0) {
+
148 switch (errno) {
+
149 case EADDRINUSE:
+
150 state = core::socket::STATE_ERROR;
+
151 PLOG(TRACE) << config->getInstanceName() << " bind: '" << localAddress.toString() << "'";
+
152 break;
+
153 default:
+
154 state = core::socket::STATE_FATAL;
+
155 PLOG(TRACE) << config->getInstanceName() << " bind: '" << localAddress.toString() << "'";
+
156 break;
+
157 }
+
158 } else if (physicalServerSocket.listen(config->getBacklog()) < 0) {
+
159 switch (errno) {
+
160 case EADDRINUSE:
+
161 state = core::socket::STATE_ERROR;
+
162 PLOG(TRACE) << config->getInstanceName() << " listen: '" << localAddress.toString() << "'";
+
163 break;
+
164 default:
+
165 state = core::socket::STATE_FATAL;
+
166 PLOG(TRACE) << config->getInstanceName() << " listen: '" << localAddress.toString() << "'";
+
167 break;
+
168 }
+
169 } else {
+
170 if (enable(physicalServerSocket.getFd())) {
+
171 LOG(TRACE) << config->getInstanceName() << " enabled: '" << localAddress.toString() << "' success";
+
172 } else {
+
173 LOG(TRACE) << config->getInstanceName() << " enabled: '" << localAddress.toString() << "' failed";
+
174 }
+
175 }
+
176
+
177 if (localAddress.useNext()) {
+
178 LOG(TRACE) << config->getInstanceName() << ": Using next SocketAddress '"
+
179 << config->Local::getSocketAddress().toString() << "'";
+
180
+ +
182
+ +
184 } else {
+
185 onStatus(localAddress, state);
+
186 }
+
187
+
188 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) {
+
189 LOG(TRACE) << config->getInstanceName() << ": " << badSocketAddress.what();
+
190
+
191 onStatus({}, core::socket::STATE(badSocketAddress.getState(), badSocketAddress.getErrnum(), badSocketAddress.what()));
+
192 }
+
193 } else {
+
194 LOG(TRACE) << config->getInstanceName() << ": Disabled";
+
195
+
196 onStatus({}, core::socket::STATE_DISABLED);
+
197 }
+
198
+
199 if (isEnabled()) {
+ +
201 } else {
+
202 destruct();
+
203 }
+
204 }
+
void setTimeout(const utils::Timeval &timeout)
+ +
static constexpr int NO_RETRY
Definition State.h:39
- +
-

References core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::config, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::destruct(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::localAddress, core::socket::State::NO_RETRY, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onStatus, core::socket::State::operator|(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::physicalServerSocket, core::DescriptorEventReceiver::setTimeout(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::useNextSocketAddress().

+

References core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::config, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::destruct(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::localAddress, core::socket::State::NO_RETRY, core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::onStatus, core::socket::State::operator|(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::physicalServerSocket, core::DescriptorEventReceiver::setTimeout(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::useNextSocketAddress().

-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor().

Here is the call graph for this function:
@@ -1289,14 +1224,14 @@

-

Definition at line 107 of file DescriptorEventReceiver.cpp.

-
107 {
-
108 return enabled;
-
109 }
+

Definition at line 104 of file DescriptorEventReceiver.cpp.

+
104 {
+
105 return enabled;
+
106 }
-

References core::DescriptorEventReceiver::enabled.

+

References core::DescriptorEventReceiver::enabled.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

Here is the caller graph for this function:
@@ -1328,15 +1263,15 @@

-

Definition at line 138 of file DescriptorEventReceiver.cpp.

-
138 {
-
139 return suspended;
-
140 }
- +

Definition at line 135 of file DescriptorEventReceiver.cpp.

+
135 {
+
136 return suspended;
+
137 }
+
-

References core::DescriptorEventReceiver::suspended.

+

References core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::pipe::PipeSource::send().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::pipe::PipeSource::send().

Here is the caller graph for this function:
@@ -1368,15 +1303,15 @@

-

Definition at line 41 of file DescriptorEventReceiver.cpp.

-
41 {
- -
43 }
- +

Definition at line 38 of file DescriptorEventReceiver.cpp.

+
38 {
+ +
40 }
+
-

References core::Observer::observationCounter.

+

References core::Observer::observationCounter.

-

Referenced by core::DescriptorEventReceiver::setEnabled().

+

Referenced by core::DescriptorEventReceiver::setEnabled().

Here is the caller graph for this function:
@@ -1411,18 +1346,18 @@

core::EventReceiver.

-

Definition at line 156 of file DescriptorEventReceiver.cpp.

-
156 {
-
157 eventCounter++;
-
158 triggered(currentTime);
-
159
- -
161 }
-
void triggered(const utils::Timeval &currentTime)
+

Definition at line 153 of file DescriptorEventReceiver.cpp.

+
153 {
+
154 eventCounter++;
+
155 triggered(currentTime);
+
156
+ +
158 }
+
void triggered(const utils::Timeval &currentTime)
virtual void dispatchEvent()=0
- +
-

References core::DescriptorEventReceiver::dispatchEvent(), core::DescriptorEventReceiver::eventCounter, and core::DescriptorEventReceiver::triggered().

+

References core::DescriptorEventReceiver::dispatchEvent(), core::DescriptorEventReceiver::eventCounter, and core::DescriptorEventReceiver::triggered().

Here is the call graph for this function:
@@ -1455,10 +1390,10 @@

-

Definition at line 163 of file DescriptorEventReceiver.cpp.

-
163 {
-
164 signalEvent(signum);
-
165 }
+

Definition at line 160 of file DescriptorEventReceiver.cpp.

+
160 {
+
161 signalEvent(signum);
+
162 }
virtual void signalEvent(int signum)=0

References core::DescriptorEventReceiver::signalEvent().

@@ -1475,62 +1410,6 @@

-
-

- -

◆ operator=() [1/2]

- -
-
-
-template<typename PhysicalSocketServerT , typename ConfigT , template< typename PhysicalSocketServer > typename SocketConnectionT>
- - - - - -
- - - - - - - - -
SocketAcceptor & core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::operator= (const SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT > & )
-
-delete
-
- -
-
- -

◆ operator=() [2/2]

- -
-
-
-template<typename PhysicalSocketServerT , typename ConfigT , template< typename PhysicalSocketServer > typename SocketConnectionT>
- - - - - -
- - - - - - - - -
SocketAcceptor & core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::operator= (SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT > && )
-
-delete
-
-
@@ -1561,7 +1440,7 @@

62 event.relax();

63 }

-

References core::EventReceiver::event, and core::Event::relax().

+

References core::EventReceiver::event, and core::Event::relax().

Here is the call graph for this function:
@@ -1593,26 +1472,26 @@

-

Definition at line 124 of file DescriptorEventReceiver.cpp.

-
124 {
-
125 if (enabled) {
-
126 if (suspended) {
-
127 suspended = false;
- - -
130 } else {
-
131 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
-
132 }
-
133 } else {
-
134 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
-
135 }
-
136 }
+

Definition at line 121 of file DescriptorEventReceiver.cpp.

+
121 {
+
122 if (enabled) {
+
123 if (suspended) {
+
124 suspended = false;
+ + +
127 } else {
+
128 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
+
129 }
+
130 } else {
+
131 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
+
132 }
+
133 }
void resume(DescriptorEventReceiver *descriptorEventReceiver)
static Timeval currentTime()
Definition Timeval.cpp:54
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and core::DescriptorEventReceiver::suspended.

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSource::send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSource::send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

Here is the call graph for this function:
@@ -1649,13 +1528,13 @@

-

Definition at line 103 of file DescriptorEventReceiver.cpp.

-
103 {
-
104 unObserved();
-
105 }
- +

Definition at line 100 of file DescriptorEventReceiver.cpp.

+
100 {
+
101 unObserved();
+
102 }
+
-

References core::Observer::unObserved().

+

References core::Observer::unObserved().

Here is the call graph for this function:
@@ -1688,15 +1567,15 @@

-

Definition at line 87 of file DescriptorEventReceiver.cpp.

-
87 {
-
88 lastTriggered = currentTime;
-
89
-
90 observed();
-
91 }
- +

Definition at line 84 of file DescriptorEventReceiver.cpp.

+
84 {
+
85 lastTriggered = currentTime;
+
86
+
87 observed();
+
88 }
+
-

References core::DescriptorEventReceiver::lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

Referenced by core::DescriptorEventPublisher::enable().

@@ -1736,22 +1615,22 @@

-

Definition at line 142 of file DescriptorEventReceiver.cpp.

-
142 {
-
143 if (timeout == TIMEOUT::DEFAULT) {
- -
145 } else {
-
146 this->maxInactivity = timeout;
-
147 }
-
148
- -
150 }
- - +

Definition at line 139 of file DescriptorEventReceiver.cpp.

+
139 {
+
140 if (timeout == TIMEOUT::DEFAULT) {
+ +
142 } else {
+
143 this->maxInactivity = timeout;
+
144 }
+
145
+ +
147 }
+ +
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, core::DescriptorEventReceiver::initialTimeout, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and core::DescriptorEventReceiver::triggered().

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, core::DescriptorEventReceiver::initialTimeout, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and core::DescriptorEventReceiver::triggered().

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

Here is the call graph for this function:
@@ -1796,7 +1675,7 @@

51 disable();

52 }
-

References core::DescriptorEventReceiver::disable().

+

References core::DescriptorEventReceiver::disable().

Here is the call graph for this function:
@@ -1833,9 +1712,9 @@

58 event.span();

59 }

-

References core::EventReceiver::event, and core::Event::span().

+

References core::EventReceiver::event, and core::Event::span().

-

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

+

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

Here is the call graph for this function:
-
+
@@ -1872,24 +1751,24 @@

-

Definition at line 111 of file DescriptorEventReceiver.cpp.

-
111 {
-
112 if (enabled) {
-
113 if (!suspended) {
-
114 suspended = true;
- -
116 } else {
-
117 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
-
118 }
-
119 } else {
-
120 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
-
121 }
-
122 }
+

Definition at line 108 of file DescriptorEventReceiver.cpp.

+
108 {
+
109 if (enabled) {
+
110 if (!suspended) {
+
111 suspended = true;
+ +
113 } else {
+
114 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
+
115 }
+
116 } else {
+
117 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
+
118 }
+
119 }
void suspend(DescriptorEventReceiver *descriptorEventReceiver)
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, core::DescriptorEventPublisher::suspend(), and core::DescriptorEventReceiver::suspended.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, core::DescriptorEventPublisher::suspend(), and core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and core::pipe::PipeSource::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and core::pipe::PipeSource::writeEvent().

Here is the call graph for this function:
@@ -1967,14 +1846,14 @@

-

Definition at line 167 of file DescriptorEventReceiver.cpp.

-
167 {
-
168 lastTriggered = currentTime;
-
169 }
+

Definition at line 164 of file DescriptorEventReceiver.cpp.

+
164 {
+
165 lastTriggered = currentTime;
+
166 }
-

References core::DescriptorEventReceiver::lastTriggered, and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::lastTriggered, and utils::Timeval::operator=().

-

Referenced by core::DescriptorEventReceiver::onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::DescriptorEventReceiver::setTimeout().

Here is the call graph for this function:
@@ -2011,19 +1890,19 @@

-

Definition at line 45 of file DescriptorEventReceiver.cpp.

-
45 {
- -
47
-
48 if (observationCounter == 0) {
- -
50 }
-
51 }
+

Definition at line 42 of file DescriptorEventReceiver.cpp.

+
42 {
+ +
44
+
45 if (observationCounter == 0) {
+ +
47 }
+
48 }
virtual void unobservedEvent()=0
-

References core::Observer::observationCounter, and core::Observer::unobservedEvent().

+

References core::Observer::observationCounter, and core::Observer::unobservedEvent().

-

Referenced by core::DescriptorEventReceiver::setDisabled().

+

Referenced by core::DescriptorEventReceiver::setDisabled().

Here is the call graph for this function:
@@ -2064,12 +1943,12 @@

core::Observer.

-

Definition at line 251 of file SocketAcceptor.hpp.

-
251 {
-
252 destruct();
-
253 }
+

Definition at line 239 of file SocketAcceptor.hpp.

+
239 {
+
240 destruct();
+
241 }
-

References core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::destruct().

+

References core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::destruct().

Here is the call graph for this function:
@@ -2163,9 +2042,9 @@

-

Definition at line 104 of file DescriptorEventReceiver.h.

+

Definition at line 101 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -2189,9 +2068,9 @@

-

Definition at line 108 of file DescriptorEventReceiver.h.

+

Definition at line 105 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -2215,7 +2094,7 @@

-

Definition at line 59 of file EventReceiver.h.

+

Definition at line 65 of file EventReceiver.h.

Referenced by core::EventReceiver::EventReceiver(), core::EventReceiver::getName(), core::EventReceiver::relax(), and core::EventReceiver::span().

@@ -2241,9 +2120,9 @@

-

Definition at line 115 of file DescriptorEventReceiver.h.

+

Definition at line 112 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::onEvent().

+

Referenced by core::DescriptorEventReceiver::onEvent().

@@ -2267,9 +2146,9 @@

-

Definition at line 113 of file DescriptorEventReceiver.h.

+

Definition at line 110 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), and core::DescriptorEventReceiver::setTimeout().

@@ -2293,9 +2172,9 @@

-

Definition at line 111 of file DescriptorEventReceiver.h.

+

Definition at line 108 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::resume(), core::DescriptorEventReceiver::setEnabled(), and core::DescriptorEventReceiver::triggered().

+

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::resume(), core::DescriptorEventReceiver::setEnabled(), and core::DescriptorEventReceiver::triggered().

@@ -2321,9 +2200,9 @@

-

Definition at line 82 of file SocketAcceptor.h.

+

Definition at line 76 of file SocketAcceptor.h.

-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::acceptEvent(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::acceptEvent(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init().

@@ -2347,9 +2226,9 @@

-

Definition at line 112 of file DescriptorEventReceiver.h.

+

Definition at line 109 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::getTimeout(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::getTimeout(), and core::DescriptorEventReceiver::setTimeout().

@@ -2373,9 +2252,9 @@

-

Definition at line 53 of file DescriptorEventReceiver.h.

+

Definition at line 54 of file DescriptorEventReceiver.h.

-

Referenced by core::Observer::observed(), and core::Observer::unObserved().

+

Referenced by core::Observer::observed(), and core::Observer::unObserved().

@@ -2399,9 +2278,9 @@

-

Definition at line 106 of file DescriptorEventReceiver.h.

+

Definition at line 103 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -2427,9 +2306,9 @@

-

Definition at line 87 of file SocketAcceptor.h.

+

Definition at line 81 of file SocketAcceptor.h.

-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::acceptEvent(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::acceptEvent(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor().

@@ -2455,9 +2334,9 @@

-

Definition at line 88 of file SocketAcceptor.h.

+

Definition at line 82 of file SocketAcceptor.h.

-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::acceptEvent(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::acceptEvent(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor().

@@ -2483,9 +2362,9 @@

-

Definition at line 89 of file SocketAcceptor.h.

+

Definition at line 83 of file SocketAcceptor.h.

-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::acceptEvent(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::acceptEvent(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor().

@@ -2511,9 +2390,9 @@

-

Definition at line 91 of file SocketAcceptor.h.

+

Definition at line 85 of file SocketAcceptor.h.

-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor().

@@ -2539,9 +2418,9 @@

-

Definition at line 81 of file SocketAcceptor.h.

+

Definition at line 75 of file SocketAcceptor.h.

-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::acceptEvent(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::acceptEvent(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init().

@@ -2567,9 +2446,9 @@

-

Definition at line 85 of file SocketAcceptor.h.

+

Definition at line 79 of file SocketAcceptor.h.

-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), and core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor().

@@ -2593,9 +2472,9 @@

-

Definition at line 109 of file DescriptorEventReceiver.h.

+

Definition at line 106 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -2609,7 +2488,7 @@

diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketAcceptor.js b/html/classcore_1_1socket_1_1stream_1_1SocketAcceptor.js index 4256769835..21717b124b 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketAcceptor.js +++ b/html/classcore_1_1socket_1_1stream_1_1SocketAcceptor.js @@ -4,8 +4,6 @@ var classcore_1_1socket_1_1stream_1_1SocketAcceptor = [ "PhysicalServerSocket", "classcore_1_1socket_1_1stream_1_1SocketAcceptor.html#a3b4f3f613d3f4993299838686d06d98b", null ], [ "SocketAddress", "classcore_1_1socket_1_1stream_1_1SocketAcceptor.html#ac8e66958cca7114bb029a641025f53ed", null ], [ "SocketConnection", "classcore_1_1socket_1_1stream_1_1SocketAcceptor.html#a1f87893a9caf32deafd285f743ca5e82", null ], - [ "SocketAcceptor", "classcore_1_1socket_1_1stream_1_1SocketAcceptor.html#ae36510428986358b97c7e730cc55a295", null ], - [ "SocketAcceptor", "classcore_1_1socket_1_1stream_1_1SocketAcceptor.html#adbae4d9162fa887881e18103f8ad87fd", null ], [ "SocketAcceptor", "classcore_1_1socket_1_1stream_1_1SocketAcceptor.html#a00b30294335a23f43d31c5ba78fc820a", null ], [ "SocketAcceptor", "classcore_1_1socket_1_1stream_1_1SocketAcceptor.html#a53978288346040b061c00691d6c6d118", null ], [ "~SocketAcceptor", "classcore_1_1socket_1_1stream_1_1SocketAcceptor.html#adfd11d9aa9655f80be63eabbe9062256", null ], @@ -26,8 +24,6 @@ var classcore_1_1socket_1_1stream_1_1SocketAcceptor = [ "observed", "classcore_1_1socket_1_1stream_1_1SocketAcceptor.html#aeff595f74f25efea85406cf700e13550", null ], [ "onEvent", "classcore_1_1socket_1_1stream_1_1SocketAcceptor.html#aa0c0922c02cd86d913987035fe3a8f80", null ], [ "onSignal", "classcore_1_1socket_1_1stream_1_1SocketAcceptor.html#a4f774310060571d7d0c1cb53129333e1", null ], - [ "operator=", "classcore_1_1socket_1_1stream_1_1SocketAcceptor.html#a04bbceedeb61904d4f36613fcce76f7e", null ], - [ "operator=", "classcore_1_1socket_1_1stream_1_1SocketAcceptor.html#acb12600a7297923b72681e71cfac6657", null ], [ "relax", "classcore_1_1socket_1_1stream_1_1SocketAcceptor.html#a748159baa69a639df53ac5675ae8425f", null ], [ "resume", "classcore_1_1socket_1_1stream_1_1SocketAcceptor.html#afa983ac6b0ba8f28ce4c0fc16cd914f8", null ], [ "setDisabled", "classcore_1_1socket_1_1stream_1_1SocketAcceptor.html#a53b16eb14da654bfaf9a7e28e3024ff1", null ], diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketClient-members.html b/html/classcore_1_1socket_1_1stream_1_1SocketClient-members.html index c75e26131d..3e1eb584aa 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketClient-members.html +++ b/html/classcore_1_1socket_1_1stream_1_1SocketClient-members.html @@ -134,7 +134,7 @@ diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketClient.html b/html/classcore_1_1socket_1_1stream_1_1SocketClient.html index 68ae0f57f0..1e5b832b6f 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketClient.html +++ b/html/classcore_1_1socket_1_1stream_1_1SocketClient.html @@ -191,7 +191,7 @@
template<typename SocketConnectorT, typename SocketContextFactoryT, typename... Args>
requires std::is_base_of_v<core::socket::stream::SocketContextFactory, SocketContextFactoryT>
class core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >
-

Definition at line 44 of file SocketClient.h.

+

Definition at line 45 of file SocketClient.h.

Member Typedef Documentation

◆ Config

@@ -231,7 +231,7 @@

-

Definition at line 58 of file SocketClient.h.

+

Definition at line 59 of file SocketClient.h.

@@ -249,7 +249,7 @@

-

Definition at line 57 of file SocketClient.h.

+

Definition at line 58 of file SocketClient.h.

@@ -278,7 +278,7 @@

-

Definition at line 51 of file SocketClient.h.

+

Definition at line 52 of file SocketClient.h.

@@ -304,7 +304,7 @@

-

Definition at line 52 of file SocketClient.h.

+

Definition at line 53 of file SocketClient.h.

@@ -330,7 +330,7 @@

-

Definition at line 54 of file SocketClient.h.

+

Definition at line 55 of file SocketClient.h.

@@ -389,22 +389,22 @@

-

Definition at line 60 of file SocketClient.h.

-
65 : Super(name)
-
66 , socketContextFactory(std::make_shared<SocketContextFactory>(args...))
- - - -
70 }
-
const std::shared_ptr< SocketContextFactory > socketContextFactory
-
std::function< void(SocketConnection *)> onConnect
-
std::function< void(SocketConnection *)> onDisconnect
-
core::socket::Socket< typename SocketConnector::Config > Super
-
std::function< void(SocketConnection *)> onConnected
+

Definition at line 61 of file SocketClient.h.

+
66 : Super(name)
+
67 , socketContextFactory(std::make_shared<SocketContextFactory>(args...))
+ + + +
71 }
+
const std::shared_ptr< SocketContextFactory > socketContextFactory
+
std::function< void(SocketConnection *)> onConnect
+
std::function< void(SocketConnection *)> onDisconnect
+
core::socket::Socket< typename SocketConnector::Config > Super
+
std::function< void(SocketConnection *)> onConnected
-

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::onConnect, core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::onConnected, core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::onDisconnect, and core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

+

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::onConnect, core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::onConnected, core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::onDisconnect, and core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

-

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

+

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

Here is the call graph for this function:
@@ -466,14 +466,14 @@

-

Definition at line 72 of file SocketClient.h.

-
-
77 }
-
SocketClient(const std::string &name, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, const Args &... args)
+

Definition at line 73 of file SocketClient.h.

+
+
78 }
+
SocketClient(const std::string &name, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, const Args &... args)
-

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

+

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

-

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

+

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

Here is the call graph for this function:
@@ -523,31 +523,31 @@

-

Definition at line 79 of file SocketClient.h.

-
-
81 name,
-
82 [name](SocketConnection* socketConnection) -> void { // onConnect
-
83 LOG(INFO) << "OnConnect " << name;
-
84
-
85 LOG(INFO) << "\tLocal: " << socketConnection->getLocalAddress().toString();
-
86 LOG(INFO) << "\tPeer: " << socketConnection->getRemoteAddress().toString();
-
87 },
-
88 [name]([[maybe_unused]] SocketConnection* socketConnection) -> void { // onConnected
-
89 LOG(INFO) << "OnConnected " << name;
-
90 },
-
91 [name](SocketConnection* socketConnection) -> void { // onDisconnect
-
92 LOG(INFO) << "OnDisconnect " << name;
-
93
-
94 LOG(INFO) << "\tLocal: " << socketConnection->getLocalAddress().toString();
-
95 LOG(INFO) << "\tPeer: " << socketConnection->getRemoteAddress().toString();
-
96 },
-
97 args...) {
-
98 }
-
typename SocketConnector::SocketConnection SocketConnection
+

Definition at line 80 of file SocketClient.h.

+
+
82 name,
+
83 [name](SocketConnection* socketConnection) -> void { // onConnect
+
84 LOG(INFO) << "OnConnect " << name;
+
85
+
86 LOG(INFO) << "\tLocal: " << socketConnection->getLocalAddress().toString();
+
87 LOG(INFO) << "\tPeer: " << socketConnection->getRemoteAddress().toString();
+
88 },
+
89 [name]([[maybe_unused]] SocketConnection* socketConnection) -> void { // onConnected
+
90 LOG(INFO) << "OnConnected " << name;
+
91 },
+
92 [name](SocketConnection* socketConnection) -> void { // onDisconnect
+
93 LOG(INFO) << "OnDisconnect " << name;
+
94
+
95 LOG(INFO) << "\tLocal: " << socketConnection->getLocalAddress().toString();
+
96 LOG(INFO) << "\tPeer: " << socketConnection->getRemoteAddress().toString();
+
97 },
+
98 args...) {
+
99 }
+
typename SocketConnector::SocketConnection SocketConnection
-

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

+

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

-

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

+

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

Here is the call graph for this function:
@@ -587,13 +587,13 @@

-

Definition at line 100 of file SocketClient.h.

-
101 : SocketClient("", args...) {
-
102 }
+

Definition at line 101 of file SocketClient.h.

+
102 : SocketClient("", args...) {
+
103 }
-

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

+

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

-

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

+

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

Here is the call graph for this function:
@@ -661,17 +661,17 @@

-

Definition at line 104 of file SocketClient.h.

-
109 : Super(name)
-
110 , socketContextFactory(std::shared_ptr<SocketContextFactory>(socketContextFactory))
- - - -
114 }
+

Definition at line 105 of file SocketClient.h.

+
110 : Super(name)
+
111 , socketContextFactory(std::shared_ptr<SocketContextFactory>(socketContextFactory))
+ + + +
115 }
-

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::onConnect, core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::onConnected, core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::onDisconnect, core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient(), and core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::socketContextFactory.

+

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::onConnect, core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::onConnected, core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::onDisconnect, core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient(), and core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::socketContextFactory.

-

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient(), core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient(), and core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

+

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient(), core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient(), and core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

Here is the call graph for this function:
@@ -733,11 +733,11 @@

-

Definition at line 116 of file SocketClient.h.

-
-
121 }
+

Definition at line 117 of file SocketClient.h.

+ -

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

+

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

Here is the call graph for this function:
@@ -782,30 +782,30 @@

-

Definition at line 123 of file SocketClient.h.

-
124 : SocketClient(
-
125 name,
-
126 [name](SocketConnection* socketConnection) -> void { // onConnect
-
127 LOG(INFO) << "OnConnect " << name;
-
128
-
129 LOG(INFO) << "\tLocal: " << socketConnection->getLocalAddress().toString();
-
130 LOG(INFO) << "\tPeer: " << socketConnection->getRemoteAddress().toString();
-
131 },
-
132 [name]([[maybe_unused]] SocketConnection* socketConnection) -> void { // onConnected
-
133 LOG(INFO) << "OnConnected " << name;
-
134 },
-
135 [name](SocketConnection* socketConnection) -> void { // onDisconnect
-
136 LOG(INFO) << "OnDisconnect " << name;
-
137
-
138 LOG(INFO) << "\tLocal: " << socketConnection->getLocalAddress().toString();
-
139 LOG(INFO) << "\tPeer: " << socketConnection->getRemoteAddress().toString();
-
140 },
- -
142 }
+

Definition at line 124 of file SocketClient.h.

+
125 : SocketClient(
+
126 name,
+
127 [name](SocketConnection* socketConnection) -> void { // onConnect
+
128 LOG(INFO) << "OnConnect " << name;
+
129
+
130 LOG(INFO) << "\tLocal: " << socketConnection->getLocalAddress().toString();
+
131 LOG(INFO) << "\tPeer: " << socketConnection->getRemoteAddress().toString();
+
132 },
+
133 [name]([[maybe_unused]] SocketConnection* socketConnection) -> void { // onConnected
+
134 LOG(INFO) << "OnConnected " << name;
+
135 },
+
136 [name](SocketConnection* socketConnection) -> void { // onDisconnect
+
137 LOG(INFO) << "OnDisconnect " << name;
+
138
+
139 LOG(INFO) << "\tLocal: " << socketConnection->getLocalAddress().toString();
+
140 LOG(INFO) << "\tPeer: " << socketConnection->getRemoteAddress().toString();
+
141 },
+ +
143 }
-

References core::socket::stream::SocketConnection::getLocalAddress(), core::socket::stream::SocketConnection::getRemoteAddress(), and core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

+

References core::socket::stream::SocketConnection::getLocalAddress(), core::socket::stream::SocketConnection::getRemoteAddress(), and core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

-

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

+

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

Here is the call graph for this function:
@@ -845,11 +845,11 @@

-

Definition at line 144 of file SocketClient.h.

-
-
146 }
+

Definition at line 145 of file SocketClient.h.

+
+
147 }
-

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

+

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

Here is the call graph for this function:
@@ -901,14 +901,14 @@

-

Definition at line 238 of file SocketClient.h.

-
240 {
-
241 Super::config->Local::setSocketAddress(localAddress);
-
242
-
243 connect(remoteAddress, onStatus);
-
244 }
+

Definition at line 239 of file SocketClient.h.

+
241 {
+
242 Super::config->Local::setSocketAddress(localAddress);
+
243
+
244 connect(remoteAddress, onStatus);
+
245 }
std::shared_ptr< Config > config
Definition Socket.h:50
-
void connect(const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
+
void connect(const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const

@@ -948,12 +948,12 @@

-

Definition at line 231 of file SocketClient.h.

-
232 {
-
233 Super::config->Remote::setSocketAddress(remoteAddress);
-
234
-
235 connect(onStatus);
-
236 }
+

Definition at line 232 of file SocketClient.h.

+
233 {
+
234 Super::config->Remote::setSocketAddress(remoteAddress);
+
235
+
236 connect(onStatus);
+
237 }

@@ -983,11 +983,11 @@

-

Definition at line 227 of file SocketClient.h.

-
227 {
-
228 realConnect(onStatus, 0, 1);
-
229 }
-
void realConnect(const std::function< void(const SocketAddress &, core::socket::State)> &onStatus, unsigned int tries, double retryTimeoutScale) const
+

Definition at line 228 of file SocketClient.h.

+
228 {
+
229 realConnect(onStatus, 0, 1);
+
230 }
+
void realConnect(const std::function< void(const SocketAddress &, core::socket::State)> &onStatus, unsigned int tries, double retryTimeoutScale) const

@@ -1046,12 +1046,12 @@

-

Definition at line 270 of file SocketClient.h.

-

@@ -1097,81 +1097,81 @@

-

Definition at line 149 of file SocketClient.h.

-
151 {
- -
153 new SocketConnector(
- -
155 onConnect,
- -
157 [client = *this, onStatus](SocketConnection* socketConnection) -> void {
-
158 client.onDisconnect(socketConnection);
-
159
-
160 if (client.getConfig().getReconnect() && core::eventLoopState() == core::State::RUNNING) {
-
161 double relativeReconnectTimeout = client.getConfig().getReconnectTime();
-
162
-
163 LOG(INFO) << "Client OnDisconnect: " << client.getConfig().getInstanceName();
-
164 LOG(INFO) << " "
-
165 << " reconnecting in " << relativeReconnectTimeout << " seconds";
-
166
-
167 core::timer::Timer::singleshotTimer(
-
168 [client, onStatus]() -> void {
-
169 client.getConfig().Local::renew();
-
170 client.getConfig().Remote::renew();
-
171
-
172 client.realConnect(onStatus, 0, 1);
-
173 },
-
174 relativeReconnectTimeout);
-
175 }
-
176 },
-
177 [client = *this, onStatus, tries, retryTimeoutScale](const SocketAddress& socketAddress,
-
178 core::socket::State state) -> void {
-
179 bool retry = (state & core::socket::State::NO_RETRY) == 0 &&
-
180 (client.getConfig().getRetryTries() == 0 || tries < client.getConfig().getRetryTries());
- -
182
-
183 onStatus(socketAddress, state);
-
184
-
185 switch (state) {
- -
187 [[fallthrough]];
- -
189 retry = false;
-
190 break;
- -
192 retry = retry && client.getConfig().getRetry();
-
193 break;
- -
195 retry = retry && client.getConfig().getRetry() && client.getConfig().getRetryOnFatal();
-
196 break;
-
197 }
-
198
-
199 if (retry) {
-
200 double relativeRetryTimeout = client.getConfig().getRetryLimit() > 0
-
201 ? std::min<double>(client.getConfig().getRetryTimeout() * retryTimeoutScale,
-
202 client.getConfig().getRetryLimit())
-
203 : client.getConfig().getRetryTimeout() * retryTimeoutScale;
-
204 relativeRetryTimeout -=
-
205 utils::Random::getInRange(-client.getConfig().getRetryJitter(), client.getConfig().getRetryJitter()) *
-
206 relativeRetryTimeout / 100.;
-
207
-
208 LOG(INFO) << "Client OnStatus: " << client.getConfig().getInstanceName();
-
209 LOG(INFO) << " "
-
210 << " retrying in " << relativeRetryTimeout << " seconds";
-
211
- -
213 [client, onStatus, tries, retryTimeoutScale]() mutable -> void {
-
214 client.getConfig().Local::renew();
-
215 client.getConfig().Remote::renew();
-
216
-
217 client.realConnect(onStatus, tries + 1, retryTimeoutScale * client.getConfig().getRetryBase());
-
218 },
-
219 relativeRetryTimeout);
-
220 }
-
221 },
- -
223 }
-
224 }
+

Definition at line 150 of file SocketClient.h.

+
152 {
+ +
154 new SocketConnector(
+ +
156 onConnect,
+ +
158 [client = *this, onStatus](SocketConnection* socketConnection) -> void {
+
159 client.onDisconnect(socketConnection);
+
160
+
161 if (client.getConfig().getReconnect() && core::eventLoopState() == core::State::RUNNING) {
+
162 double relativeReconnectTimeout = client.getConfig().getReconnectTime();
+
163
+
164 LOG(INFO) << "Client OnDisconnect: " << client.getConfig().getInstanceName();
+
165 LOG(INFO) << " "
+
166 << " reconnecting in " << relativeReconnectTimeout << " seconds";
+
167
+
168 core::timer::Timer::singleshotTimer(
+
169 [client, onStatus]() -> void {
+
170 client.getConfig().Local::renew();
+
171 client.getConfig().Remote::renew();
+
172
+
173 client.realConnect(onStatus, 0, 1);
+
174 },
+
175 relativeReconnectTimeout);
+
176 }
+
177 },
+
178 [client = *this, onStatus, tries, retryTimeoutScale](const SocketAddress& socketAddress,
+
179 core::socket::State state) -> void {
+
180 bool retry = (state & core::socket::State::NO_RETRY) == 0 &&
+
181 (client.getConfig().getRetryTries() == 0 || tries < client.getConfig().getRetryTries());
+ +
183
+
184 onStatus(socketAddress, state);
+
185
+
186 switch (state) {
+ +
188 [[fallthrough]];
+ +
190 retry = false;
+
191 break;
+ +
193 retry = retry && client.getConfig().getRetry();
+
194 break;
+ +
196 retry = retry && client.getConfig().getRetry() && client.getConfig().getRetryOnFatal();
+
197 break;
+
198 }
+
199
+
200 if (retry) {
+
201 double relativeRetryTimeout = client.getConfig().getRetryLimit() > 0
+
202 ? std::min<double>(client.getConfig().getRetryTimeout() * retryTimeoutScale,
+
203 client.getConfig().getRetryLimit())
+
204 : client.getConfig().getRetryTimeout() * retryTimeoutScale;
+
205 relativeRetryTimeout -=
+
206 utils::Random::getInRange(-client.getConfig().getRetryJitter(), client.getConfig().getRetryJitter()) *
+
207 relativeRetryTimeout / 100.;
+
208
+
209 LOG(INFO) << "Client OnStatus: " << client.getConfig().getInstanceName();
+
210 LOG(INFO) << " "
+
211 << " retrying in " << relativeRetryTimeout << " seconds";
+
212
+ +
214 [client, onStatus, tries, retryTimeoutScale]() mutable -> void {
+
215 client.getConfig().Local::renew();
+
216 client.getConfig().Remote::renew();
+
217
+
218 client.realConnect(onStatus, tries + 1, retryTimeoutScale * client.getConfig().getRetryBase());
+
219 },
+
220 relativeRetryTimeout);
+
221 }
+
222 },
+ +
224 }
+
225 }
static State state()
Definition SNodeC.cpp:54
@@ -1180,8 +1180,8 @@

static constexpr int FATAL
Definition State.h:38

static constexpr int OK
Definition State.h:35
static constexpr int NO_RETRY
Definition State.h:39
-
typename SocketConnector::SocketAddress SocketAddress
- +
typename SocketConnector::SocketAddress SocketAddress
+
static Timer singleshotTimer(const std::function< void()> &dispatcher, const utils::Timeval &timeout)
Definition Timer.cpp:35
static double getInRange(double ll, double ul)
Definition Random.cpp:32
@@ -1224,16 +1224,16 @@

-

Definition at line 246 of file SocketClient.h.

-
246 {
-
247 std::function<void(SocketConnection*)> oldOnConnect = this->onConnect;
-
248
-
249 this->onConnect = onConnect;
-
250
-
251 return oldOnConnect;
-
252 }
+

Definition at line 247 of file SocketClient.h.

+
247 {
+
248 std::function<void(SocketConnection*)> oldOnConnect = this->onConnect;
+
249
+
250 this->onConnect = onConnect;
+
251
+
252 return oldOnConnect;
+
253 }
-

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::onConnect.

+

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::onConnect.

@@ -1263,16 +1263,16 @@

-

Definition at line 254 of file SocketClient.h.

-
254 {
-
255 std::function<void(SocketConnection*)> oldOnConnected = this->onConnected;
-
256
-
257 this->onConnected = onConnected;
-
258
-
259 return oldOnConnected;
-
260 }
+

Definition at line 255 of file SocketClient.h.

+
255 {
+
256 std::function<void(SocketConnection*)> oldOnConnected = this->onConnected;
+
257
+
258 this->onConnected = onConnected;
+
259
+
260 return oldOnConnected;
+
261 }
-

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::onConnected.

+

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::onConnected.

@@ -1302,16 +1302,16 @@

-

Definition at line 262 of file SocketClient.h.

-
262 {
-
263 std::function<void(SocketConnection*)> oldOnDisconnect = this->onDisconnect;
-
264
- -
266
-
267 return oldOnDisconnect;
-
268 }
+

Definition at line 263 of file SocketClient.h.

+
263 {
+
264 std::function<void(SocketConnection*)> oldOnDisconnect = this->onDisconnect;
+
265
+ +
267
+
268 return oldOnDisconnect;
+
269 }
-

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::onDisconnect.

+

References core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::onDisconnect.

@@ -1362,9 +1362,9 @@

-

Definition at line 278 of file SocketClient.h.

+

Definition at line 279 of file SocketClient.h.

-

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::setOnConnect(), core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient(), and core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

+

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::setOnConnect(), core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient(), and core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

@@ -1390,9 +1390,9 @@

-

Definition at line 279 of file SocketClient.h.

+

Definition at line 280 of file SocketClient.h.

-

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::setOnConnected(), core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient(), and core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

+

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::setOnConnected(), core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient(), and core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

@@ -1418,9 +1418,9 @@

-

Definition at line 280 of file SocketClient.h.

+

Definition at line 281 of file SocketClient.h.

-

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::setOnDisconnect(), core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient(), and core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

+

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::setOnDisconnect(), core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient(), and core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

@@ -1446,9 +1446,9 @@

-

Definition at line 275 of file SocketClient.h.

+

Definition at line 276 of file SocketClient.h.

-

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::getSocketContextFactory(), and core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

+

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::getSocketContextFactory(), and core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient().

@@ -1461,7 +1461,7 @@

    - +

diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnection-members.html b/html/classcore_1_1socket_1_1stream_1_1SocketConnection-members.html index 796ef31a2f..be3870df17 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnection-members.html +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnection-members.html @@ -125,7 +125,7 @@ diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnection.html b/html/classcore_1_1socket_1_1stream_1_1SocketConnection.html index e7089be8d2..24bcad8592 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnection.html +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnection.html @@ -393,11 +393,11 @@

References configuredServer.

-

Referenced by web::http::client::SocketContext::onConnected(), and web::http::client::SocketContext::SocketContext().

+

Referenced by web::http::client::SocketContext::SocketContext().

Here is the caller graph for this function:
-
+

@@ -424,11 +424,11 @@

References instanceName.

-

Referenced by web::http::server::SocketContext::deliverRequest(), web::http::client::SocketContext::deliverResponse(), web::http::client::SocketContext::deliverResponseParseError(), web::http::client::SocketContext::initiateRequest(), web::http::client::SocketContext::onConnected(), web::http::server::SocketContext::onConnected(), web::http::client::SocketContext::onDisconnected(), web::http::server::SocketContext::onDisconnected(), web::http::client::SocketContext::onSignal(), web::http::server::SocketContext::onSignal(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::requestPrepared(), web::http::server::SocketContext::requestStarted(), web::http::server::SocketContext::responseCompleted(), web::http::client::SocketContext::responseDelivered(), web::http::client::SocketContext::responseStarted(), web::http::server::SocketContext::responseStarted(), and express::middleware::VerboseRequest::VerboseRequest().

+

Referenced by web::http::server::SocketContext::deliverRequest(), web::http::client::SocketContext::deliverResponse(), web::http::client::SocketContext::deliverResponseParseError(), web::http::client::SocketContext::initiateRequest(), web::http::client::SocketContext::onConnected(), web::http::server::SocketContext::onConnected(), web::http::client::SocketContext::onDisconnected(), web::http::server::SocketContext::onDisconnected(), web::http::client::SocketContext::onSignal(), web::http::server::SocketContext::onSignal(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::requestPrepared(), web::http::server::SocketContext::requestStarted(), web::http::server::SocketContext::responseCompleted(), web::http::client::SocketContext::responseDelivered(), web::http::client::SocketContext::responseStarted(), web::http::server::SocketContext::responseStarted(), and express::middleware::VerboseRequest::VerboseRequest().

Here is the caller graph for this function:
-
+
@@ -458,7 +458,7 @@

core::socket::stream::SocketConnectionT< PhysicalSocketT, SocketReaderT, SocketWriterT >.

-

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient(), and core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::SocketServer().

+

Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::SocketClient(), and core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::SocketServer().

Here is the caller graph for this function:
@@ -832,7 +832,7 @@

Here is the caller graph for this function:
-
+
@@ -1054,7 +1054,7 @@

diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnectionT-members.html b/html/classcore_1_1socket_1_1stream_1_1SocketConnectionT-members.html index 613b9abacb..5ad3d16717 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnectionT-members.html +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnectionT-members.html @@ -147,7 +147,7 @@ diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnectionT.html b/html/classcore_1_1socket_1_1stream_1_1SocketConnectionT.html index fee237d00d..874da58b1b 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnectionT.html +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnectionT.html @@ -516,8 +516,8 @@

86 SocketWriter::suspend();
87 }
88 }
- - + + @@ -611,8 +611,8 @@

176 SocketReader::disable();
177 }
178 }
- - + +

Referenced by core::socket::stream::SocketConnectionT< PhysicalSocketT, SocketReaderT, SocketWriterT >::onReceivedFromPeer(), core::socket::stream::SocketConnectionT< PhysicalSocketT, SocketReaderT, SocketWriterT >::readTimeout(), and core::socket::stream::SocketConnectionT< PhysicalSocketT, SocketReaderT, SocketWriterT >::writeTimeout().

@@ -792,11 +792,11 @@

References core::socket::stream::SocketConnection::configuredServer.

-

Referenced by web::http::client::SocketContext::onConnected(), and web::http::client::SocketContext::SocketContext().

+

Referenced by web::http::client::SocketContext::SocketContext().

Here is the caller graph for this function:
-
+

@@ -857,11 +857,11 @@

References core::socket::stream::SocketConnection::instanceName.

-

Referenced by web::http::server::SocketContext::deliverRequest(), web::http::client::SocketContext::deliverResponse(), web::http::client::SocketContext::deliverResponseParseError(), web::http::client::SocketContext::initiateRequest(), web::http::client::SocketContext::onConnected(), web::http::server::SocketContext::onConnected(), web::http::client::SocketContext::onDisconnected(), web::http::server::SocketContext::onDisconnected(), web::http::client::SocketContext::onSignal(), web::http::server::SocketContext::onSignal(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::requestPrepared(), web::http::server::SocketContext::requestStarted(), web::http::server::SocketContext::responseCompleted(), web::http::client::SocketContext::responseDelivered(), web::http::client::SocketContext::responseStarted(), web::http::server::SocketContext::responseStarted(), and express::middleware::VerboseRequest::VerboseRequest().

+

Referenced by web::http::server::SocketContext::deliverRequest(), web::http::client::SocketContext::deliverResponse(), web::http::client::SocketContext::deliverResponseParseError(), web::http::client::SocketContext::initiateRequest(), web::http::client::SocketContext::onConnected(), web::http::server::SocketContext::onConnected(), web::http::client::SocketContext::onDisconnected(), web::http::server::SocketContext::onDisconnected(), web::http::client::SocketContext::onSignal(), web::http::server::SocketContext::onSignal(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::requestPrepared(), web::http::server::SocketContext::requestStarted(), web::http::server::SocketContext::responseCompleted(), web::http::client::SocketContext::responseDelivered(), web::http::client::SocketContext::responseStarted(), web::http::server::SocketContext::responseStarted(), and express::middleware::VerboseRequest::VerboseRequest().

Here is the caller graph for this function:
-
+
@@ -1509,7 +1509,7 @@

96 SocketReader::setTimeout(timeout);
98 }
-
void setTimeout(const utils::Timeval &timeout)
+
void setTimeout(const utils::Timeval &timeout)
@@ -2038,7 +2038,7 @@

diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a06d9ab2643cb4ce95681e6cb3a1029cf_icgraph.map b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a06d9ab2643cb4ce95681e6cb3a1029cf_icgraph.map index 5ed88b3d80..d538692342 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a06d9ab2643cb4ce95681e6cb3a1029cf_icgraph.map +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a06d9ab2643cb4ce95681e6cb3a1029cf_icgraph.map @@ -1,7 +1,5 @@ - - - - - + + + diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a06d9ab2643cb4ce95681e6cb3a1029cf_icgraph.md5 b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a06d9ab2643cb4ce95681e6cb3a1029cf_icgraph.md5 index 4750d09042..c806269c15 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a06d9ab2643cb4ce95681e6cb3a1029cf_icgraph.md5 +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a06d9ab2643cb4ce95681e6cb3a1029cf_icgraph.md5 @@ -1 +1 @@ -d63bfd3a945c1dc91472dca76b7d93c0 \ No newline at end of file +f5c122a81d88f755ede17f03396efd6b \ No newline at end of file diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a06d9ab2643cb4ce95681e6cb3a1029cf_icgraph.svg b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a06d9ab2643cb4ce95681e6cb3a1029cf_icgraph.svg index fe94caf7fb..b4f5265041 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a06d9ab2643cb4ce95681e6cb3a1029cf_icgraph.svg +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a06d9ab2643cb4ce95681e6cb3a1029cf_icgraph.svg @@ -4,28 +4,28 @@ - - + + core::socket::stream::SocketConnection::getConfiguredServer Node1 - -core::socket::stream -::SocketConnection::getConfigured -Server + +core::socket::stream +::SocketConnection::getConfigured +Server Node2 - - -web::http::client:: -SocketContext::onConnected + + +web::http::client:: +SocketContext::SocketContext @@ -33,27 +33,8 @@ Node1->Node2 - - - - - - - -Node3 - - -web::http::client:: -SocketContext::SocketContext - - - - - -Node1->Node3 - - - + + diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a0e8eedcbfe5dc63e1c1682b5beaf90da_icgraph.map b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a0e8eedcbfe5dc63e1c1682b5beaf90da_icgraph.map index 633f04e335..0982cd9e78 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a0e8eedcbfe5dc63e1c1682b5beaf90da_icgraph.map +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a0e8eedcbfe5dc63e1c1682b5beaf90da_icgraph.map @@ -1,160 +1,168 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a0e8eedcbfe5dc63e1c1682b5beaf90da_icgraph.md5 b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a0e8eedcbfe5dc63e1c1682b5beaf90da_icgraph.md5 index d21e12f8dc..a0f24c3d72 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a0e8eedcbfe5dc63e1c1682b5beaf90da_icgraph.md5 +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a0e8eedcbfe5dc63e1c1682b5beaf90da_icgraph.md5 @@ -1 +1 @@ -3e1bbe9612efc3ba18e3c98688904c90 \ No newline at end of file +effb0f28715fd7f3703c67723077053a \ No newline at end of file diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a0e8eedcbfe5dc63e1c1682b5beaf90da_icgraph.svg b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a0e8eedcbfe5dc63e1c1682b5beaf90da_icgraph.svg index cd50122937..50b7f01df1 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a0e8eedcbfe5dc63e1c1682b5beaf90da_icgraph.svg +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_a0e8eedcbfe5dc63e1c1682b5beaf90da_icgraph.svg @@ -4,17 +4,17 @@ - - + + core::socket::stream::SocketConnection::sendToPeer Node1 - -core::socket::stream -::SocketConnection::sendToPeer + +core::socket::stream +::SocketConnection::sendToPeer @@ -22,9 +22,9 @@ Node2 - -core::socket::stream -::SocketContext::sendToPeer + +core::socket::stream +::SocketContext::sendToPeer @@ -32,65 +32,65 @@ Node1->Node2 - - + + - - -Node74 - - -core::socket::stream -::SocketConnection::sendToPeer + + +Node78 + + +core::socket::stream +::SocketConnection::sendToPeer - - -Node1->Node74 - - - + + +Node1->Node78 + + + - - -Node75 - - -core::socket::stream -::SocketConnection::sentToPeer + + +Node79 + + +core::socket::stream +::SocketConnection::sentToPeer - - -Node1->Node75 - - - + + +Node1->Node79 + + + - - -Node76 - - -core::socket::stream -::SocketConnection::sentToPeer + + +Node80 + + +core::socket::stream +::SocketConnection::sentToPeer - - -Node1->Node76 - - - + + +Node1->Node80 + + + @@ -98,9 +98,9 @@ Node3 - -web::http::client:: -Request::executeSendFragment + +web::http::client:: +Request::executeSendFragment @@ -108,65 +108,65 @@ Node2->Node3 - - + + - - -Node18 - - -iot::mqtt::SocketContext -::send + + +Node22 + + +iot::mqtt::SocketContext +::send - - -Node2->Node18 - - - + + +Node2->Node22 + + + - - -Node19 - - -iot::mqtt_fast::SocketContext -::send + + +Node23 + + +iot::mqtt_fast::SocketContext +::send - - -Node2->Node19 - - - + + +Node2->Node23 + + + - - -Node36 - - -web::http::server:: -Response::sendFragment + + +Node40 + + +web::http::server:: +Response::sendFragment - - -Node2->Node36 - - - + + +Node2->Node40 + + + @@ -174,10 +174,10 @@ Node4 - -web::http::client:: -commands::SendFragmentCommand -::execute + +web::http::client:: +commands::SendFragmentCommand +::execute @@ -185,8 +185,8 @@ Node3->Node4 - - + + @@ -194,9 +194,9 @@ Node5 - -web::http::client:: -Request::onSourceData + +web::http::client:: +Request::onSourceData @@ -204,8 +204,8 @@ Node3->Node5 - - + + @@ -213,9 +213,9 @@ Node6 - -web::http::client:: -Request::requestDelivered + +web::http::client:: +Request::requestDelivered @@ -223,8 +223,8 @@ Node3->Node6 - - + + @@ -232,9 +232,9 @@ Node7 - -web::http::client:: -Request::initiate + +web::http::client:: +Request::initiate @@ -242,46 +242,46 @@ Node6->Node7 - - + + - - -Node16 - - -web::http::client:: -Request::onSourceEof + + +Node20 + + +web::http::client:: +Request::onSourceEof - - -Node6->Node16 - - - + + +Node6->Node20 + + + - - -Node17 - - -web::http::client:: -Request::onSourceError + + +Node21 + + +web::http::client:: +Request::onSourceError - - -Node6->Node17 - - - + + +Node6->Node21 + + + @@ -289,9 +289,9 @@ Node8 - -web::http::client:: -SocketContext::initiateRequest + +web::http::client:: +SocketContext::initiateRequest @@ -299,8 +299,8 @@ Node7->Node8 - - + + @@ -308,8 +308,8 @@ Node8->Node8 - - + + @@ -317,9 +317,9 @@ Node9 - -web::http::client:: -SocketContext::requestDelivered + +web::http::client:: +SocketContext::requestDelivered @@ -327,18 +327,18 @@ Node8->Node9 - - + + Node10 - - -web::http::client:: -SocketContext::requestPrepared + + +web::http::client:: +SocketContext::requestPrepared @@ -346,8 +346,27 @@ Node8->Node10 - - + + + + + + + +Node17 + + +web::http::client:: +SocketContext::responseDelivered + + + + + +Node8->Node17 + + + @@ -355,18 +374,18 @@ Node9->Node6 - - + + Node11 - - -web::http::client:: -Request::end + + +web::http::client:: +Request::requestPrepared @@ -374,511 +393,455 @@ Node10->Node11 - - + + Node12 - - -web::http::client:: -Request::send + + +web::http::client:: +Request::end - - -Node10->Node12 - - - + + +Node11->Node12 + + + - - -Node14 - - -web::http::client:: -Request::sendFile + + +Node13 + + +web::http::client:: +Request::send - - -Node10->Node14 - - - + + +Node11->Node13 + + + Node15 - - -web::http::client:: -Request::upgrade - - - - - -Node10->Node15 - - - - - - - - -Node13 - - -web::http::client:: -Request::send + + +web::http::client:: +Request::sendFile - - -Node12->Node13 - - - + + +Node11->Node15 + + + - - -Node20 - - -iot::mqtt_fast::SocketContext -::send + + +Node16 + + +web::http::client:: +Request::upgrade - - -Node19->Node20 - - - + + +Node11->Node16 + + + - - -Node35 - - -iot::mqtt_fast::SocketContext -::send + + +Node14 + + +web::http::client:: +Request::send - - -Node19->Node35 - - - + + +Node13->Node14 + + + - - -Node21 - - -iot::mqtt_fast::SocketContext -::sendConnack + + +Node18 + + +web::http::client:: +SocketContext::deliverResponse - - -Node20->Node21 - - - + + +Node17->Node18 + + + - - -Node22 - - -iot::mqtt_fast::SocketContext -::sendConnect + + +Node19 + + +web::http::client:: +SocketContext::onDisconnected - - -Node20->Node22 - - - + + +Node18->Node19 + + + - - -Node23 - - -iot::mqtt_fast::SocketContext -::sendDisconnect + + +Node24 + + +iot::mqtt_fast::SocketContext +::send - - -Node20->Node23 - - - + + +Node23->Node24 + + + - - -Node24 - - -iot::mqtt_fast::SocketContext -::sendPingreq + + +Node39 + + +iot::mqtt_fast::SocketContext +::send - - -Node20->Node24 - - - + + +Node23->Node39 + + + Node25 - - -iot::mqtt_fast::SocketContext -::sendPingresp + + +iot::mqtt_fast::SocketContext +::sendConnack - - -Node20->Node25 - - - + + +Node24->Node25 + + + Node26 - - -iot::mqtt_fast::SocketContext -::sendPuback + + +iot::mqtt_fast::SocketContext +::sendConnect - - -Node20->Node26 - - - + + +Node24->Node26 + + + Node27 - - -iot::mqtt_fast::SocketContext -::sendPubcomp + + +iot::mqtt_fast::SocketContext +::sendDisconnect - - -Node20->Node27 - - - + + +Node24->Node27 + + + Node28 - - -iot::mqtt_fast::SocketContext -::sendPublish + + +iot::mqtt_fast::SocketContext +::sendPingreq - - -Node20->Node28 - - - + + +Node24->Node28 + + + Node29 - - -iot::mqtt_fast::SocketContext -::sendPubrec + + +iot::mqtt_fast::SocketContext +::sendPingresp - - -Node20->Node29 - - - + + +Node24->Node29 + + + Node30 - - -iot::mqtt_fast::SocketContext -::sendPubrel + + +iot::mqtt_fast::SocketContext +::sendPuback - - -Node20->Node30 - - - + + +Node24->Node30 + + + Node31 - - -iot::mqtt_fast::SocketContext -::sendSuback + + +iot::mqtt_fast::SocketContext +::sendPubcomp - - -Node20->Node31 - - - + + +Node24->Node31 + + + Node32 - - -iot::mqtt_fast::SocketContext -::sendSubscribe + + +iot::mqtt_fast::SocketContext +::sendPublish - - -Node20->Node32 - - - + + +Node24->Node32 + + + Node33 - - -iot::mqtt_fast::SocketContext -::sendUnsuback + + +iot::mqtt_fast::SocketContext +::sendPubrec - - -Node20->Node33 - - - + + +Node24->Node33 + + + Node34 - - -iot::mqtt_fast::SocketContext -::sendUnsubscribe - - - - - -Node20->Node34 - - - - - - - - -Node37 - - -web::http::server:: -Response::onSourceData - - - - - -Node36->Node37 - - - - - - - - -Node38 - - -web::http::server:: -Response::send + + +iot::mqtt_fast::SocketContext +::sendPubrel - - -Node36->Node38 - - - + + +Node24->Node34 + + + - - -Node68 - - -express::Response:: -sendFragment + + +Node35 + + +iot::mqtt_fast::SocketContext +::sendSuback - - -Node36->Node68 - - - + + +Node24->Node35 + + + - - -Node69 - - -web::http::server:: -Response::sendFragment + + +Node36 + + +iot::mqtt_fast::SocketContext +::sendSubscribe - - -Node36->Node69 - - - + + +Node24->Node36 + + + - - -Node39 - - -express::Response::send + + +Node37 + + +iot::mqtt_fast::SocketContext +::sendUnsuback - - -Node38->Node39 - - - + + +Node24->Node37 + + + - - -Node40 - - -web::http::server:: -Response::send + + +Node38 + + +iot::mqtt_fast::SocketContext +::sendUnsubscribe - - -Node38->Node40 - - - + + +Node24->Node38 + + + Node41 - - -web::http::server:: -Response::end + + +web::http::server:: +Response::onSourceData @@ -886,74 +849,74 @@ Node40->Node41 - - + + - - -Node48 - - -express::Response::send + + +Node42 + + +web::http::server:: +Response::send - - -Node40->Node48 - - - + + +Node40->Node42 + + + - - -Node42 - - -express::Response::end + + +Node72 + + +express::Response:: +sendFragment - - -Node41->Node42 - - - + + +Node40->Node72 + + + - - -Node46 - - -web::http::server:: -Response::upgrade + + +Node73 + + +web::http::server:: +Response::sendFragment - - -Node41->Node46 - - - + + +Node40->Node73 + + + Node43 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +express::Response::send @@ -961,39 +924,37 @@ Node42->Node43 - - + + Node44 - - -express::middleware -::StaticMiddleware:: -instance + + +web::http::server:: +Response::send - - -Node43->Node44 - - - + + +Node42->Node44 + + + Node45 - - -express::middleware -::StaticMiddleware:: -StaticMiddleware + + +web::http::server:: +Response::end @@ -1001,162 +962,151 @@ Node44->Node45 - - + + - - -Node47 - - -express::Response:: -upgrade + + +Node52 + + +express::Response::send - - -Node46->Node47 - - - + + +Node44->Node52 + + + - - -Node49 - - -express::Response::json + + +Node46 + + +express::Response::end - - -Node48->Node49 - - - + + +Node45->Node46 + + + Node50 - - -express::Response:: -sendStatus - - - - - -Node48->Node50 - - - + + +web::http::server:: +Response::upgrade - - -Node50->Node43 - - - + + +Node45->Node50 + + + - - -Node51 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +Node47 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node50->Node51 - - - + + +Node46->Node47 + + + - - -Node54 - - -express::RootRoute -::dispatch + + +Node48 + + +express::middleware +::StaticMiddleware:: +instance - - -Node50->Node54 - - - + + +Node47->Node48 + + + - - -Node66 - - -express::Response:: -redirect + + +Node49 + + +express::middleware +::StaticMiddleware:: +StaticMiddleware - - -Node50->Node66 - - - + + +Node48->Node49 + + + - - -Node52 - - -express::middleware -::BasicAuthentication -::instance + + +Node51 + + +express::Response:: +upgrade - - -Node51->Node52 - - - + + +Node50->Node51 + + + Node53 - - -express::middleware -::BasicAuthentication -::BasicAuthentication + + +express::Response::json @@ -1164,18 +1114,47 @@ Node52->Node53 - - + + + + + + + +Node54 + + +express::Response:: +sendStatus + + + + + +Node52->Node54 + + + + + + + + +Node54->Node47 + + + Node55 - - -express::RootRoute -::dispatch + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -1183,36 +1162,77 @@ Node54->Node55 - - + + + + + + + +Node58 + + +express::RootRoute +::dispatch + + + + + +Node54->Node58 + + + + + + + + +Node70 + + +express::Response:: +redirect + + + + + +Node54->Node70 + + + Node56 - - -express::Controller -::next + + +express::middleware +::BasicAuthentication +::instance - - -Node54->Node56 - - - + + +Node55->Node56 + + + Node57 - - -express::Next::operator() + + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -1220,291 +1240,347 @@ Node56->Node57 - - + + - - -Node57->Node43 - - - + + +Node59 + + +express::RootRoute +::dispatch - - -Node57->Node51 - - - + + +Node58->Node59 + + + - - -Node58 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node60 + + +express::Controller +::next - - -Node57->Node58 - - - + + +Node58->Node60 + + + Node61 - - -express::middleware -::VerboseRequest::VerboseRequest + + +express::Next::operator() - - -Node57->Node61 - - - + + +Node60->Node61 + + + - - -Node63 - - -express::middleware -::VHost::VHost + + +Node61->Node47 + + + - - -Node57->Node63 - - - + + +Node61->Node55 + + + - - -Node59 - - -express::middleware -::JsonMiddleware::instance + + +Node62 + + +express::middleware +::JsonMiddleware::JsonMiddleware - - -Node58->Node59 - - - + + +Node61->Node62 + + + - - -Node60 - - -express::middleware -::JsonMiddleware::JsonMiddleware + + +Node65 + + +express::middleware +::VerboseRequest::VerboseRequest - - -Node59->Node60 - - - + + +Node61->Node65 + + + - - -Node62 - - -express::middleware -::VerboseRequest::VerboseRequest + + +Node67 + + +express::middleware +::VHost::VHost - - -Node61->Node62 - - - + + +Node61->Node67 + + + + + + + + +Node63 + + +express::middleware +::JsonMiddleware::instance + + + + + +Node62->Node63 + + + Node64 - - -express::middleware -::VHost::instance + + +express::middleware +::JsonMiddleware::JsonMiddleware - + Node63->Node64 - - - + + + - - -Node65 - - -express::middleware -::VHost::VHost + + +Node66 + + +express::middleware +::VerboseRequest::VerboseRequest + + + + + +Node65->Node66 + + + - - -Node64->Node65 - - - + + +Node68 + + +express::middleware +::VHost::instance - - -Node66->Node43 - - - + + +Node67->Node68 + + + - - -Node67 - - -express::Response:: -redirect + + +Node69 + + +express::middleware +::VHost::VHost - - -Node66->Node67 - - - + + +Node68->Node69 + + + - - -Node70 - - -web::http::server:: -Response::sendCompleted + + +Node70->Node47 + + + - - -Node69->Node70 - - - + + +Node71 + + +express::Response:: +redirect - - -Node73 - - -express::Response:: -sendFragment + + +Node70->Node71 + + + + + + + + +Node74 + + +web::http::server:: +Response::sendCompleted - - -Node69->Node73 - - - + + +Node73->Node74 + + + - - -Node70->Node38 - - - + + +Node77 + + +express::Response:: +sendFragment - - -Node71 - - -web::http::server:: -Response::onSourceEof + + +Node73->Node77 + + + - - -Node70->Node71 - - - + + +Node74->Node42 + + + - - -Node72 - - -web::http::server:: -Response::onSourceError + + +Node75 + + +web::http::server:: +Response::onSourceEof + + + + + +Node74->Node75 + + + + + + + + +Node76 + + +web::http::server:: +Response::onSourceError - - -Node70->Node72 - - - + + +Node74->Node76 + + + diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_ab4496d58a35b0fa62a01f8aa78869522_icgraph.map b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_ab4496d58a35b0fa62a01f8aa78869522_icgraph.map index 3993af42bc..7f965c970f 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_ab4496d58a35b0fa62a01f8aa78869522_icgraph.map +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_ab4496d58a35b0fa62a01f8aa78869522_icgraph.map @@ -1,126 +1,129 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_ab4496d58a35b0fa62a01f8aa78869522_icgraph.md5 b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_ab4496d58a35b0fa62a01f8aa78869522_icgraph.md5 index 20b1d491c7..b15ecd75a7 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_ab4496d58a35b0fa62a01f8aa78869522_icgraph.md5 +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_ab4496d58a35b0fa62a01f8aa78869522_icgraph.md5 @@ -1 +1 @@ -3f294e3cd9362fe7839b9bfce3a1da9b \ No newline at end of file +11929775136d6060f690189d2e690fef \ No newline at end of file diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_ab4496d58a35b0fa62a01f8aa78869522_icgraph.svg b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_ab4496d58a35b0fa62a01f8aa78869522_icgraph.svg index a6fc456fe8..173fd7ef83 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_ab4496d58a35b0fa62a01f8aa78869522_icgraph.svg +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_ab4496d58a35b0fa62a01f8aa78869522_icgraph.svg @@ -4,18 +4,18 @@ - - + + core::socket::stream::SocketConnection::shutdownWrite Node1 - -core::socket::stream -::SocketConnection::shutdown -Write + +core::socket::stream +::SocketConnection::shutdown +Write @@ -23,9 +23,9 @@ Node2 - -core::socket::stream -::SocketContext::shutdownWrite + +core::socket::stream +::SocketContext::shutdownWrite @@ -33,8 +33,8 @@ Node1->Node2 - - + + @@ -42,10 +42,10 @@ Node3 - -web::http::client:: -SocketContext::deliverResponse -ParseError + +web::http::client:: +SocketContext::deliverResponse +ParseError @@ -53,8 +53,8 @@ Node2->Node3 - - + + @@ -62,8 +62,8 @@ Node4 - -iot::mqtt::SocketContext::end + +iot::mqtt::SocketContext::end @@ -71,8 +71,8 @@ Node2->Node4 - - + + @@ -80,9 +80,9 @@ Node5 - -core::socket::stream -::SocketContext::onReadError + +core::socket::stream +::SocketContext::onReadError @@ -90,8 +90,8 @@ Node2->Node5 - - + + @@ -99,9 +99,9 @@ Node8 - -web::http::server:: -SocketContext::requestCompleted + +web::http::server:: +SocketContext::requestCompleted @@ -109,8 +109,8 @@ Node2->Node8 - - + + @@ -118,18 +118,18 @@ Node9 - -web::http::server:: -SocketContext::responseCompleted + +web::http::server:: +SocketContext::responseCompleted - + Node2->Node9 - - - + + + @@ -137,9 +137,9 @@ Node43 - -web::http::client:: -SocketContext::requestDelivered + +web::http::client:: +SocketContext::requestDelivered @@ -147,46 +147,46 @@ Node2->Node43 - - + + - - -Node55 - - -web::http::client:: -SocketContext::responseDelivered + + +Node54 + + +web::http::client:: +SocketContext::responseDelivered - - -Node2->Node55 - - - + + +Node2->Node54 + + + - - -Node58 - - -web::http::client:: -SocketContext::responseStarted + + +Node59 + + +web::http::client:: +SocketContext::responseStarted - - -Node2->Node58 - - - + + +Node2->Node59 + + + @@ -194,10 +194,10 @@ Node6 - -core::socket::stream -::SocketConnectionT:: -onReadError + +core::socket::stream +::SocketConnectionT:: +onReadError @@ -205,8 +205,8 @@ Node5->Node6 - - + + @@ -214,10 +214,10 @@ Node7 - -core::socket::stream -::SocketConnectionT:: -SocketConnectionT + +core::socket::stream +::SocketConnectionT:: +SocketConnectionT @@ -225,8 +225,8 @@ Node6->Node7 - - + + @@ -234,8 +234,8 @@ Node8->Node9 - - + + @@ -243,9 +243,9 @@ Node10 - -web::http::server:: -Response::sendCompleted + +web::http::server:: +Response::sendCompleted @@ -253,8 +253,8 @@ Node9->Node10 - - + + @@ -262,9 +262,9 @@ Node11 - -web::http::server:: -Response::onSourceEof + +web::http::server:: +Response::onSourceEof @@ -272,8 +272,8 @@ Node10->Node11 - - + + @@ -281,9 +281,9 @@ Node12 - -web::http::server:: -Response::onSourceError + +web::http::server:: +Response::onSourceError @@ -291,8 +291,8 @@ Node10->Node12 - - + + @@ -300,9 +300,9 @@ Node13 - -web::http::server:: -Response::send + +web::http::server:: +Response::send @@ -310,8 +310,8 @@ Node10->Node13 - - + + @@ -319,8 +319,8 @@ Node14 - -express::Response::send + +express::Response::send @@ -328,8 +328,8 @@ Node13->Node14 - - + + @@ -337,9 +337,9 @@ Node15 - -web::http::server:: -Response::send + +web::http::server:: +Response::send @@ -347,8 +347,8 @@ Node13->Node15 - - + + @@ -356,9 +356,9 @@ Node16 - -web::http::server:: -Response::end + +web::http::server:: +Response::end @@ -366,8 +366,8 @@ Node15->Node16 - - + + @@ -375,8 +375,8 @@ Node23 - -express::Response::send + +express::Response::send @@ -384,8 +384,8 @@ Node15->Node23 - - + + @@ -393,8 +393,8 @@ Node17 - -express::Response::end + +express::Response::end @@ -402,8 +402,8 @@ Node16->Node17 - - + + @@ -411,9 +411,9 @@ Node21 - -web::http::server:: -Response::upgrade + +web::http::server:: +Response::upgrade @@ -421,8 +421,8 @@ Node16->Node21 - - + + @@ -430,10 +430,10 @@ Node18 - -express::middleware -::StaticMiddleware:: -StaticMiddleware + +express::middleware +::StaticMiddleware:: +StaticMiddleware @@ -441,8 +441,8 @@ Node17->Node18 - - + + @@ -450,10 +450,10 @@ Node19 - -express::middleware -::StaticMiddleware:: -instance + +express::middleware +::StaticMiddleware:: +instance @@ -461,8 +461,8 @@ Node18->Node19 - - + + @@ -470,10 +470,10 @@ Node20 - -express::middleware -::StaticMiddleware:: -StaticMiddleware + +express::middleware +::StaticMiddleware:: +StaticMiddleware @@ -481,8 +481,8 @@ Node19->Node20 - - + + @@ -490,9 +490,9 @@ Node22 - -express::Response:: -upgrade + +express::Response:: +upgrade @@ -500,8 +500,8 @@ Node21->Node22 - - + + @@ -509,8 +509,8 @@ Node24 - -express::Response::json + +express::Response::json @@ -518,8 +518,8 @@ Node23->Node24 - - + + @@ -527,9 +527,9 @@ Node25 - -express::Response:: -sendStatus + +express::Response:: +sendStatus @@ -537,8 +537,8 @@ Node23->Node25 - - + + @@ -546,8 +546,8 @@ Node25->Node18 - - + + @@ -555,10 +555,10 @@ Node26 - -express::middleware -::BasicAuthentication -::BasicAuthentication + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -566,8 +566,8 @@ Node25->Node26 - - + + @@ -575,9 +575,9 @@ Node29 - -express::RootRoute -::dispatch + +express::RootRoute +::dispatch @@ -585,8 +585,8 @@ Node25->Node29 - - + + @@ -594,9 +594,9 @@ Node41 - -express::Response:: -redirect + +express::Response:: +redirect @@ -604,8 +604,8 @@ Node25->Node41 - - + + @@ -613,10 +613,10 @@ Node27 - -express::middleware -::BasicAuthentication -::instance + +express::middleware +::BasicAuthentication +::instance @@ -624,8 +624,8 @@ Node26->Node27 - - + + @@ -633,10 +633,10 @@ Node28 - -express::middleware -::BasicAuthentication -::BasicAuthentication + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -644,8 +644,8 @@ Node27->Node28 - - + + @@ -653,9 +653,9 @@ Node30 - -express::RootRoute -::dispatch + +express::RootRoute +::dispatch @@ -663,8 +663,8 @@ Node29->Node30 - - + + @@ -672,9 +672,9 @@ Node31 - -express::Controller -::next + +express::Controller +::next @@ -682,8 +682,8 @@ Node29->Node31 - - + + @@ -691,8 +691,8 @@ Node32 - -express::Next::operator() + +express::Next::operator() @@ -700,8 +700,8 @@ Node31->Node32 - - + + @@ -709,8 +709,8 @@ Node32->Node18 - - + + @@ -718,8 +718,8 @@ Node32->Node26 - - + + @@ -727,9 +727,9 @@ Node33 - -express::middleware -::JsonMiddleware::JsonMiddleware + +express::middleware +::JsonMiddleware::JsonMiddleware @@ -737,8 +737,8 @@ Node32->Node33 - - + + @@ -746,9 +746,9 @@ Node36 - -express::middleware -::VerboseRequest::VerboseRequest + +express::middleware +::VerboseRequest::VerboseRequest @@ -756,8 +756,8 @@ Node32->Node36 - - + + @@ -765,9 +765,9 @@ Node38 - -express::middleware -::VHost::VHost + +express::middleware +::VHost::VHost @@ -775,8 +775,8 @@ Node32->Node38 - - + + @@ -784,9 +784,9 @@ Node34 - -express::middleware -::JsonMiddleware::instance + +express::middleware +::JsonMiddleware::instance @@ -794,8 +794,8 @@ Node33->Node34 - - + + @@ -803,9 +803,9 @@ Node35 - -express::middleware -::JsonMiddleware::JsonMiddleware + +express::middleware +::JsonMiddleware::JsonMiddleware @@ -813,8 +813,8 @@ Node34->Node35 - - + + @@ -822,9 +822,9 @@ Node37 - -express::middleware -::VerboseRequest::VerboseRequest + +express::middleware +::VerboseRequest::VerboseRequest @@ -832,8 +832,8 @@ Node36->Node37 - - + + @@ -841,9 +841,9 @@ Node39 - -express::middleware -::VHost::instance + +express::middleware +::VHost::instance @@ -851,8 +851,8 @@ Node38->Node39 - - + + @@ -860,9 +860,9 @@ Node40 - -express::middleware -::VHost::VHost + +express::middleware +::VHost::VHost @@ -870,8 +870,8 @@ Node39->Node40 - - + + @@ -879,8 +879,8 @@ Node41->Node18 - - + + @@ -888,9 +888,9 @@ Node42 - -express::Response:: -redirect + +express::Response:: +redirect @@ -898,8 +898,8 @@ Node41->Node42 - - + + @@ -907,9 +907,9 @@ Node44 - -web::http::client:: -Request::requestDelivered + +web::http::client:: +Request::requestDelivered @@ -917,8 +917,8 @@ Node43->Node44 - - + + @@ -926,9 +926,9 @@ Node45 - -web::http::client:: -Request::initiate + +web::http::client:: +Request::initiate @@ -936,46 +936,46 @@ Node44->Node45 - - + + - - -Node53 - - -web::http::client:: -Request::onSourceEof + + +Node57 + + +web::http::client:: +Request::onSourceEof - - -Node44->Node53 - - - + + +Node44->Node57 + + + - - -Node54 - - -web::http::client:: -Request::onSourceError + + +Node58 + + +web::http::client:: +Request::onSourceError - - -Node44->Node54 - - - + + +Node44->Node58 + + + @@ -983,9 +983,9 @@ Node46 - -web::http::client:: -SocketContext::initiateRequest + +web::http::client:: +SocketContext::initiateRequest @@ -993,8 +993,8 @@ Node45->Node46 - - + + @@ -1002,8 +1002,8 @@ Node46->Node43 - - + + @@ -1011,18 +1011,18 @@ Node46->Node46 - - + + Node47 - - -web::http::client:: -SocketContext::requestPrepared + + +web::http::client:: +SocketContext::requestPrepared @@ -1030,18 +1030,27 @@ Node46->Node47 - - + + + + + + + +Node46->Node54 + + + Node48 - - -web::http::client:: -Request::end + + +web::http::client:: +Request::requestPrepared @@ -1049,141 +1058,160 @@ Node47->Node48 - - + + Node49 - - -web::http::client:: -Request::send + + +web::http::client:: +Request::end - - -Node47->Node49 - - - + + +Node48->Node49 + + + - - -Node51 - - -web::http::client:: -Request::sendFile + + +Node50 + + +web::http::client:: +Request::send - - -Node47->Node51 - - - + + +Node48->Node50 + + + Node52 - - -web::http::client:: -Request::upgrade + + +web::http::client:: +Request::sendFile - - -Node47->Node52 - - - + + +Node48->Node52 + + + - - -Node50 - - -web::http::client:: -Request::send + + +Node53 + + +web::http::client:: +Request::upgrade - - -Node49->Node50 - - - + + +Node48->Node53 + + + - - -Node56 - - -web::http::client:: -SocketContext::deliverResponse + + +Node51 + + +web::http::client:: +Request::send - - -Node55->Node56 - - - + + +Node50->Node51 + + + - - -Node57 - - -web::http::client:: -SocketContext::onDisconnected + + +Node55 + + +web::http::client:: +SocketContext::deliverResponse - - -Node56->Node57 - - - + + +Node54->Node55 + + + - - -Node59 - - -web::http::client:: -SocketContext::SocketContext + + +Node56 + + +web::http::client:: +SocketContext::onDisconnected + + + + + +Node55->Node56 + + + + + + + + +Node60 + + +web::http::client:: +SocketContext::SocketContext - - -Node58->Node59 - - - + + +Node59->Node60 + + + diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_aff2eb3e752c798455541e85054bf91de_icgraph.map b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_aff2eb3e752c798455541e85054bf91de_icgraph.map index ea0059edde..cbcea87ab0 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_aff2eb3e752c798455541e85054bf91de_icgraph.map +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_aff2eb3e752c798455541e85054bf91de_icgraph.map @@ -1,61 +1,61 @@ - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + @@ -68,17 +68,17 @@ - - - - - + + + + + - + - + - + @@ -109,39 +109,42 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_aff2eb3e752c798455541e85054bf91de_icgraph.md5 b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_aff2eb3e752c798455541e85054bf91de_icgraph.md5 index 57a408c596..c484d415f6 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_aff2eb3e752c798455541e85054bf91de_icgraph.md5 +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_aff2eb3e752c798455541e85054bf91de_icgraph.md5 @@ -1 +1 @@ -9406e37f9d69d8990206a44cd666ed50 \ No newline at end of file +260704e9048d576825d89d04594e71b4 \ No newline at end of file diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_aff2eb3e752c798455541e85054bf91de_icgraph.svg b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_aff2eb3e752c798455541e85054bf91de_icgraph.svg index 525a10b71a..7025ceb791 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnection_aff2eb3e752c798455541e85054bf91de_icgraph.svg +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnection_aff2eb3e752c798455541e85054bf91de_icgraph.svg @@ -4,27 +4,27 @@ - - + + core::socket::stream::SocketConnection::getInstanceName Node1 - -core::socket::stream -::SocketConnection::getInstanceName + +core::socket::stream +::SocketConnection::getInstanceName Node2 - - -web::http::server:: -SocketContext::deliverRequest + + +web::http::server:: +SocketContext::deliverRequest @@ -32,8 +32,8 @@ Node1->Node2 - - + + @@ -41,18 +41,18 @@ Node3 - -web::http::server:: -SocketContext::requestCompleted + +web::http::server:: +SocketContext::requestCompleted - + Node1->Node3 - - - + + + @@ -60,18 +60,18 @@ Node4 - -web::http::server:: -SocketContext::responseCompleted + +web::http::server:: +SocketContext::responseCompleted - + Node1->Node4 - - - + + + @@ -79,18 +79,18 @@ Node31 - -express::middleware -::VerboseRequest::VerboseRequest + +express::middleware +::VerboseRequest::VerboseRequest - + Node1->Node31 - - - + + + @@ -98,9 +98,9 @@ Node38 - -web::http::client:: -SocketContext::deliverResponse + +web::http::client:: +SocketContext::deliverResponse @@ -108,8 +108,8 @@ Node1->Node38 - - + + @@ -117,18 +117,18 @@ Node39 - -web::http::client:: -SocketContext::onDisconnected + +web::http::client:: +SocketContext::onDisconnected - + Node1->Node39 - - - + + + @@ -136,10 +136,10 @@ Node40 - -web::http::client:: -SocketContext::deliverResponse -ParseError + +web::http::client:: +SocketContext::deliverResponse +ParseError @@ -147,8 +147,8 @@ Node1->Node40 - - + + @@ -156,9 +156,9 @@ Node41 - -web::http::client:: -SocketContext::initiateRequest + +web::http::client:: +SocketContext::initiateRequest @@ -166,8 +166,8 @@ Node1->Node41 - - + + @@ -175,85 +175,66 @@ Node42 - -web::http::client:: -SocketContext::requestDelivered + +web::http::client:: +SocketContext::requestDelivered - + Node1->Node42 - - - + + + Node47 - - -web::http::client:: -SocketContext::requestPrepared + + +web::http::client:: +SocketContext::requestPrepared - + Node1->Node47 - - - - - - - - -Node53 - - -web::http::client:: -SocketContext::onConnected - - - - - -Node1->Node53 - - - + + + Node54 - - -web::http::server:: -SocketContext::onConnected + + +web::http::client:: +SocketContext::responseDelivered - + Node1->Node54 - - - + + + Node55 - - -web::http::server:: -SocketContext::onDisconnected + + +web::http::client:: +SocketContext::onConnected @@ -261,18 +242,18 @@ Node1->Node55 - - + + Node56 - - -web::http::client:: -SocketContext::onSignal + + +web::http::server:: +SocketContext::onConnected @@ -280,56 +261,75 @@ Node1->Node56 - - + + Node57 - - -web::http::server:: -SocketContext::onSignal + + +web::http::server:: +SocketContext::onDisconnected - + Node1->Node57 - - - + + + Node58 - - -web::http::server:: -SocketContext::requestStarted + + +web::http::client:: +SocketContext::onSignal - + Node1->Node58 - - - + + + + + + + + +Node59 + + +web::http::server:: +SocketContext::onSignal + + + + + +Node1->Node59 + + + Node60 - - -web::http::client:: -SocketContext::responseDelivered + + +web::http::server:: +SocketContext::requestStarted @@ -337,46 +337,46 @@ Node1->Node60 - - + + - - -Node61 - - -web::http::client:: -SocketContext::responseStarted + + +Node62 + + +web::http::client:: +SocketContext::responseStarted - - -Node1->Node61 - - - + + +Node1->Node62 + + + - - -Node63 - - -web::http::server:: -SocketContext::responseStarted + + +Node64 + + +web::http::server:: +SocketContext::responseStarted - - -Node1->Node63 - - - + + +Node1->Node64 + + + @@ -384,8 +384,8 @@ Node2->Node3 - - + + @@ -393,8 +393,8 @@ Node3->Node4 - - + + @@ -402,9 +402,9 @@ Node5 - -web::http::server:: -Response::sendCompleted + +web::http::server:: +Response::sendCompleted @@ -412,8 +412,8 @@ Node4->Node5 - - + + @@ -421,9 +421,9 @@ Node6 - -web::http::server:: -Response::onSourceEof + +web::http::server:: +Response::onSourceEof @@ -431,8 +431,8 @@ Node5->Node6 - - + + @@ -440,9 +440,9 @@ Node7 - -web::http::server:: -Response::onSourceError + +web::http::server:: +Response::onSourceError @@ -450,8 +450,8 @@ Node5->Node7 - - + + @@ -459,9 +459,9 @@ Node8 - -web::http::server:: -Response::send + +web::http::server:: +Response::send @@ -469,8 +469,8 @@ Node5->Node8 - - + + @@ -478,8 +478,8 @@ Node9 - -express::Response::send + +express::Response::send @@ -487,8 +487,8 @@ Node8->Node9 - - + + @@ -496,9 +496,9 @@ Node10 - -web::http::server:: -Response::send + +web::http::server:: +Response::send @@ -506,8 +506,8 @@ Node8->Node10 - - + + @@ -515,9 +515,9 @@ Node11 - -web::http::server:: -Response::end + +web::http::server:: +Response::end @@ -525,8 +525,8 @@ Node10->Node11 - - + + @@ -534,8 +534,8 @@ Node18 - -express::Response::send + +express::Response::send @@ -543,8 +543,8 @@ Node10->Node18 - - + + @@ -552,8 +552,8 @@ Node12 - -express::Response::end + +express::Response::end @@ -561,8 +561,8 @@ Node11->Node12 - - + + @@ -570,9 +570,9 @@ Node16 - -web::http::server:: -Response::upgrade + +web::http::server:: +Response::upgrade @@ -580,8 +580,8 @@ Node11->Node16 - - + + @@ -589,10 +589,10 @@ Node13 - -express::middleware -::StaticMiddleware:: -StaticMiddleware + +express::middleware +::StaticMiddleware:: +StaticMiddleware @@ -600,8 +600,8 @@ Node12->Node13 - - + + @@ -609,10 +609,10 @@ Node14 - -express::middleware -::StaticMiddleware:: -instance + +express::middleware +::StaticMiddleware:: +instance @@ -620,8 +620,8 @@ Node13->Node14 - - + + @@ -629,10 +629,10 @@ Node15 - -express::middleware -::StaticMiddleware:: -StaticMiddleware + +express::middleware +::StaticMiddleware:: +StaticMiddleware @@ -640,8 +640,8 @@ Node14->Node15 - - + + @@ -649,9 +649,9 @@ Node17 - -express::Response:: -upgrade + +express::Response:: +upgrade @@ -659,8 +659,8 @@ Node16->Node17 - - + + @@ -668,8 +668,8 @@ Node19 - -express::Response::json + +express::Response::json @@ -677,8 +677,8 @@ Node18->Node19 - - + + @@ -686,9 +686,9 @@ Node20 - -express::Response:: -sendStatus + +express::Response:: +sendStatus @@ -696,8 +696,8 @@ Node18->Node20 - - + + @@ -705,8 +705,8 @@ Node20->Node13 - - + + @@ -714,10 +714,10 @@ Node21 - -express::middleware -::BasicAuthentication -::BasicAuthentication + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -725,8 +725,8 @@ Node20->Node21 - - + + @@ -734,9 +734,9 @@ Node24 - -express::RootRoute -::dispatch + +express::RootRoute +::dispatch @@ -744,8 +744,8 @@ Node20->Node24 - - + + @@ -753,9 +753,9 @@ Node36 - -express::Response:: -redirect + +express::Response:: +redirect @@ -763,8 +763,8 @@ Node20->Node36 - - + + @@ -772,10 +772,10 @@ Node22 - -express::middleware -::BasicAuthentication -::instance + +express::middleware +::BasicAuthentication +::instance @@ -783,8 +783,8 @@ Node21->Node22 - - + + @@ -792,10 +792,10 @@ Node23 - -express::middleware -::BasicAuthentication -::BasicAuthentication + +express::middleware +::BasicAuthentication +::BasicAuthentication @@ -803,8 +803,8 @@ Node22->Node23 - - + + @@ -812,9 +812,9 @@ Node25 - -express::RootRoute -::dispatch + +express::RootRoute +::dispatch @@ -822,8 +822,8 @@ Node24->Node25 - - + + @@ -831,9 +831,9 @@ Node26 - -express::Controller -::next + +express::Controller +::next @@ -841,8 +841,8 @@ Node24->Node26 - - + + @@ -850,8 +850,8 @@ Node27 - -express::Next::operator() + +express::Next::operator() @@ -859,8 +859,8 @@ Node26->Node27 - - + + @@ -868,8 +868,8 @@ Node27->Node13 - - + + @@ -877,8 +877,8 @@ Node27->Node21 - - + + @@ -886,9 +886,9 @@ Node28 - -express::middleware -::JsonMiddleware::JsonMiddleware + +express::middleware +::JsonMiddleware::JsonMiddleware @@ -896,8 +896,8 @@ Node27->Node28 - - + + @@ -905,8 +905,8 @@ Node27->Node31 - - + + @@ -914,9 +914,9 @@ Node33 - -express::middleware -::VHost::VHost + +express::middleware +::VHost::VHost @@ -924,8 +924,8 @@ Node27->Node33 - - + + @@ -933,9 +933,9 @@ Node29 - -express::middleware -::JsonMiddleware::instance + +express::middleware +::JsonMiddleware::instance @@ -943,8 +943,8 @@ Node28->Node29 - - + + @@ -952,9 +952,9 @@ Node30 - -express::middleware -::JsonMiddleware::JsonMiddleware + +express::middleware +::JsonMiddleware::JsonMiddleware @@ -962,8 +962,8 @@ Node29->Node30 - - + + @@ -971,9 +971,9 @@ Node32 - -express::middleware -::VerboseRequest::VerboseRequest + +express::middleware +::VerboseRequest::VerboseRequest @@ -981,8 +981,8 @@ Node31->Node32 - - + + @@ -990,9 +990,9 @@ Node34 - -express::middleware -::VHost::instance + +express::middleware +::VHost::instance @@ -1000,8 +1000,8 @@ Node33->Node34 - - + + @@ -1009,9 +1009,9 @@ Node35 - -express::middleware -::VHost::VHost + +express::middleware +::VHost::VHost @@ -1019,8 +1019,8 @@ Node34->Node35 - - + + @@ -1028,8 +1028,8 @@ Node36->Node13 - - + + @@ -1037,9 +1037,9 @@ Node37 - -express::Response:: -redirect + +express::Response:: +redirect @@ -1047,8 +1047,8 @@ Node36->Node37 - - + + @@ -1056,8 +1056,8 @@ Node38->Node39 - - + + @@ -1065,8 +1065,8 @@ Node41->Node41 - - + + @@ -1074,8 +1074,8 @@ Node41->Node42 - - + + @@ -1083,8 +1083,17 @@ Node41->Node47 - - + + + + + + + +Node41->Node54 + + + @@ -1092,9 +1101,9 @@ Node43 - -web::http::client:: -Request::requestDelivered + +web::http::client:: +Request::requestDelivered @@ -1102,8 +1111,8 @@ Node42->Node43 - - + + @@ -1111,9 +1120,9 @@ Node44 - -web::http::client:: -Request::initiate + +web::http::client:: +Request::initiate @@ -1121,8 +1130,8 @@ Node43->Node44 - - + + @@ -1130,9 +1139,9 @@ Node45 - -web::http::client:: -Request::onSourceEof + +web::http::client:: +Request::onSourceEof @@ -1140,8 +1149,8 @@ Node43->Node45 - - + + @@ -1149,9 +1158,9 @@ Node46 - -web::http::client:: -Request::onSourceError + +web::http::client:: +Request::onSourceError @@ -1159,8 +1168,8 @@ Node43->Node46 - - + + @@ -1168,18 +1177,18 @@ Node44->Node41 - - + + Node48 - - -web::http::client:: -Request::end + + +web::http::client:: +Request::requestPrepared @@ -1187,197 +1196,216 @@ Node47->Node48 - - + + Node49 - - -web::http::client:: -Request::send + + +web::http::client:: +Request::end - - -Node47->Node49 - - - + + +Node48->Node49 + + + - - -Node51 - - -web::http::client:: -Request::sendFile + + +Node50 + + +web::http::client:: +Request::send - - -Node47->Node51 - - - + + +Node48->Node50 + + + Node52 - - -web::http::client:: -Request::upgrade + + +web::http::client:: +Request::sendFile - - -Node47->Node52 - - - + + +Node48->Node52 + + + - - -Node50 - - -web::http::client:: -Request::send + + +Node53 + + +web::http::client:: +Request::upgrade - - -Node49->Node50 - - - + + +Node48->Node53 + + + - - -Node59 - - -web::http::server:: -SocketContext::SocketContext - - - - - -Node58->Node59 - - - + + +Node51 + + +web::http::client:: +Request::send - - -Node60->Node38 - - - + + +Node50->Node51 + + + - - -Node62 - - -web::http::client:: -SocketContext::SocketContext + + +Node54->Node38 + + + - - -Node61->Node62 - - - + + +Node61 + + +web::http::server:: +SocketContext::SocketContext - - -Node64 - - -web::http::server:: -Response::sendHeader + + +Node60->Node61 + + + - - -Node63->Node64 - - - + + +Node63 + + +web::http::client:: +SocketContext::SocketContext - - -Node64->Node8 - - - + + +Node62->Node63 + + + Node65 - - -web::http::server:: -Response::onSourceConnect + + +web::http::server:: +Response::sendHeader - + Node64->Node65 - - - + + + + + + + + +Node65->Node8 + + + Node66 - - -express::Response:: -sendHeader + + +web::http::server:: +Response::onSourceConnect + + + + + +Node65->Node66 + + + + + + + + +Node67 + + +express::Response:: +sendHeader - - -Node64->Node66 - - - + + +Node65->Node67 + + + diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnector-members.html b/html/classcore_1_1socket_1_1stream_1_1SocketConnector-members.html index 1dcc6ded4f..ed35900d80 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnector-members.html +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnector-members.html @@ -103,72 +103,71 @@
ConnectEventReceiver(const std::string &name, const utils::Timeval &timeout)core::eventreceiver::ConnectEventReceiver
protected connectTimeout() finalcore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >privatevirtual descriptorEventPublishercore::DescriptorEventReceiverprivate - DescriptorEventReceiver(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiverprotected - DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiverprotected - destruct() finalcore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >protectedvirtual - disable()core::DescriptorEventReceiverprotected - dispatchEvent() finalcore::eventreceiver::ConnectEventReceiverprivatevirtual - enable(int fd)core::DescriptorEventReceiverprotected - enabledcore::DescriptorEventReceiverprivate - eventcore::EventReceiverprivate - eventCountercore::DescriptorEventReceiverprivate - EventReceiver(const std::string &name)core::EventReceiverprotected - getName() constcore::EventReceiverprotected - getRegisteredFd() constcore::DescriptorEventReceiverprotected - getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiverprotected - init()core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >protectedvirtual - initialTimeoutcore::DescriptorEventReceiverprivate - isEnabled() constcore::DescriptorEventReceiverprotected - isSuspended() constcore::DescriptorEventReceiverprotected - lastTriggeredcore::DescriptorEventReceiverprivate - maxInactivitycore::DescriptorEventReceiverprivate - observationCountercore::Observerprivate - observed()core::Observerprotected - observedFdcore::DescriptorEventReceiverprivate - Observer()=defaultcore::Observerprotected - Observer(const Observer &observer)core::Observerprotected + DescriptorEventReceiver(const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE)core::DescriptorEventReceiverprotected + destruct() finalcore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >protectedvirtual + disable()core::DescriptorEventReceiverprotected + dispatchEvent() finalcore::eventreceiver::ConnectEventReceiverprivatevirtual + enable(int fd)core::DescriptorEventReceiverprotected + enabledcore::DescriptorEventReceiverprivate + eventcore::EventReceiverprivate + eventCountercore::DescriptorEventReceiverprivate + EventReceiver(const std::string &name)core::EventReceiverprotected + EventReceiver(EventReceiver &)=deletecore::EventReceiverprotected + EventReceiver(EventReceiver &&)=deletecore::EventReceiverprotected + getName() constcore::EventReceiverprotected + getRegisteredFd() constcore::DescriptorEventReceiverprotected + getTimeout(const utils::Timeval &currentTime) constcore::DescriptorEventReceiverprotected + init()core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >protectedvirtual + initialTimeoutcore::DescriptorEventReceiverprivate + isEnabled() constcore::DescriptorEventReceiverprotected + isSuspended() constcore::DescriptorEventReceiverprotected + lastTriggeredcore::DescriptorEventReceiverprivate + maxInactivitycore::DescriptorEventReceiverprivate + observationCountercore::Observerprivate + observed()core::Observerprotected + observedFdcore::DescriptorEventReceiverprivate + Observer()=defaultcore::Observerprotected + Observer(Observer &)=deletecore::Observerprotected + Observer(Observer &&)=deletecore::Observerprotected onConnectcore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >protected onConnectedcore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >protected onDisconnectcore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >protected onEvent(const utils::Timeval &currentTime) finalcore::DescriptorEventReceiverprivatevirtual onSignal(int signum)core::DescriptorEventReceiverprivate onStatuscore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >protected - operator=(const SocketConnector &)=deletecore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT > - operator=(SocketConnector &&)=deletecore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT > - core::eventreceiver::ConnectEventReceiver::operator=(const DescriptorEventReceiver &)=deletecore::DescriptorEventReceiverprotected - PhysicalClientSocket typedefcore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >private + operator=(EventReceiver &)=deletecore::EventReceiverprotected + operator=(EventReceiver &&)=deletecore::EventReceiverprotected physicalClientSocketcore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >private - relax()core::EventReceiverprotected - remoteAddresscore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >private - resume()core::DescriptorEventReceiverprotected - setDisabled()core::DescriptorEventReceiverprivate - setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiverprotected - signalEvent(int signum) overridecore::eventreceiver::ConnectEventReceiverprivatevirtual - SocketAddress typedefcore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >protected - SocketConnection typedefcore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >protected - SocketConnector()=deletecore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT > - SocketConnector(SocketConnector &&)=deletecore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT > - SocketConnector(const std::shared_ptr< core::socket::stream::SocketContextFactory > &socketContextFactory, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus, const std::shared_ptr< Config > &config)core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT > - SocketConnector(const SocketConnector &socketConnector)core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT > - socketContextFactorycore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >protected - span()core::EventReceiverprotected - suspend()core::DescriptorEventReceiverprotected - suspendedcore::DescriptorEventReceiverprivate - timeoutEvent() finalcore::eventreceiver::ConnectEventReceiverprivatevirtual - triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate - unObserved()core::Observerprotected - unobservedEvent() finalcore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >privatevirtual - useNextSocketAddress()=0core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >pure virtual - ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual - ~Observer()core::Observerprotectedvirtual - ~SocketConnector() overridecore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT > + PhysicalClientSocket typedefcore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >private + relax()core::EventReceiverprotected + remoteAddresscore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >private + resume()core::DescriptorEventReceiverprotected + setDisabled()core::DescriptorEventReceiverprivate + setEnabled(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + setTimeout(const utils::Timeval &timeout)core::DescriptorEventReceiverprotected + signalEvent(int signum) overridecore::eventreceiver::ConnectEventReceiverprivatevirtual + SocketAddress typedefcore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >protected + SocketConnection typedefcore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >protected + SocketConnector(const std::shared_ptr< core::socket::stream::SocketContextFactory > &socketContextFactory, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus, const std::shared_ptr< Config > &config)core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT > + SocketConnector(const SocketConnector &socketConnector)core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT > + socketContextFactorycore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >protected + span()core::EventReceiverprotected + suspend()core::DescriptorEventReceiverprotected + suspendedcore::DescriptorEventReceiverprivate + timeoutEvent() finalcore::eventreceiver::ConnectEventReceiverprivatevirtual + triggered(const utils::Timeval &currentTime)core::DescriptorEventReceiverprivate + unObserved()core::Observerprotected + unobservedEvent() finalcore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >privatevirtual + useNextSocketAddress()=0core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >pure virtual + ~EventReceiver()=defaultcore::EventReceiverprotectedvirtual + ~Observer()core::Observerprotectedvirtual + ~SocketConnector() overridecore::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT > diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnector.html b/html/classcore_1_1socket_1_1stream_1_1SocketConnector.html index 69343f6de1..0377383d17 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnector.html +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnector.html @@ -117,14 +117,6 @@ - - - - - - - - @@ -367,63 +359,8 @@

Constructor & Destructor Documentation

- -

◆ SocketConnector() [1/4]

- -
-
-
-template<typename PhysicalSocketClientT , typename ConfigT , template< typename PhysicalSocketClient > typename SocketConnectionT>
-

Public Member Functions

 SocketConnector ()=delete
 
 SocketConnector (SocketConnector &&)=delete
 
SocketConnectoroperator= (const SocketConnector &)=delete
 
SocketConnectoroperator= (SocketConnector &&)=delete
 
 SocketConnector (const std::shared_ptr< core::socket::stream::SocketContextFactory > &socketContextFactory, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus, const std::shared_ptr< Config > &config)
 
 SocketConnector (const SocketConnector &socketConnector)
- - - - -
- - - - - - - -
core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector ()
-
-delete
-
- -
- - -

◆ SocketConnector() [2/4]

- -
-
-
-template<typename PhysicalSocketClientT , typename ConfigT , template< typename PhysicalSocketClient > typename SocketConnectionT>
- - - - - -
- - - - - - - - -
core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector (SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT > && )
-
-delete
-
- -
-
-

◆ SocketConnector() [3/4]

+

◆ SocketConnector() [1/2]

@@ -488,15 +425,15 @@

103 }

static void atNextTick(const std::function< void(void)> &callBack)
-
std::function< void(const SocketAddress &, core::socket::State)> onStatus
-
std::function< void(SocketConnection *)> onConnected
- -
std::shared_ptr< core::socket::stream::SocketContextFactory > socketContextFactory
-
std::function< void(SocketConnection *)> onDisconnect
-
std::function< void(SocketConnection *)> onConnect
- +
std::function< void(const SocketAddress &, core::socket::State)> onStatus
+
std::function< void(SocketConnection *)> onConnected
+ +
std::shared_ptr< core::socket::stream::SocketContextFactory > socketContextFactory
+
std::function< void(SocketConnection *)> onDisconnect
+
std::function< void(SocketConnection *)> onConnect
+
-

References core::EventReceiver::atNextTick(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::config, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onConnect, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onConnected, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onDisconnect, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onStatus, and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::socketContextFactory.

+

References core::EventReceiver::atNextTick(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::config, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onConnect, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onConnected, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onDisconnect, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onStatus, and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::socketContextFactory.

Here is the call graph for this function:
@@ -506,7 +443,7 @@

-

◆ SocketConnector() [4/4]

+

◆ SocketConnector() [2/2]

@@ -523,22 +460,20 @@

-

Definition at line 114 of file SocketConnector.hpp.

-
115 : core::Observer(socketConnector)
-
116 , core::eventreceiver::ConnectEventReceiver(socketConnector.config->getInstanceName() + " SocketConnector:", 0)
-
117 , socketContextFactory(socketConnector.socketContextFactory)
-
118 , onConnect(socketConnector.onConnect)
-
119 , onConnected(socketConnector.onConnected)
-
120 , onDisconnect(socketConnector.onDisconnect)
-
121 , onStatus(socketConnector.onStatus)
-
122 , config(socketConnector.config) {
-
123 atNextTick([this]() -> void {
-
124 init();
-
125 });
-
126 }
- +

Definition at line 106 of file SocketConnector.hpp.

+
107 : core::eventreceiver::ConnectEventReceiver(socketConnector.config->getInstanceName() + " SocketConnector:", 0)
+
108 , socketContextFactory(socketConnector.socketContextFactory)
+
109 , onConnect(socketConnector.onConnect)
+
110 , onConnected(socketConnector.onConnected)
+
111 , onDisconnect(socketConnector.onDisconnect)
+
112 , onStatus(socketConnector.onStatus)
+
113 , config(socketConnector.config) {
+
114 atNextTick([this]() -> void {
+
115 init();
+
116 });
+
117 }
-

References core::EventReceiver::atNextTick(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::config, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onConnect, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onConnected, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onDisconnect, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onStatus, and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::socketContextFactory.

+

References core::EventReceiver::atNextTick(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::config, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onConnect, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onConnected, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onDisconnect, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onStatus, and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::socketContextFactory.

Here is the call graph for this function:
@@ -572,9 +507,9 @@

-

Definition at line 132 of file SocketConnector.hpp.

-
132 {
-
133 }
+

Definition at line 120 of file SocketConnector.hpp.

+
120 {
+
121 }

@@ -631,7 +566,7 @@

References core::EventReceiver::EventReceiver(), and core::EventReceiver::span().

-

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by web::http::client::SocketContext::initiateRequest(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::responseDelivered(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::SocketAcceptor(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

Here is the call graph for this function:
-
+

@@ -669,17 +604,17 @@

-

Definition at line 171 of file DescriptorEventReceiver.cpp.

-
171 {
-
172 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
-
173 timeoutEvent();
-
174 }
-
175 }
- +

Definition at line 168 of file DescriptorEventReceiver.cpp.

+
168 {
+
169 if (maxInactivity > 0 && currentTime - lastTriggered >= maxInactivity) {
+
170 timeoutEvent();
+
171 }
+
172 }
+
virtual void timeoutEvent()=0
- +
-

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and core::DescriptorEventReceiver::timeoutEvent().

+

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), utils::Timeval::operator>(), utils::Timeval::operator>=(), and core::DescriptorEventReceiver::timeoutEvent().

Referenced by core::DescriptorEventPublisher::checkTimedOutEvents().

@@ -722,108 +657,108 @@

core::eventreceiver::ConnectEventReceiver.

-

Definition at line 264 of file SocketConnector.hpp.

-
264 {
-
265 int cErrno = 0;
-
266 if (physicalClientSocket.getSockError(cErrno) == 0) { // == 0->return valid : < 0->getsockopt failed
-
267 const utils::PreserveErrno pe(cErrno); // errno = cErrno
-
268
-
269 if (errno == 0) {
-
270 LOG(TRACE) << config->getInstanceName() << ": connect success '" << remoteAddress.toString() << "'";
-
271
-
272 onStatus(remoteAddress, core::socket::STATE_OK);
-
273
-
274 SocketConnection* socketConnection =
-
275 new SocketConnection(config->getInstanceName(),
-
276 std::move(physicalClientSocket),
- -
278 remoteAddress.toString(false),
-
279 getLocalSocketAddress<SocketAddress>(physicalClientSocket, config),
-
280 getRemoteSocketAddress<SocketAddress>(physicalClientSocket, config),
-
281 config->getReadTimeout(),
-
282 config->getWriteTimeout(),
-
283 config->getReadBlockSize(),
-
284 config->getWriteBlockSize(),
-
285 config->getTerminateTimeout());
-
286
-
287 onConnect(socketConnection);
-
288 onConnected(socketConnection);
-
289
-
290 disable();
-
291 } else if (PhysicalClientSocket::connectInProgress(errno)) {
-
292 LOG(TRACE) << config->getInstanceName() << ": connect still in progress '" << remoteAddress.toString() << "'";
-
293 } else if (remoteAddress.useNext()) {
-
294 core::socket::State state = core::socket::STATE_OK;
-
295
-
296 switch (errno) {
-
297 case EADDRINUSE:
-
298 case EADDRNOTAVAIL:
-
299 case ECONNREFUSED:
-
300 case ENETUNREACH:
-
301 case ENOENT:
-
302 case EHOSTDOWN:
-
303 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
-
304
-
305 state = core::socket::STATE_ERROR;
-
306 break;
-
307 default:
-
308 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
-
309
-
310 state = core::socket::STATE_FATAL;
-
311 break;
-
312 }
-
313
- -
315
-
316 LOG(TRACE) << config->getInstanceName() << ": using next SocketAddress '" << config->Remote::getSocketAddress().toString()
-
317 << "'";
-
318
- -
320
-
321 disable();
-
322 } else {
-
323 core::socket::State state = core::socket::STATE_OK;
-
324
-
325 switch (errno) {
-
326 case EADDRINUSE:
-
327 case EADDRNOTAVAIL:
-
328 case ECONNREFUSED:
-
329 case ENETUNREACH:
-
330 case ENOENT:
-
331 case EHOSTDOWN:
-
332 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
-
333
-
334 state = core::socket::STATE_ERROR;
-
335 break;
-
336 default:
-
337 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
-
338
-
339 state = core::socket::STATE_FATAL;
-
340 break;
-
341 }
-
342
-
343 onStatus(remoteAddress, state);
-
344
-
345 disable();
-
346 }
-
347 } else {
-
348 PLOG(TRACE) << config->getInstanceName() << ": getsockopt syscall error '" << remoteAddress.toString() << "'";
-
349
-
350 onStatus(remoteAddress, core::socket::STATE_FATAL);
-
351 disable();
-
352 }
-
353 }
- +

Definition at line 252 of file SocketConnector.hpp.

+
252 {
+
253 int cErrno = 0;
+
254 if (physicalClientSocket.getSockError(cErrno) == 0) { // == 0->return valid : < 0->getsockopt failed
+
255 const utils::PreserveErrno pe(cErrno); // errno = cErrno
+
256
+
257 if (errno == 0) {
+
258 LOG(TRACE) << config->getInstanceName() << ": connect success '" << remoteAddress.toString() << "'";
+
259
+
260 onStatus(remoteAddress, core::socket::STATE_OK);
+
261
+
262 SocketConnection* socketConnection =
+
263 new SocketConnection(config->getInstanceName(),
+
264 std::move(physicalClientSocket),
+ +
266 remoteAddress.toString(false),
+
267 getLocalSocketAddress<SocketAddress>(physicalClientSocket, config),
+
268 getRemoteSocketAddress<SocketAddress>(physicalClientSocket, config),
+
269 config->getReadTimeout(),
+
270 config->getWriteTimeout(),
+
271 config->getReadBlockSize(),
+
272 config->getWriteBlockSize(),
+
273 config->getTerminateTimeout());
+
274
+
275 onConnect(socketConnection);
+
276 onConnected(socketConnection);
+
277
+
278 disable();
+
279 } else if (PhysicalClientSocket::connectInProgress(errno)) {
+
280 LOG(TRACE) << config->getInstanceName() << ": connect still in progress '" << remoteAddress.toString() << "'";
+
281 } else if (remoteAddress.useNext()) {
+
282 core::socket::State state = core::socket::STATE_OK;
+
283
+
284 switch (errno) {
+
285 case EADDRINUSE:
+
286 case EADDRNOTAVAIL:
+
287 case ECONNREFUSED:
+
288 case ENETUNREACH:
+
289 case ENOENT:
+
290 case EHOSTDOWN:
+
291 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
+
292
+
293 state = core::socket::STATE_ERROR;
+
294 break;
+
295 default:
+
296 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
+
297
+
298 state = core::socket::STATE_FATAL;
+
299 break;
+
300 }
+
301
+ +
303
+
304 LOG(TRACE) << config->getInstanceName() << ": using next SocketAddress '" << config->Remote::getSocketAddress().toString()
+
305 << "'";
+
306
+ +
308
+
309 disable();
+
310 } else {
+
311 core::socket::State state = core::socket::STATE_OK;
+
312
+
313 switch (errno) {
+
314 case EADDRINUSE:
+
315 case EADDRNOTAVAIL:
+
316 case ECONNREFUSED:
+
317 case ENETUNREACH:
+
318 case ENOENT:
+
319 case EHOSTDOWN:
+
320 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
+
321
+
322 state = core::socket::STATE_ERROR;
+
323 break;
+
324 default:
+
325 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
+
326
+
327 state = core::socket::STATE_FATAL;
+
328 break;
+
329 }
+
330
+
331 onStatus(remoteAddress, state);
+
332
+
333 disable();
+
334 }
+
335 } else {
+
336 PLOG(TRACE) << config->getInstanceName() << ": getsockopt syscall error '" << remoteAddress.toString() << "'";
+
337
+
338 onStatus(remoteAddress, core::socket::STATE_FATAL);
+
339 disable();
+
340 }
+
341 }
+
static constexpr int NO_RETRY
Definition State.h:39
- +
SocketConnectionT< PhysicalClientSocket > SocketConnection
- +
-

References core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::config, core::DescriptorEventReceiver::disable(), core::socket::State::NO_RETRY, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onConnect, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onConnected, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onDisconnect, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onStatus, core::socket::State::operator|(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::physicalClientSocket, utils::PreserveErrno::PreserveErrno(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::remoteAddress, and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::useNextSocketAddress().

+

References core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::config, core::DescriptorEventReceiver::disable(), core::socket::State::NO_RETRY, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onConnect, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onConnected, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onDisconnect, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onStatus, core::socket::State::operator|(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::physicalClientSocket, utils::PreserveErrno::PreserveErrno(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::remoteAddress, and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::useNextSocketAddress().

Here is the call graph for this function:
@@ -859,25 +794,25 @@

core::eventreceiver::ConnectEventReceiver.

-

Definition at line 361 of file SocketConnector.hpp.

-
361 {
-
362 LOG(TRACE) << config->getInstanceName() << ": connect timeout " << remoteAddress.toString();
-
363
-
364 if (remoteAddress.useNext()) {
-
365 LOG(TRACE) << config->getInstanceName() << ": using next SocketAddress '" << config->Remote::getSocketAddress().toString()
-
366 << "'";
-
367
- -
369 } else {
-
370 LOG(TRACE) << config->getInstanceName() << ": connect timeout '" << remoteAddress.toString() << "'";
-
371
-
372 onStatus(remoteAddress, core::socket::STATE_ERROR);
-
373 }
-
374
-
375 disable();
-
376 }
+

Definition at line 349 of file SocketConnector.hpp.

+
349 {
+
350 LOG(TRACE) << config->getInstanceName() << ": connect timeout " << remoteAddress.toString();
+
351
+
352 if (remoteAddress.useNext()) {
+
353 LOG(TRACE) << config->getInstanceName() << ": using next SocketAddress '" << config->Remote::getSocketAddress().toString()
+
354 << "'";
+
355
+ +
357 } else {
+
358 LOG(TRACE) << config->getInstanceName() << ": connect timeout '" << remoteAddress.toString() << "'";
+
359
+
360 onStatus(remoteAddress, core::socket::STATE_ERROR);
+
361 }
+
362
+
363 disable();
+
364 }
-

References core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::config, core::DescriptorEventReceiver::disable(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::remoteAddress, and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::useNextSocketAddress().

+

References core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::config, core::DescriptorEventReceiver::disable(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::remoteAddress, and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::useNextSocketAddress().

Here is the call graph for this function:
@@ -913,12 +848,12 @@

core::EventReceiver.

-

Definition at line 379 of file SocketConnector.hpp.

-
379 {
-
380 delete this;
-
381 }
+

Definition at line 367 of file SocketConnector.hpp.

+
367 {
+
368 delete this;
+
369 }
-

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::unobservedEvent().

+

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::unobservedEvent().

Here is the caller graph for this function:
@@ -950,25 +885,25 @@

-

Definition at line 93 of file DescriptorEventReceiver.cpp.

-
93 {
-
94 if (enabled) {
-
95 enabled = false;
- -
97 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
-
98 } else {
-
99 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
-
100 }
-
101 }
+

Definition at line 90 of file DescriptorEventReceiver.cpp.

+
90 {
+
91 if (enabled) {
+
92 enabled = false;
+ +
94 LOG(TRACE) << getName() << " (" << observedFd << "): Disabled";
+
95 } else {
+
96 LOG(TRACE) << getName() << " (" << observedFd << "): Double disable";
+
97 }
+
98 }
void disable(DescriptorEventReceiver *descriptorEventReceiver)
- - -
DescriptorEventPublisher & descriptorEventPublisher
+ + +
DescriptorEventPublisher & descriptorEventPublisher
const std::string & getName() const
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::disable(), core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), and core::DescriptorEventReceiver::observedFd.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::disable(), core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), and core::DescriptorEventReceiver::observedFd.

-

Referenced by core::eventreceiver::AcceptEventReceiver::acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::eventreceiver::ConnectEventReceiver::connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::eof(), core::eventreceiver::ExceptionalConditionEventReceiver::outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSink::readEvent(), core::eventreceiver::ReadEventReceiver::readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), core::eventreceiver::AcceptEventReceiver::signalEvent(), core::eventreceiver::ConnectEventReceiver::signalEvent(), core::eventreceiver::ExceptionalConditionEventReceiver::signalEvent(), core::eventreceiver::ReadEventReceiver::signalEvent(), core::eventreceiver::WriteEventReceiver::signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), core::pipe::PipeSource::writeEvent(), core::eventreceiver::WriteEventReceiver::writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

+

Referenced by core::eventreceiver::AcceptEventReceiver::acceptTimeout(), database::mariadb::MariaDBConnection::commandContinue(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::eventreceiver::ConnectEventReceiver::connectTimeout(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), core::DescriptorEventPublisher::disable(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::eof(), core::eventreceiver::ExceptionalConditionEventReceiver::outOfBandTimeout(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSink::readEvent(), core::eventreceiver::ReadEventReceiver::readTimeout(), core::socket::stream::tls::TLSHandshake::readTimeout(), core::socket::stream::tls::TLSShutdown::readTimeout(), core::socket::stream::SocketWriter::signalEvent(), core::eventreceiver::AcceptEventReceiver::signalEvent(), core::eventreceiver::ConnectEventReceiver::signalEvent(), core::eventreceiver::ExceptionalConditionEventReceiver::signalEvent(), core::eventreceiver::ReadEventReceiver::signalEvent(), core::eventreceiver::WriteEventReceiver::signalEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), core::pipe::PipeSource::writeEvent(), core::eventreceiver::WriteEventReceiver::writeTimeout(), core::socket::stream::tls::TLSHandshake::writeTimeout(), and core::socket::stream::tls::TLSShutdown::writeTimeout().

Here is the call graph for this function:
@@ -1046,30 +981,30 @@

-

Definition at line 70 of file DescriptorEventReceiver.cpp.

-
70 {
- -
72 if (!enabled) {
-
73 observedFd = fd;
-
74
-
75 enabled = true;
- -
77 } else {
-
78 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
-
79 }
-
80 } else {
-
81 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
-
82 }
-
83
-
84 return enabled;
-
85 }
+

Definition at line 67 of file DescriptorEventReceiver.cpp.

+
67 {
+ +
69 if (!enabled) {
+
70 observedFd = fd;
+
71
+
72 enabled = true;
+ +
74 } else {
+
75 LOG(TRACE) << getName() << " (" << observedFd << "): Double enable";
+
76 }
+
77 } else {
+
78 LOG(TRACE) << getName() << " (" << observedFd << "): Enable after signal";
+
79 }
+
80
+
81 return enabled;
+
82 }
void enable(DescriptorEventReceiver *descriptorEventReceiver)
State eventLoopState()
Definition State.cpp:30
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::enable(), core::DescriptorEventReceiver::enabled, core::eventLoopState(), core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, and core::STOPPING.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventPublisher::enable(), core::DescriptorEventReceiver::enabled, core::eventLoopState(), core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, and core::STOPPING.

-

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::pipe::PipeSink::PipeSink(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

+

Referenced by core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::pipe::PipeSink::PipeSink(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), and core::socket::stream::tls::TLSShutdown::TLSShutdown().

Here is the call graph for this function:
@@ -1111,9 +1046,9 @@

66 return event.getName();

67 }
-

References core::EventReceiver::event, and core::Event::getName().

+

References core::EventReceiver::event, and core::Event::getName().

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::socket::stream::tls::SocketReader::read(), core::DescriptorEventReceiver::resume(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::SocketWriter::shutdownWrite(), core::socket::stream::SocketWriter::streamEof(), core::socket::stream::SocketWriter::streamToPeer(), core::DescriptorEventReceiver::suspend(), and core::socket::stream::tls::SocketWriter::write().

Here is the call graph for this function:
@@ -1150,12 +1085,12 @@

-

Definition at line 66 of file DescriptorEventReceiver.cpp.

-
66 {
-
67 return observedFd;
-
68 }
+

Definition at line 63 of file DescriptorEventReceiver.cpp.

+
63 {
+
64 return observedFd;
+
65 }
-

References core::DescriptorEventReceiver::observedFd.

+

References core::DescriptorEventReceiver::observedFd.

Referenced by core::DescriptorEventPublisher::enable(), core::epoll::DescriptorEventPublisher::EPollEvents::muxAdd(), core::select::DescriptorEventPublisher::muxAdd(), core::poll::PollFdsManager::muxAdd(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOff(), core::select::DescriptorEventPublisher::muxOff(), core::epoll::DescriptorEventPublisher::EPollEvents::muxOn(), core::select::DescriptorEventPublisher::muxOn(), core::socket::stream::legacy::SocketReader::read(), core::pipe::PipeSink::readEvent(), core::socket::stream::legacy::SocketWriter::write(), core::pipe::PipeSource::writeEvent(), core::pipe::PipeSink::~PipeSink(), and core::pipe::PipeSource::~PipeSource().

@@ -1190,12 +1125,12 @@

-

Definition at line 152 of file DescriptorEventReceiver.cpp.

-
152 {
-
153 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
-
154 }
+

Definition at line 149 of file DescriptorEventReceiver.cpp.

+
149 {
+
150 return maxInactivity > 0 ? currentTime > lastTriggered ? maxInactivity - (currentTime - lastTriggered) : 0 : TIMEOUT::MAX;
+
151 }
-

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

+

References core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::TIMEOUT::MAX, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator-(), and utils::Timeval::operator>().

Referenced by core::DescriptorEventPublisher::getNextTimeout().

@@ -1238,142 +1173,142 @@

core::socket::stream::tls::SocketConnector< PhysicalSocketClientT, ConfigT >.

-

Definition at line 136 of file SocketConnector.hpp.

-
136 {
-
137 if (!config->getDisabled()) {
-
138 try {
-
139 LOG(TRACE) << config->getInstanceName() << ": Starting";
-
140
-
141 remoteAddress = config->Remote::getSocketAddress();
-
142 SocketAddress localAddress = config->Local::getSocketAddress();
-
143
-
144 try {
-
145 if (physicalClientSocket.open(config->getSocketOptions(), PhysicalClientSocket::Flags::NONBLOCK) < 0) {
-
146 core::socket::State state = core::socket::STATE_OK;
+

Definition at line 124 of file SocketConnector.hpp.

+
124 {
+
125 if (!config->getDisabled()) {
+
126 try {
+
127 LOG(TRACE) << config->getInstanceName() << ": Starting";
+
128
+
129 remoteAddress = config->Remote::getSocketAddress();
+
130 SocketAddress localAddress = config->Local::getSocketAddress();
+
131
+
132 try {
+
133 if (physicalClientSocket.open(config->getSocketOptions(), PhysicalClientSocket::Flags::NONBLOCK) < 0) {
+
134 core::socket::State state = core::socket::STATE_OK;
+
135
+
136 switch (errno) {
+
137 case EMFILE:
+
138 case ENFILE:
+
139 case ENOBUFS:
+
140 case ENOMEM:
+
141 PLOG(TRACE) << config->getInstanceName() << ": open '" << localAddress.toString() << "'";
+
142
+
143 state = core::socket::STATE_ERROR;
+
144 break;
+
145 default:
+
146 PLOG(TRACE) << config->getInstanceName() << ": open failed '" << localAddress.toString() << "'";
147
-
148 switch (errno) {
-
149 case EMFILE:
-
150 case ENFILE:
-
151 case ENOBUFS:
-
152 case ENOMEM:
-
153 PLOG(TRACE) << config->getInstanceName() << ": open '" << localAddress.toString() << "'";
-
154
-
155 state = core::socket::STATE_ERROR;
-
156 break;
-
157 default:
-
158 PLOG(TRACE) << config->getInstanceName() << ": open failed '" << localAddress.toString() << "'";
+
148 state = core::socket::STATE_FATAL;
+
149 break;
+
150 }
+
151
+
152 onStatus(remoteAddress, state);
+
153 } else if (physicalClientSocket.bind(localAddress) < 0) {
+
154 core::socket::State state = core::socket::STATE_OK;
+
155
+
156 switch (errno) {
+
157 case EADDRINUSE:
+
158 PLOG(TRACE) << config->getInstanceName() << ": bind '" << localAddress.toString() << "'";
159
-
160 state = core::socket::STATE_FATAL;
+
160 state = core::socket::STATE_ERROR;
161 break;
-
162 }
-
163
-
164 onStatus(remoteAddress, state);
-
165 } else if (physicalClientSocket.bind(localAddress) < 0) {
-
166 core::socket::State state = core::socket::STATE_OK;
-
167
-
168 switch (errno) {
-
169 case EADDRINUSE:
-
170 PLOG(TRACE) << config->getInstanceName() << ": bind '" << localAddress.toString() << "'";
-
171
-
172 state = core::socket::STATE_ERROR;
-
173 break;
-
174 default:
-
175 PLOG(TRACE) << config->getInstanceName() << ": bind failed '" << localAddress.toString() << "'";
-
176
-
177 state = core::socket::STATE_FATAL;
-
178 break;
-
179 }
-
180
-
181 onStatus(remoteAddress, state);
-
182 } else if (physicalClientSocket.connect(remoteAddress) < 0 && !PhysicalClientSocket::connectInProgress(errno)) {
-
183 core::socket::State state = core::socket::STATE_OK;
-
184
-
185 switch (errno) {
-
186 case EADDRINUSE:
-
187 case EADDRNOTAVAIL:
-
188 case ECONNREFUSED:
-
189 case ENETUNREACH:
-
190 case ENOENT:
-
191 case EHOSTDOWN:
-
192 PLOG(TRACE) << config->getInstanceName() << ": connect '" << remoteAddress.toString() << "'";
+
162 default:
+
163 PLOG(TRACE) << config->getInstanceName() << ": bind failed '" << localAddress.toString() << "'";
+
164
+
165 state = core::socket::STATE_FATAL;
+
166 break;
+
167 }
+
168
+
169 onStatus(remoteAddress, state);
+
170 } else if (physicalClientSocket.connect(remoteAddress) < 0 && !PhysicalClientSocket::connectInProgress(errno)) {
+
171 core::socket::State state = core::socket::STATE_OK;
+
172
+
173 switch (errno) {
+
174 case EADDRINUSE:
+
175 case EADDRNOTAVAIL:
+
176 case ECONNREFUSED:
+
177 case ENETUNREACH:
+
178 case ENOENT:
+
179 case EHOSTDOWN:
+
180 PLOG(TRACE) << config->getInstanceName() << ": connect '" << remoteAddress.toString() << "'";
+
181
+
182 state = core::socket::STATE_ERROR;
+
183 break;
+
184 default:
+
185 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
+
186
+
187 state = core::socket::STATE_FATAL;
+
188 break;
+
189 }
+
190
+
191 if (remoteAddress.useNext()) {
+
193
-
194 state = core::socket::STATE_ERROR;
-
195 break;
-
196 default:
-
197 PLOG(TRACE) << config->getInstanceName() << ": connect failed '" << remoteAddress.toString() << "'";
-
198
-
199 state = core::socket::STATE_FATAL;
-
200 break;
-
201 }
-
202
-
203 if (remoteAddress.useNext()) {
- -
205
-
206 LOG(TRACE) << config->getInstanceName() << ": using next SocketAddress '"
-
207 << config->Remote::getSocketAddress().toString() << "'";
-
208
- -
210 } else {
-
211 onStatus(remoteAddress, state);
-
212 }
-
213 } else if (PhysicalClientSocket::connectInProgress(errno)) {
-
214 if (enable(physicalClientSocket.getFd())) {
-
215 LOG(TRACE) << config->getInstanceName() << ": connect in progress '" << remoteAddress.toString() << "'";
-
216 } else {
-
217 LOG(TRACE) << config->getInstanceName() << ": Error: not monitored by SNode.C";
-
218 }
-
219 } else {
-
220 LOG(TRACE) << config->getInstanceName() << ": connect success '" << remoteAddress.toString() << "'";
-
221
-
222 onStatus(remoteAddress, core::socket::STATE_OK);
-
223
-
224 SocketConnection* socketConnection =
-
225 new SocketConnection(config->getInstanceName(),
-
226 std::move(physicalClientSocket),
- -
228 remoteAddress.toString(false),
-
229 getLocalSocketAddress<SocketAddress>(physicalClientSocket, config),
-
230 getRemoteSocketAddress<SocketAddress>(physicalClientSocket, config),
-
231 config->getReadTimeout(),
-
232 config->getWriteTimeout(),
-
233 config->getReadBlockSize(),
-
234 config->getWriteBlockSize(),
-
235 config->getTerminateTimeout());
-
236
-
237 onConnect(socketConnection);
-
238 onConnected(socketConnection);
-
239 }
-
240 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) {
-
241 LOG(TRACE) << config->getInstanceName() << ": " << badSocketAddress.what();
-
242
-
243 onStatus({}, core::socket::STATE(badSocketAddress.getState(), badSocketAddress.getErrnum(), badSocketAddress.what()));
-
244 }
-
245 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) {
-
246 LOG(TRACE) << config->getInstanceName() << ": " << badSocketAddress.what();
-
247
-
248 onStatus({}, core::socket::STATE(badSocketAddress.getState(), badSocketAddress.getErrnum(), badSocketAddress.what()));
-
249 }
-
250 } else {
-
251 LOG(TRACE) << config->getInstanceName() << ": disabled";
-
252
-
253 onStatus({}, core::socket::STATE_DISABLED);
-
254 }
-
255
-
256 if (isEnabled()) {
- -
258 } else {
-
259 destruct();
-
260 }
-
261 }
-
void setTimeout(const utils::Timeval &timeout)
- - +
194 LOG(TRACE) << config->getInstanceName() << ": using next SocketAddress '"
+
195 << config->Remote::getSocketAddress().toString() << "'";
+
196
+ +
198 } else {
+
199 onStatus(remoteAddress, state);
+
200 }
+
201 } else if (PhysicalClientSocket::connectInProgress(errno)) {
+
202 if (enable(physicalClientSocket.getFd())) {
+
203 LOG(TRACE) << config->getInstanceName() << ": connect in progress '" << remoteAddress.toString() << "'";
+
204 } else {
+
205 LOG(TRACE) << config->getInstanceName() << ": Error: not monitored by SNode.C";
+
206 }
+
207 } else {
+
208 LOG(TRACE) << config->getInstanceName() << ": connect success '" << remoteAddress.toString() << "'";
+
209
+
210 onStatus(remoteAddress, core::socket::STATE_OK);
+
211
+
212 SocketConnection* socketConnection =
+
213 new SocketConnection(config->getInstanceName(),
+
214 std::move(physicalClientSocket),
+ +
216 remoteAddress.toString(false),
+
217 getLocalSocketAddress<SocketAddress>(physicalClientSocket, config),
+
218 getRemoteSocketAddress<SocketAddress>(physicalClientSocket, config),
+
219 config->getReadTimeout(),
+
220 config->getWriteTimeout(),
+
221 config->getReadBlockSize(),
+
222 config->getWriteBlockSize(),
+
223 config->getTerminateTimeout());
+
224
+
225 onConnect(socketConnection);
+
226 onConnected(socketConnection);
+
227 }
+
228 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) {
+
229 LOG(TRACE) << config->getInstanceName() << ": " << badSocketAddress.what();
+
230
+
231 onStatus({}, core::socket::STATE(badSocketAddress.getState(), badSocketAddress.getErrnum(), badSocketAddress.what()));
+
232 }
+
233 } catch (const typename SocketAddress::BadSocketAddress& badSocketAddress) {
+
234 LOG(TRACE) << config->getInstanceName() << ": " << badSocketAddress.what();
+
235
+
236 onStatus({}, core::socket::STATE(badSocketAddress.getState(), badSocketAddress.getErrnum(), badSocketAddress.what()));
+
237 }
+
238 } else {
+
239 LOG(TRACE) << config->getInstanceName() << ": disabled";
+
240
+
241 onStatus({}, core::socket::STATE_DISABLED);
+
242 }
+
243
+
244 if (isEnabled()) {
+ +
246 } else {
+
247 destruct();
+
248 }
+
249 }
+
void setTimeout(const utils::Timeval &timeout)
+ +
typename PhysicalClientSocket::SocketAddress SocketAddress
- +
-

References core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::config, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::destruct(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::socket::State::NO_RETRY, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onConnect, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onConnected, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onDisconnect, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onStatus, core::socket::State::operator|(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::physicalClientSocket, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::remoteAddress, core::DescriptorEventReceiver::setTimeout(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::useNextSocketAddress().

+

References core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::config, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::destruct(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::socket::State::NO_RETRY, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onConnect, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onConnected, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onDisconnect, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::onStatus, core::socket::State::operator|(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::physicalClientSocket, core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::remoteAddress, core::DescriptorEventReceiver::setTimeout(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::useNextSocketAddress().

-

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

Here is the call graph for this function:
@@ -1410,14 +1345,14 @@

-

Definition at line 107 of file DescriptorEventReceiver.cpp.

-
107 {
-
108 return enabled;
-
109 }
+

Definition at line 104 of file DescriptorEventReceiver.cpp.

+
104 {
+
105 return enabled;
+
106 }
-

References core::DescriptorEventReceiver::enabled.

+

References core::DescriptorEventReceiver::enabled.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketWriter::sendToPeer(), and core::socket::stream::SocketWriter::streamToPeer().

Here is the caller graph for this function:
@@ -1449,15 +1384,15 @@

-

Definition at line 138 of file DescriptorEventReceiver.cpp.

-
138 {
-
139 return suspended;
-
140 }
- +

Definition at line 135 of file DescriptorEventReceiver.cpp.

+
135 {
+
136 return suspended;
+
137 }
+
-

References core::DescriptorEventReceiver::suspended.

+

References core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::pipe::PipeSource::send().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::DescriptorEventPublisher::enable(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::pipe::PipeSource::send().

Here is the caller graph for this function:
@@ -1489,15 +1424,15 @@

-

Definition at line 41 of file DescriptorEventReceiver.cpp.

-
41 {
- -
43 }
- +

Definition at line 38 of file DescriptorEventReceiver.cpp.

+
38 {
+ +
40 }
+
-

References core::Observer::observationCounter.

+

References core::Observer::observationCounter.

-

Referenced by core::DescriptorEventReceiver::setEnabled().

+

Referenced by core::DescriptorEventReceiver::setEnabled().

Here is the caller graph for this function:
@@ -1532,18 +1467,18 @@

core::EventReceiver.

-

Definition at line 156 of file DescriptorEventReceiver.cpp.

-
156 {
-
157 eventCounter++;
-
158 triggered(currentTime);
-
159
- -
161 }
-
void triggered(const utils::Timeval &currentTime)
+

Definition at line 153 of file DescriptorEventReceiver.cpp.

+
153 {
+
154 eventCounter++;
+
155 triggered(currentTime);
+
156
+ +
158 }
+
void triggered(const utils::Timeval &currentTime)
virtual void dispatchEvent()=0
- +
-

References core::DescriptorEventReceiver::dispatchEvent(), core::DescriptorEventReceiver::eventCounter, and core::DescriptorEventReceiver::triggered().

+

References core::DescriptorEventReceiver::dispatchEvent(), core::DescriptorEventReceiver::eventCounter, and core::DescriptorEventReceiver::triggered().

Here is the call graph for this function:
@@ -1576,10 +1511,10 @@

-

Definition at line 163 of file DescriptorEventReceiver.cpp.

-
163 {
-
164 signalEvent(signum);
-
165 }
+

Definition at line 160 of file DescriptorEventReceiver.cpp.

+
160 {
+
161 signalEvent(signum);
+
162 }
virtual void signalEvent(int signum)=0

References core::DescriptorEventReceiver::signalEvent().

@@ -1596,62 +1531,6 @@

-
-

- -

◆ operator=() [1/2]

- -
-
-
-template<typename PhysicalSocketClientT , typename ConfigT , template< typename PhysicalSocketClient > typename SocketConnectionT>
- - - - - -
- - - - - - - - -
SocketConnector & core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::operator= (const SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT > & )
-
-delete
-
- -
-
- -

◆ operator=() [2/2]

- -
-
-
-template<typename PhysicalSocketClientT , typename ConfigT , template< typename PhysicalSocketClient > typename SocketConnectionT>
- - - - - -
- - - - - - - - -
SocketConnector & core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::operator= (SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT > && )
-
-delete
-
-
@@ -1682,7 +1561,7 @@

62 event.relax();

63 }

-

References core::EventReceiver::event, and core::Event::relax().

+

References core::EventReceiver::event, and core::Event::relax().

Here is the call graph for this function:
@@ -1714,26 +1593,26 @@

-

Definition at line 124 of file DescriptorEventReceiver.cpp.

-
124 {
-
125 if (enabled) {
-
126 if (suspended) {
-
127 suspended = false;
- - -
130 } else {
-
131 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
-
132 }
-
133 } else {
-
134 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
-
135 }
-
136 }
+

Definition at line 121 of file DescriptorEventReceiver.cpp.

+
121 {
+
122 if (enabled) {
+
123 if (suspended) {
+
124 suspended = false;
+ + +
127 } else {
+
128 LOG(TRACE) << getName() << " (" << observedFd << "): Double resume";
+
129 }
+
130 } else {
+
131 LOG(TRACE) << getName() << " (" << observedFd << "): Resume while not enabled";
+
132 }
+
133 }
void resume(DescriptorEventReceiver *descriptorEventReceiver)
static Timeval currentTime()
Definition Timeval.cpp:54
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and core::DescriptorEventReceiver::suspended.

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::lastTriggered, core::DescriptorEventReceiver::observedFd, utils::Timeval::operator=(), core::DescriptorEventPublisher::resume(), and core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSource::send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), database::mariadb::MariaDBConnection::commandStart(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::pipe::PipeSource::send(), core::socket::stream::SocketWriter::sendToPeer(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), and core::socket::stream::tls::TLSShutdown::writeEvent().

Here is the call graph for this function:
@@ -1770,13 +1649,13 @@

-

Definition at line 103 of file DescriptorEventReceiver.cpp.

-
103 {
-
104 unObserved();
-
105 }
- +

Definition at line 100 of file DescriptorEventReceiver.cpp.

+
100 {
+
101 unObserved();
+
102 }
+
-

References core::Observer::unObserved().

+

References core::Observer::unObserved().

Here is the call graph for this function:
@@ -1809,15 +1688,15 @@

-

Definition at line 87 of file DescriptorEventReceiver.cpp.

-
87 {
-
88 lastTriggered = currentTime;
-
89
-
90 observed();
-
91 }
- +

Definition at line 84 of file DescriptorEventReceiver.cpp.

+
84 {
+
85 lastTriggered = currentTime;
+
86
+
87 observed();
+
88 }
+
-

References core::DescriptorEventReceiver::lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::lastTriggered, core::Observer::observed(), and utils::Timeval::operator=().

Referenced by core::DescriptorEventPublisher::enable().

@@ -1857,22 +1736,22 @@

-

Definition at line 142 of file DescriptorEventReceiver.cpp.

-
142 {
-
143 if (timeout == TIMEOUT::DEFAULT) {
- -
145 } else {
-
146 this->maxInactivity = timeout;
-
147 }
-
148
- -
150 }
- - +

Definition at line 139 of file DescriptorEventReceiver.cpp.

+
139 {
+
140 if (timeout == TIMEOUT::DEFAULT) {
+ +
142 } else {
+
143 this->maxInactivity = timeout;
+
144 }
+
145
+ +
147 }
+ +
-

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, core::DescriptorEventReceiver::initialTimeout, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and core::DescriptorEventReceiver::triggered().

+

References utils::Timeval::currentTime(), core::DescriptorEventReceiver::TIMEOUT::DEFAULT, core::DescriptorEventReceiver::initialTimeout, core::DescriptorEventReceiver::maxInactivity, utils::Timeval::operator=(), utils::Timeval::operator==(), and core::DescriptorEventReceiver::triggered().

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketWriter::shutdownWrite().

Here is the call graph for this function:
@@ -1917,7 +1796,7 @@

51 disable();

52 }
-

References core::DescriptorEventReceiver::disable().

+

References core::DescriptorEventReceiver::disable().

Here is the call graph for this function:
@@ -1954,9 +1833,9 @@

58 event.span();

59 }

-

References core::EventReceiver::event, and core::Event::span().

+

References core::EventReceiver::event, and core::Event::span().

-

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

+

Referenced by core::EventReceiver::atNextTick(), database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), database::mariadb::MariaDBConnection::execute_async(), core::file::FileReader::onEvent(), iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onMessageEnd(), core::file::FileReader::resume(), core::epoll::DescriptorEventPublisher::spanActiveEvents(), core::poll::DescriptorEventPublisher::spanActiveEvents(), core::select::DescriptorEventPublisher::spanActiveEvents(), core::TimerEventPublisher::spanActiveEvents(), core::file::FileReader::start(), core::file::FileReader::stop(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().

Here is the call graph for this function:
-
+
@@ -1993,24 +1872,24 @@

-

Definition at line 111 of file DescriptorEventReceiver.cpp.

-
111 {
-
112 if (enabled) {
-
113 if (!suspended) {
-
114 suspended = true;
- -
116 } else {
-
117 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
-
118 }
-
119 } else {
-
120 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
-
121 }
-
122 }
+

Definition at line 108 of file DescriptorEventReceiver.cpp.

+
108 {
+
109 if (enabled) {
+
110 if (!suspended) {
+
111 suspended = true;
+ +
113 } else {
+
114 LOG(TRACE) << getName() << " (" << observedFd << "): Double suspend";
+
115 }
+
116 } else {
+
117 LOG(TRACE) << getName() << " (" << observedFd << "): Suspend while not enabled";
+
118 }
+
119 }
void suspend(DescriptorEventReceiver *descriptorEventReceiver)
-

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, core::DescriptorEventPublisher::suspend(), and core::DescriptorEventReceiver::suspended.

+

References core::DescriptorEventReceiver::descriptorEventPublisher, core::DescriptorEventReceiver::enabled, core::EventReceiver::getName(), core::DescriptorEventReceiver::observedFd, core::DescriptorEventPublisher::suspend(), and core::DescriptorEventReceiver::suspended.

-

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and core::pipe::PipeSource::writeEvent().

+

Referenced by database::mariadb::MariaDBConnection::checkStatus(), core::socket::stream::SocketReader::doRead(), core::socket::stream::SocketWriter::doWrite(), core::pipe::PipeSource::PipeSource(), core::socket::stream::tls::TLSHandshake::readEvent(), core::socket::stream::tls::TLSShutdown::readEvent(), core::socket::stream::tls::TLSHandshake::TLSHandshake(), core::socket::stream::tls::TLSShutdown::TLSShutdown(), core::socket::stream::tls::TLSHandshake::writeEvent(), core::socket::stream::tls::TLSShutdown::writeEvent(), and core::pipe::PipeSource::writeEvent().

Here is the call graph for this function:
@@ -2088,14 +1967,14 @@

-

Definition at line 167 of file DescriptorEventReceiver.cpp.

-
167 {
-
168 lastTriggered = currentTime;
-
169 }
+

Definition at line 164 of file DescriptorEventReceiver.cpp.

+
164 {
+
165 lastTriggered = currentTime;
+
166 }
-

References core::DescriptorEventReceiver::lastTriggered, and utils::Timeval::operator=().

+

References core::DescriptorEventReceiver::lastTriggered, and utils::Timeval::operator=().

-

Referenced by core::DescriptorEventReceiver::onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::onEvent(), core::DescriptorEventPublisher::releaseDisabledEvents(), and core::DescriptorEventReceiver::setTimeout().

Here is the call graph for this function:
@@ -2132,19 +2011,19 @@

-

Definition at line 45 of file DescriptorEventReceiver.cpp.

-
45 {
- -
47
-
48 if (observationCounter == 0) {
- -
50 }
-
51 }
+

Definition at line 42 of file DescriptorEventReceiver.cpp.

+
42 {
+ +
44
+
45 if (observationCounter == 0) {
+ +
47 }
+
48 }
virtual void unobservedEvent()=0
-

References core::Observer::observationCounter, and core::Observer::unobservedEvent().

+

References core::Observer::observationCounter, and core::Observer::unobservedEvent().

-

Referenced by core::DescriptorEventReceiver::setDisabled().

+

Referenced by core::DescriptorEventReceiver::setDisabled().

Here is the call graph for this function:
@@ -2185,12 +2064,12 @@

core::Observer.

-

Definition at line 356 of file SocketConnector.hpp.

-
356 {
-
357 destruct();
-
358 }
+

Definition at line 344 of file SocketConnector.hpp.

+
344 {
+
345 destruct();
+
346 }
-

References core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::destruct().

+

References core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::destruct().

Here is the call graph for this function:
@@ -2226,7 +2105,7 @@

core::socket::stream::legacy::SocketConnector< PhysicalClientSocketT, ConfigT >, and core::socket::stream::tls::SocketConnector< PhysicalSocketClientT, ConfigT >.

-

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init().

+

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init().

Here is the caller graph for this function:

@@ -2284,9 +2163,9 @@

-

Definition at line 104 of file DescriptorEventReceiver.h.

+

Definition at line 101 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -2310,9 +2189,9 @@

-

Definition at line 108 of file DescriptorEventReceiver.h.

+

Definition at line 105 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::isEnabled(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -2336,7 +2215,7 @@

-

Definition at line 59 of file EventReceiver.h.

+

Definition at line 65 of file EventReceiver.h.

Referenced by core::EventReceiver::EventReceiver(), core::EventReceiver::getName(), core::EventReceiver::relax(), and core::EventReceiver::span().

@@ -2362,9 +2241,9 @@

-

Definition at line 115 of file DescriptorEventReceiver.h.

+

Definition at line 112 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::onEvent().

+

Referenced by core::DescriptorEventReceiver::onEvent().

@@ -2388,9 +2267,9 @@

-

Definition at line 113 of file DescriptorEventReceiver.h.

+

Definition at line 110 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::DescriptorEventReceiver(), and core::DescriptorEventReceiver::setTimeout().

@@ -2414,9 +2293,9 @@

-

Definition at line 111 of file DescriptorEventReceiver.h.

+

Definition at line 108 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::resume(), core::DescriptorEventReceiver::setEnabled(), and core::DescriptorEventReceiver::triggered().

+

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::getTimeout(), core::DescriptorEventReceiver::resume(), core::DescriptorEventReceiver::setEnabled(), and core::DescriptorEventReceiver::triggered().

@@ -2440,9 +2319,9 @@

-

Definition at line 112 of file DescriptorEventReceiver.h.

+

Definition at line 109 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::getTimeout(), and core::DescriptorEventReceiver::setTimeout().

+

Referenced by core::DescriptorEventReceiver::checkTimeout(), core::DescriptorEventReceiver::DescriptorEventReceiver(), core::DescriptorEventReceiver::getTimeout(), and core::DescriptorEventReceiver::setTimeout().

@@ -2466,9 +2345,9 @@

-

Definition at line 53 of file DescriptorEventReceiver.h.

+

Definition at line 54 of file DescriptorEventReceiver.h.

-

Referenced by core::Observer::observed(), and core::Observer::unObserved().

+

Referenced by core::Observer::observed(), and core::Observer::unObserved().

@@ -2492,9 +2371,9 @@

-

Definition at line 106 of file DescriptorEventReceiver.h.

+

Definition at line 103 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::disable(), core::DescriptorEventReceiver::enable(), core::DescriptorEventReceiver::getRegisteredFd(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -2520,9 +2399,9 @@

-

Definition at line 88 of file SocketConnector.h.

+

Definition at line 82 of file SocketConnector.h.

-

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

@@ -2548,9 +2427,9 @@

-

Definition at line 89 of file SocketConnector.h.

+

Definition at line 83 of file SocketConnector.h.

-

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

@@ -2576,9 +2455,9 @@

-

Definition at line 90 of file SocketConnector.h.

+

Definition at line 84 of file SocketConnector.h.

-

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

@@ -2604,9 +2483,9 @@

-

Definition at line 92 of file SocketConnector.h.

+

Definition at line 86 of file SocketConnector.h.

-

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

@@ -2632,9 +2511,9 @@

-

Definition at line 82 of file SocketConnector.h.

+

Definition at line 76 of file SocketConnector.h.

-

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init().

+

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init().

@@ -2660,9 +2539,9 @@

-

Definition at line 83 of file SocketConnector.h.

+

Definition at line 77 of file SocketConnector.h.

-

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init().

+

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectTimeout(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init().

@@ -2688,9 +2567,9 @@

-

Definition at line 86 of file SocketConnector.h.

+

Definition at line 80 of file SocketConnector.h.

-

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

+

Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::SocketConnector().

@@ -2714,9 +2593,9 @@

-

Definition at line 109 of file DescriptorEventReceiver.h.

+

Definition at line 106 of file DescriptorEventReceiver.h.

-

Referenced by core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

+

Referenced by core::DescriptorEventReceiver::isSuspended(), core::DescriptorEventReceiver::resume(), and core::DescriptorEventReceiver::suspend().

@@ -2730,7 +2609,7 @@

diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketConnector.js b/html/classcore_1_1socket_1_1stream_1_1SocketConnector.js index 13e6157832..c0f0c618aa 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketConnector.js +++ b/html/classcore_1_1socket_1_1stream_1_1SocketConnector.js @@ -4,8 +4,6 @@ var classcore_1_1socket_1_1stream_1_1SocketConnector = [ "PhysicalClientSocket", "classcore_1_1socket_1_1stream_1_1SocketConnector.html#aa1cab9eee4a6038352eb9e9328f2083b", null ], [ "SocketAddress", "classcore_1_1socket_1_1stream_1_1SocketConnector.html#a129471adf94d653baa0e0add8f570d8e", null ], [ "SocketConnection", "classcore_1_1socket_1_1stream_1_1SocketConnector.html#a4bdb15720d6610c3009b14fade335b45", null ], - [ "SocketConnector", "classcore_1_1socket_1_1stream_1_1SocketConnector.html#a10c91e58b624d140506dc91a479980bf", null ], - [ "SocketConnector", "classcore_1_1socket_1_1stream_1_1SocketConnector.html#a494537f67927c74a4c87f5ef802f2e47", null ], [ "SocketConnector", "classcore_1_1socket_1_1stream_1_1SocketConnector.html#adfc9c27364cc6402e2cf8d14e5f642ab", null ], [ "SocketConnector", "classcore_1_1socket_1_1stream_1_1SocketConnector.html#a38a0ce2d9d4a212145c3021b3ab3460f", null ], [ "~SocketConnector", "classcore_1_1socket_1_1stream_1_1SocketConnector.html#aed7bb767910f9cfa4d742aef23625953", null ], @@ -26,8 +24,6 @@ var classcore_1_1socket_1_1stream_1_1SocketConnector = [ "observed", "classcore_1_1socket_1_1stream_1_1SocketConnector.html#aeff595f74f25efea85406cf700e13550", null ], [ "onEvent", "classcore_1_1socket_1_1stream_1_1SocketConnector.html#aa0c0922c02cd86d913987035fe3a8f80", null ], [ "onSignal", "classcore_1_1socket_1_1stream_1_1SocketConnector.html#a4f774310060571d7d0c1cb53129333e1", null ], - [ "operator=", "classcore_1_1socket_1_1stream_1_1SocketConnector.html#acdb00f9276e97d3306a1752501a16ca4", null ], - [ "operator=", "classcore_1_1socket_1_1stream_1_1SocketConnector.html#afc1c68b7f11f72fc8bf4eee1e9abc080", null ], [ "relax", "classcore_1_1socket_1_1stream_1_1SocketConnector.html#a748159baa69a639df53ac5675ae8425f", null ], [ "resume", "classcore_1_1socket_1_1stream_1_1SocketConnector.html#afa983ac6b0ba8f28ce4c0fc16cd914f8", null ], [ "setDisabled", "classcore_1_1socket_1_1stream_1_1SocketConnector.html#a53b16eb14da654bfaf9a7e28e3024ff1", null ], diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketContext-members.html b/html/classcore_1_1socket_1_1stream_1_1SocketContext-members.html index 8cfb4a59e6..eb15a0c259 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketContext-members.html +++ b/html/classcore_1_1socket_1_1stream_1_1SocketContext-members.html @@ -129,7 +129,7 @@ diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketContext.html b/html/classcore_1_1socket_1_1stream_1_1SocketContext.html index 21fa3249e4..69c6947bb4 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketContext.html +++ b/html/classcore_1_1socket_1_1stream_1_1SocketContext.html @@ -238,7 +238,7 @@

References socketConnection.

-

Referenced by iot::mqtt_fast::SocketContext::SocketContext(), web::http::client::SocketContext::SocketContext(), web::http::server::SocketContext::SocketContext(), and iot::mqtt::SocketContext::SocketContext().

+

Referenced by iot::mqtt_fast::SocketContext::SocketContext(), web::http::client::SocketContext::SocketContext(), web::http::server::SocketContext::SocketContext(), and iot::mqtt::SocketContext::SocketContext().

Here is the caller graph for this function:
@@ -283,7 +283,7 @@

References core::socket::stream::SocketConnection::close(), and socketConnection.

-

Referenced by iot::mqtt::SocketContext::close(), web::http::client::Request::executeUpgrade(), iot::mqtt_fast::SocketContext::onReceivedFromPeer(), web::http::client::Request::onSourceError(), web::http::server::Response::onSourceError(), and web::http::client::Request::upgrade().

+

Referenced by iot::mqtt::SocketContext::close(), web::http::client::Request::executeUpgrade(), iot::mqtt_fast::SocketContext::onReceivedFromPeer(), web::http::client::Request::onSourceError(), web::http::server::Response::onSourceError(), and web::http::client::Request::upgrade().

Here is the call graph for this function:
@@ -319,11 +319,11 @@

References socketConnection.

-

Referenced by web::http::server::SocketContext::deliverRequest(), web::http::client::SocketContext::deliverResponse(), web::http::client::SocketContext::deliverResponseParseError(), iot::mqtt::SocketContext::getSocketConnection(), web::http::client::SocketContext::initiateRequest(), web::http::client::SocketContext::onConnected(), web::http::server::SocketContext::onConnected(), web::http::client::SocketContext::onDisconnected(), web::http::server::SocketContext::onDisconnected(), web::http::client::SocketContext::onSignal(), web::http::server::SocketContext::onSignal(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::requestPrepared(), web::http::server::SocketContext::requestStarted(), web::http::server::SocketContext::responseCompleted(), web::http::client::SocketContext::responseDelivered(), web::http::client::SocketContext::responseStarted(), web::http::server::SocketContext::responseStarted(), web::http::client::SocketContext::SocketContext(), web::http::server::Response::upgrade(), web::http::client::Request::upgrade(), and express::middleware::VerboseRequest::VerboseRequest().

+

Referenced by web::http::server::SocketContext::deliverRequest(), web::http::client::SocketContext::deliverResponse(), web::http::client::SocketContext::deliverResponseParseError(), iot::mqtt::SocketContext::getSocketConnection(), web::http::client::SocketContext::initiateRequest(), web::http::client::SocketContext::onConnected(), web::http::server::SocketContext::onConnected(), web::http::client::SocketContext::onDisconnected(), web::http::server::SocketContext::onDisconnected(), web::http::client::SocketContext::onSignal(), web::http::server::SocketContext::onSignal(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::client::SocketContext::requestPrepared(), web::http::server::SocketContext::requestStarted(), web::http::server::SocketContext::responseCompleted(), web::http::client::SocketContext::responseDelivered(), web::http::client::SocketContext::responseStarted(), web::http::server::SocketContext::responseStarted(), web::http::client::SocketContext::SocketContext(), web::http::server::Response::upgrade(), web::http::client::Request::upgrade(), and express::middleware::VerboseRequest::VerboseRequest().

Here is the caller graph for this function:
-
+

@@ -665,7 +665,7 @@

References core::socket::stream::SocketConnection::sendToPeer(), and socketConnection.

-

Referenced by web::http::client::Request::executeSendFragment(), iot::mqtt::SocketContext::send(), iot::mqtt_fast::SocketContext::send(), and web::http::server::Response::sendFragment().

+

Referenced by web::http::client::Request::executeSendFragment(), iot::mqtt::SocketContext::send(), iot::mqtt_fast::SocketContext::send(), and web::http::server::Response::sendFragment().

Here is the call graph for this function:
-
+

@@ -843,7 +843,7 @@

References core::socket::stream::SocketConnection::shutdownWrite(), and socketConnection.

-

Referenced by web::http::client::SocketContext::deliverResponseParseError(), iot::mqtt::SocketContext::end(), onReadError(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::server::SocketContext::responseCompleted(), web::http::client::SocketContext::responseDelivered(), and web::http::client::SocketContext::responseStarted().

+

Referenced by web::http::client::SocketContext::deliverResponseParseError(), iot::mqtt::SocketContext::end(), onReadError(), web::http::server::SocketContext::requestCompleted(), web::http::client::SocketContext::requestDelivered(), web::http::server::SocketContext::responseCompleted(), web::http::client::SocketContext::responseDelivered(), and web::http::client::SocketContext::responseStarted().

Here is the call graph for this function:
-
+

@@ -880,7 +880,7 @@

References socketConnection, and core::socket::stream::SocketConnection::streamEof().

-

Referenced by web::http::client::Request::onSourceEof(), web::http::server::Response::onSourceEof(), web::http::client::Request::onSourceError(), web::http::server::Response::onSourceError(), web::http::client::Request::~Request(), and web::http::server::Response::~Response().

+

Referenced by web::http::client::Request::onSourceEof(), web::http::server::Response::onSourceEof(), web::http::client::Request::onSourceError(), web::http::server::Response::onSourceError(), web::http::client::Request::~Request(), and web::http::server::Response::~Response().

Here is the call graph for this function:
@@ -918,7 +918,7 @@

References socketConnection, and core::socket::stream::SocketConnection::streamToPeer().

-

Referenced by web::http::client::Request::onSourceConnect(), and web::http::server::Response::onSourceConnect().

+

Referenced by web::http::client::Request::onSourceConnect(), and web::http::server::Response::onSourceConnect().

Here is the call graph for this function:
@@ -964,7 +964,7 @@

References socketConnection, and core::socket::stream::SocketConnection::switchSocketContext().

-

Referenced by web::http::server::Response::sendCompleted(), and web::http::client::Request::upgrade().

+

Referenced by web::http::server::Response::sendCompleted(), and web::http::client::Request::upgrade().

Here is the call graph for this function:
@@ -1066,7 +1066,7 @@

    - +

diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketContextFactory-members.html b/html/classcore_1_1socket_1_1stream_1_1SocketContextFactory-members.html index 884e4984a2..f3c4f4ddbb 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketContextFactory-members.html +++ b/html/classcore_1_1socket_1_1stream_1_1SocketContextFactory-members.html @@ -96,14 +96,18 @@

This is the complete list of members for core::socket::stream::SocketContextFactory, including all inherited members.

+ + + +
create(core::socket::stream::SocketConnection *socketConnection)=0core::socket::stream::SocketContextFactorypure virtual
operator=(SocketContextFactory &)=deletecore::socket::stream::SocketContextFactory
operator=(SocketContextFactory &&)=deletecore::socket::stream::SocketContextFactory
SocketContextFactory()=defaultcore::socket::stream::SocketContextFactoryprotected
SocketContextFactory(SocketContextFactory &)=deletecore::socket::stream::SocketContextFactory
SocketContextFactory(SocketContextFactory &&)=deletecore::socket::stream::SocketContextFactory
~SocketContextFactory()core::socket::stream::SocketContextFactoryprotectedvirtual

diff --git a/html/classcore_1_1socket_1_1stream_1_1SocketContextFactory.html b/html/classcore_1_1socket_1_1stream_1_1SocketContextFactory.html index 6b9aab7af2..dca176d942 100644 --- a/html/classcore_1_1socket_1_1stream_1_1SocketContextFactory.html +++ b/html/classcore_1_1socket_1_1stream_1_1SocketContextFactory.html @@ -111,6 +111,14 @@ + + + + + + + +

Public Member Functions

 SocketContextFactory (SocketContextFactory &)=delete
 
 SocketContextFactory (SocketContextFactory &&)=delete
 
SocketContextFactoryoperator= (SocketContextFactory &)=delete
 
SocketContextFactoryoperator= (SocketContextFactory &&)=delete
 
virtual core::socket::stream::SocketContextcreate (core::socket::stream::SocketConnection *socketConnection)=0
 
@@ -126,7 +134,7 @@

Definition at line 34 of file SocketContextFactory.h.

Constructor & Destructor Documentation

-

◆ SocketContextFactory()

+

◆ SocketContextFactory() [1/3]

+ +

◆ SocketContextFactory() [2/3]

+ +
+
+
+ + + + +
+ + + + + + + + +
core::socket::stream::SocketContextFactory::SocketContextFactory (SocketContextFactory)
+
+delete
+

+ +
+ + +

◆ SocketContextFactory() [3/3]

+ +
+
+ + + + + +
+ + + + + + + + +
core::socket::stream::SocketContextFactory::SocketContextFactory (SocketContextFactory && )
+
+delete
+
+

Member Function Documentation

@@ -215,6 +275,58 @@

+ + + +

◆ operator=() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + +
SocketContextFactory & core::socket::stream::SocketContextFactory::operator= (SocketContextFactory && )
+
+delete
+
+ +
+
+ +

◆ operator=() [2/2]

+ +
+
+ + + + + +
+ + + + + + + + +
SocketContextFactory & core::socket::stream::SocketContextFactory::operator= (SocketContextFactory)
+
+delete
+
+

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