更新 include/Netra.hpp
This commit is contained in:
@@ -57,6 +57,12 @@ namespace QCL
|
||||
*/
|
||||
char *getClientIPAndPort(int clientSock);
|
||||
|
||||
/**
|
||||
* @brief 从服务器的客户端列表中移除并关闭一个客户端socket
|
||||
* @param clientSock 客户端Socket描述符
|
||||
*/
|
||||
void removeClient(int clientSock);
|
||||
|
||||
/**
|
||||
* @brief 获取当前所有已连接客户端Socket的副本
|
||||
* @return 包含所有客户端Socket的vector,线程安全
|
||||
|
||||
Reference in New Issue
Block a user