Lines Matching refs:client
31 bool FwmarkServer::onDataAvailable(SocketClient* client) {
33 int error = processClient(client, &socketFd);
39 // inadvertently cause the client to hang (which always waits for a response).
40 client->sendData(&error, sizeof(error));
42 // Always close the client connection (by returning false). This prevents a DoS attack where
43 // the client issues multiple commands on the same connection, never reading the responses,
44 // causing its receive buffer to fill up, and thus causing our client->sendData() to block.
48 int FwmarkServer::processClient(SocketClient* client, int* socketFd) {
69 int messageLength = TEMP_FAILURE_RETRY(recvmsg(client->getSocket(), &message, 0));
94 Permission permission = mNetworkController->getPermissionForUser(client->getUid());
140 fwmark.netId = mNetworkController->getNetworkForConnect(client->getUid());
155 if (int ret = mNetworkController->checkUserNetworkAccess(client->getUid(),
160 fwmark.protectedFromVpn = mNetworkController->canProtect(client->getUid());
166 if (!mNetworkController->canProtect(client->getUid())) {