Lines Matching refs:cli

56 int CommandListener::WifiCreateNetworkCmd::runCommand(SocketClient *cli,
63 cli->sendMsg(ResponseCode::OperationFailed, "Failed to create network", true);
67 cli->sendMsg(ResponseCode::CommandOkay, tmp, false);
76 int CommandListener::WifiRemoveNetworkCmd::runCommand(SocketClient *cli,
82 cli->sendMsg(ResponseCode::OperationFailed, "Failed to remove network", true);
84 cli->sendMsg(ResponseCode::CommandOkay, "Network removed.", false);
93 int CommandListener::WifiScanResultsCmd::runCommand(SocketClient *cli,
106 cli->sendMsg(ResponseCode::WifiScanResult, buffer, false);
112 cli->sendMsg(ResponseCode::CommandOkay, "Scan results complete.", false);
120 int CommandListener::WifiListNetworksCmd::runCommand(SocketClient *cli,
131 cli->sendMsg(ResponseCode::WifiNetworkList, buffer, false);
136 cli->sendMsg(ResponseCode::CommandOkay, "Network listing complete.", false);
151 int CommandListener::GetCmd::runCommand(SocketClient *cli, int argc, char **argv) {
162 cli->sendMsg(ResponseCode::PropertyRead, tmp, false);
165 cli->sendMsg(ResponseCode::CommandOkay, "Property read.", false);
169 cli->sendMsg(ResponseCode::CommandParameterError, "Failed to read property.", true);
177 int CommandListener::SetCmd::runCommand(SocketClient *cli, int argc,
182 cli->sendMsg(ResponseCode::CommandOkay, "Property set.", false);
187 cli->sendMsg(ResponseCode::CommandParameterError, "Failed to set property.", true);
195 int CommandListener::ListCmd::runCommand(SocketClient *cli, int argc, char **argv) {
204 cli->sendMsg(ResponseCode::CommandParameterError, "Failed to list properties.", true);
225 cli->sendMsg(ResponseCode::PropertyList, buf, false);
233 cli->sendMsg(ResponseCode::CommandOkay, "Properties list complete.", false);