Home
last modified time | relevance | path

Searched refs:mClients (Results 1 – 4 of 4) sorted by relevance

/system/core/libsysutils/src/
DSocketListener.cpp67 for (auto pair : mClients) { in ~SocketListener()
96 mClients[mSock] = new SocketClient(mSock, false, mUseCmdNum); in startListener()
136 for (auto pair : mClients) { in stopListener()
139 mClients.clear(); in stopListener()
156 fds.reserve(2 + mClients.size()); in runListener()
159 for (auto pair : mClients) { in runListener()
191 mClients[c] = new SocketClient(c, true, mUseCmdNum); in runListener()
203 auto it = mClients.find(p.fd); in runListener()
204 if (it == mClients.end()) { in runListener()
233 ret = (mClients.erase(c->getSocket()) != 0); in release()
[all …]
/system/chre/host/common/
Dsocket_server.cc91 for (const auto &pair : mClients) { in run()
98 mClients.clear(); in run()
108 for (const auto &pair : mClients) { in sendToAllClients()
130 for (const auto &pair : mClients) { in sendToClientById()
146 } else if (mClients.size() >= kMaxActiveClients) { in acceptClientConnection()
178 mClients[clientSocket] = clientData; in acceptClientConnection()
183 mClients.size(), clientData.clientId); in acceptClientConnection()
189 const ClientData &clientData = mClients[clientSocket]; in handleClientData()
209 mClients.erase(clientSocket); in disconnectClient()
/system/core/libsysutils/include/sysutils/
DSocketListener.h30 std::unordered_map<int, SocketClient*> mClients; variable
/system/chre/host/common/include/chre_host/
Dsocket_server.h102 std::map<int, ClientData> mClients; variable