tcp udp 改协程

This commit is contained in:
2026-06-23 09:23:01 +08:00
parent 9a140f7379
commit 816c7c3c1d
5 changed files with 22 additions and 14 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
#include "Local_Server/Data_Feed/Data_Feed.h"
#include "../server/Global.h"
void Data_Feed_UDP_Server::handle_in_loop() {
svr.tick();
ucoro::sync_await(svr.tick_coro());
}
bool Data_Feed_UDP_Server::_open() {
svr.set_bind_address("0.0.0.0", port);