Home
last modified time | relevance | path

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

/aosp14/system/core/libsysutils/src/
H A DSocketClient.cpp35 SocketClient::SocketClient(int socket, bool owned) { in SocketClient() function in SocketClient
39 SocketClient::SocketClient(int socket, bool owned, bool useCmdNum) { in SocketClient() function in SocketClient
43 void SocketClient::init(int socket, bool owned, bool useCmdNum) { in init()
67 SocketClient::~SocketClient() { in ~SocketClient()
127 int SocketClient::sendCode(int code) { in sendCode()
133 char *SocketClient::quoteArg(const char *arg) { in quoteArg()
164 int SocketClient::sendMsg(const char *msg) { in sendMsg()
173 int SocketClient::sendData(const void *data, int len) { in sendData()
185 int SocketClient::sendDatav(struct iovec *iov, int iovcnt) { in sendDatav()
231 void SocketClient::incRef() { in incRef()
[all …]
H A DSocketListener.cpp96 mClients[mSock] = new SocketClient(mSock, false, mUseCmdNum); in startListener()
191 mClients[c] = new SocketClient(c, true, mUseCmdNum); in runListener()
197 std::vector<SocketClient*> pending; in runListener()
208 SocketClient* c = it->second; in runListener()
215 for (SocketClient* c : pending) { in runListener()
226 bool SocketListener::release(SocketClient* c, bool wakeup) { in release()
246 std::vector<SocketClient*> SocketListener::snapshotClients() { in snapshotClients()
247 std::vector<SocketClient*> clients; in snapshotClients()
251 SocketClient* c = pair.second; in snapshotClients()
261 for (SocketClient* c : snapshotClients()) { in sendBroadcast()
[all …]
H A DFrameworkListener.cpp53 bool FrameworkListener::onDataAvailable(SocketClient *c) { in onDataAvailable()
94 void FrameworkListener::dispatchCommand(SocketClient *cli, char *data) { in dispatchCommand()
H A DFrameworkCommand.cpp30 int FrameworkCommand::runCommand(SocketClient *c UNUSED, int argc UNUSED, in runCommand()
H A DNetlinkListener.cpp46 bool NetlinkListener::onDataAvailable(SocketClient *cli) in onDataAvailable()
H A DSocketListener_test.cpp105 int runCommand(SocketClient* cli, int argc, char** argv) { in runCommand()
/aosp14/system/core/libsysutils/include/sysutils/
H A DSocketListener.h30 std::unordered_map<int, SocketClient*> mClients;
50 bool release(SocketClient *c) { return release(c, true); } in release()
53 virtual bool onDataAvailable(SocketClient *c) = 0;
60 std::vector<SocketClient*> snapshotClients();
62 bool release(SocketClient *c, bool wakeup);
H A DSocketClient.h9 class SocketClient {
32 SocketClient(int sock, bool owned);
33 SocketClient(int sock, bool owned, bool useCmdNum);
34 virtual ~SocketClient();
H A DFrameworkListener.h24 class SocketClient; variable
47 bool onDataAvailable(SocketClient* c) override;
50 void dispatchCommand(SocketClient *c, char *data);
H A DFrameworkCommand.h19 class SocketClient; variable
30 virtual int runCommand(SocketClient *c, int argc, char **argv) = 0;
H A DSocketClientCommand.h24 virtual void runSocketCommand(SocketClient *client) = 0;
H A DNetlinkListener.h45 virtual bool onDataAvailable(SocketClient *cli);
/aosp14/system/core/libsysutils/
H A DAndroid.bp18 "src/SocketClient.cpp",