Searched refs:SocketClient (Results 1 – 13 of 13) sorted by relevance
/aosp14/system/core/libsysutils/src/ |
H A D | SocketClient.cpp | 35 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 D | SocketListener.cpp | 96 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 D | FrameworkListener.cpp | 53 bool FrameworkListener::onDataAvailable(SocketClient *c) { in onDataAvailable() 94 void FrameworkListener::dispatchCommand(SocketClient *cli, char *data) { in dispatchCommand()
|
H A D | FrameworkCommand.cpp | 30 int FrameworkCommand::runCommand(SocketClient *c UNUSED, int argc UNUSED, in runCommand()
|
H A D | NetlinkListener.cpp | 46 bool NetlinkListener::onDataAvailable(SocketClient *cli) in onDataAvailable()
|
H A D | SocketListener_test.cpp | 105 int runCommand(SocketClient* cli, int argc, char** argv) { in runCommand()
|
/aosp14/system/core/libsysutils/include/sysutils/ |
H A D | SocketListener.h | 30 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 D | SocketClient.h | 9 class SocketClient { 32 SocketClient(int sock, bool owned); 33 SocketClient(int sock, bool owned, bool useCmdNum); 34 virtual ~SocketClient();
|
H A D | FrameworkListener.h | 24 class SocketClient; variable 47 bool onDataAvailable(SocketClient* c) override; 50 void dispatchCommand(SocketClient *c, char *data);
|
H A D | FrameworkCommand.h | 19 class SocketClient; variable 30 virtual int runCommand(SocketClient *c, int argc, char **argv) = 0;
|
H A D | SocketClientCommand.h | 24 virtual void runSocketCommand(SocketClient *client) = 0;
|
H A D | NetlinkListener.h | 45 virtual bool onDataAvailable(SocketClient *cli);
|
/aosp14/system/core/libsysutils/ |
H A D | Android.bp | 18 "src/SocketClient.cpp",
|