更新 include/Netra.hpp

This commit is contained in:
2025-10-15 12:34:56 +08:00
parent 5f768f2cdc
commit ce05d066ef

View File

@@ -57,6 +57,12 @@ namespace QCL
*/
char *getClientIPAndPort(int clientSock);
/**
* @brief 从服务器的客户端列表中移除并关闭一个客户端socket
* @param clientSock 客户端Socket描述符
*/
void removeClient(int clientSock);
/**
* @brief 获取当前所有已连接客户端Socket的副本
* @return 包含所有客户端Socket的vector线程安全