Lines Matching refs:cli

59 void MDnsSdListener::Handler::discover(SocketClient *cli,
73 cli->sendMsg(ResponseCode::CommandParameterError,
86 cli->sendMsg(ResponseCode::CommandParameterError,
92 cli->sendMsg(ResponseCode::CommandOkay, "Discover operation started", false);
130 void MDnsSdListener::Handler::stop(SocketClient *cli, int argc, char **argv, const char *str) {
134 cli->sendMsg(ResponseCode::CommandParameterError, msg, false);
142 cli->sendMsg(ResponseCode::CommandParameterError, "Unknown requestId", false);
150 cli->sendMsg(ResponseCode::CommandOkay, msg, false);
154 void MDnsSdListener::Handler::serviceRegister(SocketClient *cli, int requestId,
166 cli->sendMsg(ResponseCode::CommandParameterError,
179 cli->sendMsg(ResponseCode::CommandParameterError,
185 cli->sendMsg(ResponseCode::CommandOkay, "serviceRegister started", false);
210 void MDnsSdListener::Handler::resolveService(SocketClient *cli, int requestId,
221 cli->sendMsg(ResponseCode::CommandParameterError,
233 cli->sendMsg(ResponseCode::CommandParameterError,
239 cli->sendMsg(ResponseCode::CommandOkay, "resolveService started", false);
269 void MDnsSdListener::Handler::getAddrInfo(SocketClient *cli, int requestId,
276 cli->sendMsg(ResponseCode::CommandParameterError,
288 cli->sendMsg(ResponseCode::CommandParameterError,
294 cli->sendMsg(ResponseCode::CommandOkay, "getAddrInfo started", false);
329 void MDnsSdListener::Handler::setHostname(SocketClient *cli, int requestId,
336 cli->sendMsg(ResponseCode::CommandParameterError,
346 cli->sendMsg(ResponseCode::CommandParameterError,
352 cli->sendMsg(ResponseCode::CommandOkay, "setHostname started", false);
392 int MDnsSdListener::Handler::runCommand(SocketClient *cli,
398 cli->sendMsg(ResponseCode::CommandParameterError, msg, false);
407 cli->sendMsg(ResponseCode::CommandParameterError,
414 discover(cli, NULL, serviceType, NULL, requestId, 0);
416 stop(cli, argc, argv, "discover");
419 cli->sendMsg(ResponseCode::CommandParameterError,
433 serviceRegister(cli, requestId, interfaceName, serviceName,
436 stop(cli, argc, argv, "register");
439 cli->sendMsg(ResponseCode::CommandParameterError,
448 resolveService(cli, requestId, interfaceName, serviceName, regType, domain);
450 stop(cli, argc, argv, "resolve");
453 cli->sendMsg(ResponseCode::CommandOkay, "Service Started", false);
455 cli->sendMsg(ResponseCode::ServiceStartFailed, "Service already running", false);
459 cli->sendMsg(ResponseCode::CommandOkay, "Service Stopped", false);
461 cli->sendMsg(ResponseCode::ServiceStopFailed, "Service still in use", false);
465 cli->sendMsg(ResponseCode::CommandParameterError,
471 setHostname(cli, requestId, hostname);
473 stop(cli, argc, argv, "sethostname");
476 cli->sendMsg(ResponseCode::CommandParameterError,
484 getAddrInfo(cli, requestId, interfaceName, protocol, hostname);
486 stop(cli, argc, argv, "getaddrinfo");
489 cli->sendMsg(ResponseCode::CommandSyntaxError, "Unknown mdnssd cmd", false);