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.cc92 for (const auto& pair : mClients) { in run()
99 mClients.clear(); in run()
109 for (const auto& pair : mClients) { in sendToAllClients()
131 for (const auto& pair : mClients) { in sendToClientById()
147 } else if (mClients.size() >= kMaxActiveClients) { in acceptClientConnection()
179 mClients[clientSocket] = clientData; in acceptClientConnection()
182 PRIu16, mClients.size(), clientData.clientId); in acceptClientConnection()
188 const ClientData& clientData = mClients[clientSocket]; in handleClientData()
208 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.h101 std::map<int, ClientData> mClients; variable