更新 include/Netra.hpp

This commit is contained in:
2025-10-15 12:52:23 +08:00
parent 502868ef44
commit 034ba6f1eb

View File

@@ -63,6 +63,13 @@ namespace QCL
*/
void removeClient(int clientSock);
/**
* @brief 非阻塞探测客户端是否已断开(不消耗数据)
* @param clientSock 客户端Socket描述符
* @return true 已断开或发生致命错误false 仍然存活或暂无数据
*/
bool isClientDisconnected(int clientSock);
/**
* @brief 获取当前所有已连接客户端Socket的副本
* @return 包含所有客户端Socket的vector线程安全