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