Lines Matching refs:thisClass
143 HdcClient *thisClass = (HdcClient *)handle->data;
144 string &strCmd = thisClass->command;
145 if (!strncmp(thisClass->command.c_str(), CMDSTR_SERVICE_START.c_str(), CMDSTR_SERVICE_START.size())) {
146 thisClass->StartServer(strCmd);
147 } else if (!strncmp(thisClass->command.c_str(), CMDSTR_SERVICE_KILL.c_str(), CMDSTR_SERVICE_KILL.size())) {
148 thisClass->KillServer(strCmd);
150 } else if (!strncmp(thisClass->command.c_str(), CMDSTR_GENERATE_KEY.c_str(), CMDSTR_GENERATE_KEY.size()) &&
419 HdcClient *thisClass = (HdcClient *)handle->data;
420 if (++thisClass->debugRetryCount > maxWaitRetry) {
422 uv_stop(thisClass->loopMain);
427 if (!thisClass->channel->handshakeOK) {
433 if (!HostUpdater::ConfirmCommand(thisClass->command, closeInput)) {
435 uv_stop(thisClass->loopMain);
436 WRITE_LOG(LOG_DEBUG, "Cmd \'%s\' has been canceld", thisClass->command.c_str());
441 if (tcgetattr(STDIN_FILENO, &thisClass->terminalState)) {
456 thisClass->Send(thisClass->channel->channelId,
457 const_cast<uint8_t *>(reinterpret_cast<const uint8_t *>(thisClass->command.c_str())),
458 thisClass->command.size() + 1);
475 HdcClient *thisClass = (HdcClient *)hChannel->clsChannel;
481 thisClass->Send(hChannel->channelId, reinterpret_cast<uint8_t *>(cmd), strlen(cmd));
540 HdcClient *thisClass = (HdcClient *)connection->data;
542 HChannel hChannel = reinterpret_cast<HChannel>(thisClass->channel);
545 thisClass->FreeChannel(hChannel->channelId);
551 thisClass->BindLocalStd(hChannel);
559 WRITE_LOG(LOG_DEBUG, "retry count:%d", thisClass->tcpConnectRetryCount);
560 if (thisClass->tcpConnectRetryCount >= TCP_CONNECT_MAX_RETRY_COUNT) {
562 thisClass->FreeChannel(hChannel->channelId);
565 thisClass->tcpConnectRetryCount++;
566 uv_timer_start(&(thisClass->retryTcpConnTimer), thisClass->RetryTcpConnectWorker, TCP_CONNECT_RETRY_TIME_MS, 0);
571 HdcClient *thisClass = (HdcClient *)handle->data;
572 HChannel hChannel = reinterpret_cast<HChannel>(thisClass->channel);
576 thisClass->FreeChannel(hChannel->channelId);
579 connection->data = thisClass;
581 if (thisClass->isIpV4) {
582 uv_tcp_connect(connection, &(thisClass->channel->hWorkTCP),
583 (const struct sockaddr *)&(thisClass->destv4), thisClass->Connect);
585 uv_tcp_connect(connection, &(thisClass->channel->hWorkTCP),
586 (const struct sockaddr *)&(thisClass->dest), thisClass->Connect);