This commit is contained in:
2026-06-24 09:54:17 +08:00
parent 05dec135ed
commit 351fc5c453
7 changed files with 252 additions and 483 deletions
@@ -1,5 +1,14 @@
#include "Local_Server/Data_Feed/Data_Feed.h"
#include "../server/Global.h"
bool Data_Feed::registered() {
auto all_feed = Global::instance()->mode_acs.data_feed_config.map.list();
for (auto& item : all_feed) {
if (item.get() == this) {
return true;
}
}
return false;
}
void Data_Feed_UDP_Server::handle_in_loop() {
ucoro::sync_await(handle_in_loop_coro());
}
@@ -100,6 +100,8 @@ public:
std::string to_string() {
return "Data_Feed【" + VAR_STR_3(key, enable, type) + "";
}
bool registered();
protected:
Data_Feed() = default;
bool _open_ = false;