Home
last modified time | relevance | path

Searched refs:sendMsg (Results 1 – 9 of 9) sorted by relevance

/system/netd/server/
DNdcDispatcher.cpp57 (cli)->sendMsg(ResponseCode::OperationFailed, (errMsg), (addErrno)); \
66 (cli)->sendMsg(ResponseCode::OperationFailed, (errMsg), (addErrno)); \
150 mNdc.sendMsg(500, "Command too long", false); in dispatchCommand()
156 mNdc.sendMsg(500, "Handler error", true); in dispatchCommand()
161 mNdc.sendMsg(500, "Command not recognized", false); in dispatchCommand()
169 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
179 cli->sendMsg(ResponseCode::OperationFailed, "Failed to get interface list", true); in runCommand()
183 cli->sendMsg(ResponseCode::InterfaceListResult, iface.c_str(), false); in runCommand()
186 cli->sendMsg(ResponseCode::CommandOkay, "Interface list completed", false); in runCommand()
193 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
[all …]
DMDnsSdListener.cpp80 cli->sendMsg(ResponseCode::CommandParameterError, in discover()
93 cli->sendMsg(ResponseCode::CommandParameterError, in discover()
99 cli->sendMsg(ResponseCode::CommandOkay, "Discover operation started", false); in discover()
141 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in stop()
149 cli->sendMsg(ResponseCode::CommandParameterError, "Unknown requestId", false); in stop()
157 cli->sendMsg(ResponseCode::CommandOkay, msg, false); in stop()
173 cli->sendMsg(ResponseCode::CommandParameterError, in serviceRegister()
186 cli->sendMsg(ResponseCode::CommandParameterError, in serviceRegister()
192 cli->sendMsg(ResponseCode::CommandOkay, "serviceRegister started", false); in serviceRegister()
228 cli->sendMsg(ResponseCode::CommandParameterError, in resolveService()
[all …]
DNdcDispatcher.h37 int sendMsg(int code, const char* msg, bool addErrno) { in sendMsg() function
/system/logging/logd/
DCommandListener.cpp72 cli->sendMsg("Missing Argument"); in LogIdCommand()
79 cli->sendMsg("Range Error"); in LogIdCommand()
94 cli->sendMsg(buf()->Clear(id, uid) ? "success" : "busy"); in runCommand()
101 cli->sendMsg(std::to_string(size_function(log_id)).c_str()); in LogSizeCommand()
121 cli->sendMsg("Permission Denied"); in runCommand()
126 cli->sendMsg("Missing Argument"); in runCommand()
132 cli->sendMsg(buf()->SetSize(log_id, size) ? "success" : "busy"); in runCommand()
174 cli->sendMsg("PID Error"); in runCommand()
182 cli->sendMsg("Range Error"); in runCommand()
189 cli->sendMsg(PackageString(stats()->Format(uid, pid, logMask)).c_str()); in runCommand()
[all …]
/system/core/libsysutils/src/
DFrameworkListener.cpp66 c->sendMsg(500, "Command too large for buffer", false); in onDataAvailable()
128 cli->sendMsg(500, "Unsupported escape sequence", false); in dispatchCommand()
154 cli->sendMsg(500, "Invalid sequence number", false); in dispatchCommand()
182 cli->sendMsg(500, "Unclosed quotes error", false); in dispatchCommand()
200 cli->sendMsg(500, "Command not recognized", false); in dispatchCommand()
208 cli->sendMsg(500, "Command too long", false); in dispatchCommand()
DSocketClient.cpp73 int SocketClient::sendMsg(int code, const char *msg, bool addErrno) { in sendMsg() function in SocketClient
74 return sendMsg(code, msg, addErrno, mUseCmdNum); in sendMsg()
77 int SocketClient::sendMsg(int code, const char *msg, bool addErrno, bool useCmdNum) { in sendMsg() function in SocketClient
96 ret = sendMsg(buf); in sendMsg()
164 int SocketClient::sendMsg(const char *msg) { in sendMsg() function in SocketClient
DSocketListener_test.cpp108 cli->sendMsg(42, reply.c_str(), /*addErrno=*/false, /*useCmdNum=*/false); in runCommand()
DSocketListener.cpp263 if (c->sendMsg(code, msg, addErrno, false)) { in sendBroadcast()
/system/core/libsysutils/include/sysutils/
DSocketClient.h46 int sendMsg(int code, const char *msg, bool addErrno);
47 int sendMsg(int code, const char *msg, bool addErrno, bool useCmdNum);
48 int sendMsg(const char *msg);