/system/core/include/sysutils/ |
FrameworkCommand.h | 21 class SocketClient; 32 virtual int runCommand(SocketClient *c, int argc, char **argv) = 0;
|
FrameworkListener.h | 22 class SocketClient; 43 virtual bool onDataAvailable(SocketClient *c); 46 void dispatchCommand(SocketClient *c, char *data);
|
SocketClient.h | 10 class SocketClient { 33 SocketClient(int sock, bool owned); 34 SocketClient(int sock, bool owned, bool useCmdNum); 35 virtual ~SocketClient(); 62 // SocketListener creates a SocketClient (at refcount 1) and calls 65 bool decRef(); // returns true at 0 (but note: SocketClient already deleted) 82 typedef android::sysutils::List<SocketClient *> SocketClientCollection;
|
SocketListener.h | 21 #include <sysutils/SocketClient.h> 45 virtual bool onDataAvailable(SocketClient *c) = 0;
|
NetlinkListener.h | 44 virtual bool onDataAvailable(SocketClient *cli);
|
/system/netd/ |
CommandListener.h | 58 int runCommand(SocketClient *c, int argc, char ** argv); 65 int runCommand(SocketClient *c, int argc, char ** argv); 72 int runCommand(SocketClient *c, int argc, char ** argv); 79 int runCommand(SocketClient *c, int argc, char ** argv); 86 int runCommand(SocketClient *c, int argc, char ** argv); 93 int runCommand(SocketClient *c, int argc, char ** argv); 100 int runCommand(SocketClient *c, int argc, char ** argv); 107 int runCommand(SocketClient *c, int argc, char ** argv); 109 void sendGenericOkFail(SocketClient *cli, int cond); 110 void sendGenericOpFailed(SocketClient *cli, const char *errMsg) [all...] |
DnsProxyListener.h | 34 int runCommand(SocketClient *c, int argc, char** argv); 40 GetAddrInfoHandler(SocketClient *c, 53 SocketClient* mClient; // ref counted 66 int runCommand(SocketClient *c, int argc, char** argv); 71 GetHostByNameHandler(SocketClient *c, 81 SocketClient* mClient; //ref counted 93 int runCommand(SocketClient *c, int argc, char** argv); 98 GetHostByAddrHandler(SocketClient *c, 111 SocketClient* mClient; // ref counted
|
SecondaryTableController.h | 38 int addRoute(SocketClient *cli, char *iface, char *dest, int prefixLen, char *gateway); 39 int removeRoute(SocketClient *cli, char *iface, char *dest, int prefixLen, char *gateway); 45 int modifyRoute(SocketClient *cli, const char *action, char *iface, char *dest, int prefix,
|
MDnsSdListener.h | 107 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,
|
DnsProxyListener.cpp | 36 #include <sysutils/SocketClient.h> 48 DnsProxyListener::GetAddrInfoHandler::GetAddrInfoHandler(SocketClient *c, 86 static bool sendLenAndData(SocketClient *c, const int len, const void* data) { 93 static bool sendhostent(SocketClient *c, struct hostent *hp) { 162 int DnsProxyListener::GetAddrInfoCmd::runCommand(SocketClient *cli, 238 int DnsProxyListener::GetHostByNameCmd::runCommand(SocketClient *cli, 279 DnsProxyListener::GetHostByNameHandler::GetHostByNameHandler(SocketClient* c, 354 int DnsProxyListener::GetHostByAddrCmd::runCommand(SocketClient *cli, 403 DnsProxyListener::GetHostByAddrHandler::GetHostByAddrHandler(SocketClient* c,
|
SecondaryTableController.cpp | 62 int SecondaryTableController::addRoute(SocketClient *cli, char *iface, char *dest, int prefix, 81 int SecondaryTableController::modifyRoute(SocketClient *cli, const char *action, char *iface, 169 int SecondaryTableController::removeRoute(SocketClient *cli, char *iface, char *dest, int prefix,
|
CommandListener.cpp | 33 #include <sysutils/SocketClient.h> 208 int CommandListener::InterfaceCmd::runCommand(SocketClient *cli, 478 int CommandListener::ListTtysCmd::runCommand(SocketClient *cli, 495 int CommandListener::IpFwdCmd::runCommand(SocketClient *cli, 533 int CommandListener::TetherCmd::runCommand(SocketClient *cli, 634 int CommandListener::NatCmd::runCommand(SocketClient *cli, 671 int CommandListener::PppdCmd::runCommand(SocketClient *cli, 723 int CommandListener::SoftapCmd::runCommand(SocketClient *cli, 770 int CommandListener::ResolverCmd::runCommand(SocketClient *cli, int argc, char **argv) { 856 void CommandListener::BandwidthControlCmd::sendGenericSyntaxError(SocketClient *cli, const char *usageMsg) [all...] |
MDnsSdListener.cpp | 36 #include <sysutils/SocketClient.h> 59 void MDnsSdListener::Handler::discover(SocketClient *cli, 109 char *quotedServiceName = SocketClient::quoteArg(serviceName); 130 void MDnsSdListener::Handler::stop(SocketClient *cli, int argc, char **argv, const char *str) { 154 void MDnsSdListener::Handler::serviceRegister(SocketClient *cli, int requestId, 200 char *quotedServiceName = SocketClient::quoteArg(serviceName); 210 void MDnsSdListener::Handler::resolveService(SocketClient *cli, int requestId, 255 char *quotedFullName = SocketClient::quoteArg(fullname); 256 char *quotedHostTarget = SocketClient::quoteArg(hosttarget); 269 void MDnsSdListener::Handler::getAddrInfo(SocketClient *cli, int requestId [all...] |
/system/vold/ |
CommandListener.h | 35 int runCommand(SocketClient *c, int argc, char ** argv); 42 int runCommand(SocketClient *c, int argc, char ** argv); 49 int runCommand(SocketClient *c, int argc, char ** argv); 51 void listAsecsInDirectory(SocketClient *c, const char *directory); 58 int runCommand(SocketClient *c, int argc, char ** argv); 65 int runCommand(SocketClient *c, int argc, char ** argv); 72 int runCommand(SocketClient *c, int argc, char ** argv); 79 int runCommand(SocketClient *c, int argc, char ** argv); 86 int runCommand(SocketClient *c, int argc, char ** argv);
|
Devmapper.h | 23 class SocketClient; 31 static int dumpState(SocketClient *c);
|
Loop.h | 23 class SocketClient; 36 static int dumpState(SocketClient *c);
|
VolumeManager.h | 80 int listVolumes(SocketClient *cli); 115 int listMountedObbs(SocketClient* cli);
|
CommandListener.cpp | 30 #include <sysutils/SocketClient.h> 91 int CommandListener::DumpCmd::runCommand(SocketClient *cli, 121 int CommandListener::VolumeCmd::runCommand(SocketClient *cli, 219 int CommandListener::StorageCmd::runCommand(SocketClient *cli, 270 void CommandListener::AsecCmd::listAsecsInDirectory(SocketClient *cli, const char *directory) { 308 int CommandListener::AsecCmd::runCommand(SocketClient *cli, 438 int CommandListener::ObbCmd::runCommand(SocketClient *cli, 502 int CommandListener::XwarpCmd::runCommand(SocketClient *cli, 545 int CommandListener::CryptfsCmd::runCommand(SocketClient *cli, 618 int CommandListener::FstrimCmd::runCommand(SocketClient *cli [all...] |
Devmapper.cpp | 35 #include <sysutils/SocketClient.h> 41 int Devmapper::dumpState(SocketClient *c) {
|
/system/core/libsysutils/src/ |
SocketClient.cpp | 9 #define LOG_TAG "SocketClient" 12 #include <sysutils/SocketClient.h> 14 SocketClient::SocketClient(int socket, bool owned) { 18 SocketClient::SocketClient(int socket, bool owned, bool useCmdNum) { 22 void SocketClient::init(int socket, bool owned, bool useCmdNum) { 46 SocketClient::~SocketClient() 53 int SocketClient::sendMsg(int code, const char *msg, bool addErrno) [all...] |
FrameworkCommand.cpp | 28 int FrameworkCommand::runCommand(SocketClient *c, int argc, char **argv) {
|
NetlinkListener.cpp | 44 bool NetlinkListener::onDataAvailable(SocketClient *cli)
|
FrameworkListener.cpp | 26 #include <sysutils/SocketClient.h> 47 bool FrameworkListener::onDataAvailable(SocketClient *c) { 78 void FrameworkListener::dispatchCommand(SocketClient *cli, char *data) {
|
SocketListener.cpp | 30 #include <sysutils/SocketClient.h> 90 mClients->push_back(new SocketClient(mSock, false, mUseCmdNum)); 203 mClients->push_back(new SocketClient(c, true, mUseCmdNum)); 223 SocketClient* c = *it;
|
/system/core/libsysutils/ |
Android.mk | 13 src/SocketClient.cpp \
|