refactor(tcp_service): 重构 TCP 服务处理客户端的方式
-将 handle_client 函数改为类成员函数
- 使用 std::thread 在单独的线程中处理每个客户端连接
- 优化了连接接受和处理的逻辑
-调整了输出信息的格式
1 parent 5232570 commit 5d6f5abc6ca7b2f92974313ebf8525163ff12884
pengxianhong authored on 20 Mar
Showing 2 changed files
View
src/tcp_service.cpp
View
src/tcp_service.hpp