Home
last modified time | relevance | path

Searched refs:SocketClient (Results 1 – 25 of 57) sorted by relevance

123

/system/netd/server/
DCommandListener.h55 int runCommand(SocketClient *c, int argc, char ** argv);
62 int runCommand(SocketClient *c, int argc, char ** argv);
69 int runCommand(SocketClient *c, int argc, char ** argv);
76 int runCommand(SocketClient *c, int argc, char ** argv);
83 int runCommand(SocketClient *c, int argc, char ** argv);
90 int runCommand(SocketClient *c, int argc, char ** argv);
97 int runCommand(SocketClient *c, int argc, char ** argv);
99 void sendGenericOkFail(SocketClient *cli, int cond);
100 void sendGenericOpFailed(SocketClient *cli, const char *errMsg);
101 void sendGenericSyntaxError(SocketClient *cli, const char *usageMsg);
[all …]
DDnsProxyListener.h48 int runCommand(SocketClient *c, int argc, char** argv);
56 GetAddrInfoHandler(SocketClient *c,
68 SocketClient* mClient; // ref counted
82 int runCommand(SocketClient *c, int argc, char** argv);
89 GetHostByNameHandler(SocketClient *c,
101 SocketClient* mClient; //ref counted
115 int runCommand(SocketClient *c, int argc, char** argv);
122 GetHostByAddrHandler(SocketClient *c,
133 SocketClient* mClient; // ref counted
DMDnsSdListener.h107 int runCommand(SocketClient *c, int argc, char** argv);
111 void stop(SocketClient *cli, int argc, char **argv, const char *str);
113 void discover(SocketClient *cli, const char *iface, const char *regType,
117 void serviceRegister(SocketClient *cli, int requestId, const char *interfaceName,
121 void resolveService(SocketClient *cli, int requestId,
125 void setHostname(SocketClient *cli, int requestId, const char *hostname);
127 void getAddrInfo(SocketClient *cli, int requestId, const char *interfaceName,
DFwmarkServer.h35 bool onDataAvailable(SocketClient* client);
38 int processClient(SocketClient* client, int* socketFd);
DDnsProxyListener.cpp97 void tryThreadOrError(SocketClient* cli, T* handler) { in tryThreadOrError()
125 SocketClient *c, char* host, char* service, struct addrinfo* hints, in GetAddrInfoHandler()
143 static bool sendBE32(SocketClient* c, uint32_t data) { in sendBE32()
150 static bool sendLenAndData(SocketClient* c, const int len, const void* data) { in sendLenAndData()
155 static bool sendhostent(SocketClient *c, struct hostent *hp) { in sendhostent()
182 static bool sendaddrinfo(SocketClient* c, struct addrinfo* ai) { in sendaddrinfo()
304 int DnsProxyListener::GetAddrInfoCmd::runCommand(SocketClient *cli, in runCommand()
380 int DnsProxyListener::GetHostByNameCmd::runCommand(SocketClient *cli, in runCommand()
418 SocketClient* c, char* name, int af, unsigned netId, uint32_t mark, const int metricsLevel, in GetHostByNameHandler()
511 int DnsProxyListener::GetHostByAddrCmd::runCommand(SocketClient *cli, in runCommand()
[all …]
DCommandListener.cpp84 int runCommand(SocketClient *c, int argc, char **argv) { in runCommand()
122 int CommandListener::InterfaceCmd::runCommand(SocketClient *cli, in runCommand()
351 int CommandListener::ListTtysCmd::runCommand(SocketClient *cli, in runCommand()
368 int CommandListener::IpFwdCmd::runCommand(SocketClient *cli, int argc, char **argv) { in runCommand()
428 int CommandListener::TetherCmd::runCommand(SocketClient *cli, in runCommand()
531 int CommandListener::NatCmd::runCommand(SocketClient *cli, in runCommand()
571 int CommandListener::PppdCmd::runCommand(SocketClient *cli, in runCommand()
623 int CommandListener::ResolverCmd::runCommand(SocketClient *cli, int argc, char **margv) { in runCommand()
690 void CommandListener::BandwidthControlCmd::sendGenericSyntaxError(SocketClient *cli, const char *us… in sendGenericSyntaxError()
697 void CommandListener::BandwidthControlCmd::sendGenericOkFail(SocketClient *cli, int cond) { in sendGenericOkFail()
[all …]
DMDnsSdListener.cpp62 void MDnsSdListener::Handler::discover(SocketClient *cli, in discover()
112 char *quotedServiceName = SocketClient::quoteArg(serviceName); in MDnsSdListenerDiscoverCallback()
133 void MDnsSdListener::Handler::stop(SocketClient *cli, int argc, char **argv, const char *str) { in stop()
157 void MDnsSdListener::Handler::serviceRegister(SocketClient *cli, int requestId, in serviceRegister()
203 char *quotedServiceName = SocketClient::quoteArg(serviceName); in MDnsSdListenerRegisterCallback()
213 void MDnsSdListener::Handler::resolveService(SocketClient *cli, int requestId, in resolveService()
259 char *quotedFullName = SocketClient::quoteArg(fullname); in MDnsSdListenerResolveCallback()
260 char *quotedHostTarget = SocketClient::quoteArg(hosttarget); in MDnsSdListenerResolveCallback()
283 void MDnsSdListener::Handler::getAddrInfo(SocketClient *cli, int requestId, in getAddrInfo()
327 char *quotedHostname = SocketClient::quoteArg(hostname); in MDnsSdListenerGetAddrInfoCallback()
[all …]
/system/chre/host/common/
Dsocket_client.cc34 SocketClient::SocketClient() { in SocketClient() function in android::chre::SocketClient
38 SocketClient::~SocketClient() { in ~SocketClient()
42 bool SocketClient::connect(const char *socketName, in connect()
47 bool SocketClient::connectInBackground(const char *socketName, in connectInBackground()
52 void SocketClient::disconnect() { in disconnect()
77 bool SocketClient::isConnected() const { in isConnected()
81 bool SocketClient::sendMessage(const void *data, size_t length) { in sendMessage()
103 bool SocketClient::doConnect(const char *socketName, in doConnect()
135 bool SocketClient::inReceiveThread() const { in inReceiveThread()
139 void SocketClient::receiveThread() { in receiveThread()
[all …]
/system/vold/
DCommandListener.h31 static int sendGenericOkFail(SocketClient *cli, int cond);
37 int runCommand(SocketClient *c, int argc, char ** argv);
44 int runCommand(SocketClient *c, int argc, char ** argv);
51 int runCommand(SocketClient *c, int argc, char ** argv);
53 void listAsecsInDirectory(SocketClient *c, const char *directory);
60 int runCommand(SocketClient *c, int argc, char ** argv);
67 int runCommand(SocketClient *c, int argc, char ** argv);
74 int runCommand(SocketClient *c, int argc, char ** argv);
81 int runCommand(SocketClient *c, int argc, char ** argv);
83 android::status_t sendFd(SocketClient *c, int fd);
DCryptCommandListener.h31 static int sendGenericOkFailOnBool(SocketClient *cli, bool success);
37 int runCommand(SocketClient *c, int argc, char ** argv);
DDevmapper.h23 class SocketClient; variable
31 static int dumpState(SocketClient *c);
DLoop.h24 class SocketClient; variable
39 static int dumpState(SocketClient *c);
/system/core/libsysutils/src/
DSocketClient.cpp33 SocketClient::SocketClient(int socket, bool owned) { in SocketClient() function in SocketClient
37 SocketClient::SocketClient(int socket, bool owned, bool useCmdNum) { in SocketClient() function in SocketClient
41 void SocketClient::init(int socket, bool owned, bool useCmdNum) { in init()
65 SocketClient::~SocketClient() { in ~SocketClient()
71 int SocketClient::sendMsg(int code, const char *msg, bool addErrno) { in sendMsg()
75 int SocketClient::sendMsg(int code, const char *msg, bool addErrno, bool useCmdNum) { in sendMsg()
101 int SocketClient::sendBinaryMsg(int code, const void *data, int len) { in sendBinaryMsg()
125 int SocketClient::sendCode(int code) { in sendCode()
131 char *SocketClient::quoteArg(const char *arg) { in quoteArg()
161 int SocketClient::sendMsg(const char *msg) { in sendMsg()
[all …]
DSocketListener.cpp98 mClients->push_back(new SocketClient(mSock, false, mUseCmdNum)); in startListener()
211 mClients->push_back(new SocketClient(c, true, mUseCmdNum)); in runListener()
219 SocketClient* c = *it; in runListener()
234 SocketClient* c = *it; in runListener()
245 bool SocketListener::release(SocketClient* c, bool wakeup) { in release()
281 SocketClient* c = *i; in sendBroadcast()
290 SocketClient* c = *i; in sendBroadcast()
309 SocketClient* c = *i; in runOnEachSocket()
318 SocketClient* c = *i; in runOnEachSocket()
/system/core/libsysutils/include/sysutils/
DSocketClient.h11 class SocketClient {
34 SocketClient(int sock, bool owned);
35 SocketClient(int sock, bool owned, bool useCmdNum);
36 virtual ~SocketClient();
87 typedef android::sysutils::List<SocketClient *> SocketClientCollection;
DFrameworkListener.h22 class SocketClient; variable
45 virtual bool onDataAvailable(SocketClient *c);
48 void dispatchCommand(SocketClient *c, char *data);
DSocketListener.h48 bool release(SocketClient *c) { return release(c, true); } in release()
51 virtual bool onDataAvailable(SocketClient *c) = 0;
54 bool release(SocketClient *c, bool wakeup);
DFrameworkCommand.h21 class SocketClient; variable
32 virtual int runCommand(SocketClient *c, int argc, char **argv) = 0;
/system/core/logd/
DCommandListener.h46 int runCommand(SocketClient* c, int argc, char** argv);
57 int runCommand(SocketClient* c, int argc, char** argv); \
75 int runCommand(SocketClient* c, int argc, char** argv); \
89 int runCommand(SocketClient* c, int argc, char** argv); \
90 void release(SocketClient* c) { \
DCommandListener.cpp60 int CommandListener::ShutdownCmd::runCommand(SocketClient* /*cli*/, in runCommand() argument
79 int CommandListener::ClearCmd::runCommand(SocketClient* cli, int argc, in runCommand()
106 int CommandListener::GetBufSizeCmd::runCommand(SocketClient* cli, int argc, in runCommand()
131 int CommandListener::SetBufSizeCmd::runCommand(SocketClient* cli, int argc, in runCommand()
164 int CommandListener::GetBufSizeUsedCmd::runCommand(SocketClient* cli, int argc, in runCommand()
199 int CommandListener::GetStatisticsCmd::runCommand(SocketClient* cli, int argc, in runCommand()
240 int CommandListener::GetPruneListCmd::runCommand(SocketClient* cli, in runCommand()
251 int CommandListener::SetPruneListCmd::runCommand(SocketClient* cli, int argc, in runCommand()
283 int CommandListener::GetEventTagCmd::runCommand(SocketClient* cli, int argc, in runCommand()
332 int CommandListener::ReinitCmd::runCommand(SocketClient* cli, int /*argc*/, in runCommand()
[all …]
DFlushCommand.h42 virtual void runSocketCommand(SocketClient* client);
44 static bool hasReadLogs(SocketClient* client);
45 static bool hasSecurityLogs(SocketClient* client);
DFlushCommand.cpp50 void FlushCommand::runSocketCommand(SocketClient* client) { in runSocketCommand()
102 bool FlushCommand::hasReadLogs(SocketClient* client) { in hasReadLogs()
106 static bool clientHasSecurityCredentials(SocketClient* client) { in clientHasSecurityCredentials()
110 bool FlushCommand::hasSecurityLogs(SocketClient* client) { in hasSecurityLogs()
DLogReader.h38 virtual bool onDataAvailable(SocketClient* cli);
43 void doSocketDelete(SocketClient* cli);
/system/chre/host/common/test/
Dchre_test_client.cc40 using android::chre::SocketClient;
53 class SocketCallbacks : public SocketClient::ICallbacks,
119 void requestHubInfo(SocketClient& client) { in requestHubInfo()
129 void requestNanoappList(SocketClient& client) { in requestNanoappList()
139 void sendMessageToNanoapp(SocketClient& client) { in sendMessageToNanoapp()
153 void sendLoadNanoappRequest(SocketClient& client, const char *filename) { in sendLoadNanoappRequest()
183 SocketClient client; in main()
/system/chre/host/common/include/chre_host/
Dsocket_client.h32 class SocketClient {
34 SocketClient();
35 ~SocketClient();

123