add:添加链接本地服务器时自动Get。

This commit is contained in:
taynpg 2025-04-07 11:35:17 +08:00
parent 6cff24fd13
commit c4632bcfad

@ -69,10 +69,17 @@ void CClient::run(const std::string& ip, const std::string& port, const std::str
std::thread thread([&]() { io_context_.run(); }); std::thread thread([&]() { io_context_.run(); });
th_down_active_ = std::thread([&]() { judget_down_active(); }); th_down_active_ = std::thread([&]() { judget_down_active(); });
auto* bf = new CFrameBuffer(); {
bf->type_ = TYPE_GET_ID; auto* bf = new CFrameBuffer();
send_frame(bf); bf->type_ = TYPE_GET_ID;
delete bf; send_frame(bf);
delete bf;
}
if (ip == "127.0.0.1") {
get_task_list();
}
TLOGI("version: {}", VERSION_NUM); TLOGI("version: {}", VERSION_NUM);
TLOGI("opensource: {}", VERSION_URL); TLOGI("opensource: {}", VERSION_URL);
TLOGW("SupportCmd ==>"); TLOGW("SupportCmd ==>");