Searched refs:client (Results 1 - 10 of 10) sorted by relevance

/system/core/include/sysutils/
H A DSocketClientCommand.h24 virtual void runSocketCommand(SocketClient *client) = 0;
/system/netd/server/
H A DFwmarkServer.h30 bool onDataAvailable(SocketClient* client);
33 int processClient(SocketClient* client, int* socketFd);
H A DFwmarkServer.cpp31 bool FwmarkServer::onDataAvailable(SocketClient* client) { argument
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) { argument
69 int messageLength = TEMP_FAILURE_RETRY(recvmsg(client->getSocket(), &message, 0));
94 Permission permission = mNetworkController->getPermissionForUser(client
[all...]
H A DCommandListener.cpp1359 int CommandListener::NetworkCommand::syntaxError(SocketClient* client, const char* message) { argument
1360 client->sendMsg(ResponseCode::CommandSyntaxError, message, false);
1364 int CommandListener::NetworkCommand::operationError(SocketClient* client, const char* message, argument
1367 client->sendMsg(ResponseCode::OperationFailed, message, true);
1371 int CommandListener::NetworkCommand::success(SocketClient* client) { argument
1372 client->sendMsg(ResponseCode::CommandOkay, "success", false);
1376 int CommandListener::NetworkCommand::runCommand(SocketClient* client, int argc, char** argv) { argument
1378 return syntaxError(client, "Missing argument");
1388 return syntaxError(client, "Incorrect number of arguments");
1404 return syntaxError(client, "Unknow
[all...]
H A DCommandListener.h150 int runCommand(SocketClient* client, int argc, char** argv);
/system/core/logd/
H A DFlushCommand.cpp39 // runSocketCommand is called once for every open client on the
41 // client tracking and log region locks LastLogTimes list of
42 // LogTimeEntrys, and spawn a transitory per-client thread to
48 void FlushCommand::runSocketCommand(SocketClient *client) { argument
56 if (entry->mClient == client) {
74 entry = new LogTimeEntry(mReader, client, mNonBlock, mTail, mLogMask, mPid, mStart);
78 client->incRef();
80 // release client and entry reference counts once done
85 bool FlushCommand::hasReadLogs(SocketClient *client) { argument
86 return clientHasLogCredentials(client);
[all...]
H A DFlushCommand.h43 virtual void runSocketCommand(SocketClient *client);
45 static bool hasReadLogs(SocketClient *client);
H A DLogTimes.cpp28 LogTimeEntry::LogTimeEntry(LogReader &reader, SocketClient *client, argument
43 , mClient(client)
82 SocketClient *client = me->mClient; local
99 reader.release(client);
102 if (client) {
103 client->decRef();
119 SocketClient *client = me->mClient; local
120 if (!client) {
127 bool privileged = FlushCommand::hasReadLogs(client);
137 logbuf.flushTo(client, star
[all...]
H A DLogTimes.h47 LogTimeEntry(LogReader &reader, SocketClient *client, bool nonBlock,
/system/extras/tests/binder/benchmarks/
H A DbinderAddInts.cpp22 * performed. The operation consists of the client sending a parcel
25 * the client.
29 * -c cpu - bind client to specified cpu (default: unbound)
93 static void client(void);
118 case 'c': // client CPU
166 cerr << " -c cpu - client CPU number" << endl;
191 // Fork client, use this process as server
195 client();
239 static void client(void) function
246 // If needed bind to client CP
[all...]

Completed in 170 milliseconds