Lines Matching defs:commands

191 int RunClientMode(string &commands, string &serverListenString, string &connectKey, bool isPullServer)
198 HdcClient client(false, serverListenString, &loopMain, commands == CMDSTR_CHECK_SERVER);
199 if (!commands.size()) {
204 if (!strncmp(commands.c_str(), CMDSTR_SERVICE_START.c_str(), CMDSTR_SERVICE_START.size()) ||
205 !strncmp(commands.c_str(), CMDSTR_SERVICE_KILL.c_str(), CMDSTR_SERVICE_KILL.size()) ||
206 !strncmp(commands.c_str(), CMDSTR_GENERATE_KEY.c_str(), CMDSTR_GENERATE_KEY.size())) {
207 client.CtrlServiceWork(commands.c_str());
216 client.ExecuteCommand(commands.c_str());
436 string commands;
437 Hdc::SplitOptionAndCommand(argc, argv, options, commands);
462 Hdc::RunClientMode(commands, g_serverListenString, g_connectKey, g_isPullServer);
467 if (!strncmp(commands.c_str(), CMDSTR_LIST_TARGETS.c_str(), CMDSTR_LIST_TARGETS.size())) {
469 if (!strncmp(commands.c_str(), lista.c_str(), lista.size())) {
472 str = commands;
476 } else if (!strncmp(commands.c_str(), CMDSTR_SOFTWARE_VERSION.c_str(), CMDSTR_SOFTWARE_VERSION.size()) ||
477 !strncmp(commands.c_str(), CMDSTR_SOFTWARE_HELP.c_str(), CMDSTR_SOFTWARE_HELP.size()) ||
478 !strncmp(commands.c_str(), CMDSTR_TARGET_DISCOVER.c_str(), CMDSTR_TARGET_DISCOVER.size()) ||
479 !strncmp(commands.c_str(), CMDSTR_SERVICE_START.c_str(), CMDSTR_SERVICE_START.size()) ||
480 !strncmp(commands.c_str(), CMDSTR_SERVICE_KILL.c_str(), CMDSTR_SERVICE_KILL.size()) ||
481 !strncmp(commands.c_str(), CMDSTR_WAIT_FOR.c_str(), CMDSTR_WAIT_FOR.size())) {
482 Hdc::RunExternalClient(commands, g_connectKey, g_containerInOut);
483 Hdc::RunClientMode(commands, g_serverListenString, g_connectKey, g_isPullServer);
484 } else if (!strncmp(commands.c_str(), CMDSTR_CONNECT_TARGET.c_str(), CMDSTR_CONNECT_TARGET.size()) ||
485 !strncmp(commands.c_str(), CMDSTR_TARGET_MODE.c_str(), CMDSTR_TARGET_MODE.size()) || g_externalCmd) {
486 Hdc::RunExternalClient(commands, g_connectKey, g_containerInOut);
503 Hdc::RunExternalClient(commands, g_connectKey, g_containerInOut);
505 Hdc::RunClientMode(commands, g_serverListenString, g_connectKey, g_isPullServer);