Lines Matching refs:session
61 // this thread don't care session.
78 vector<uint8_t> dataReadBuf; // each thread/session have it own data buff
89 WRITE_LOG(LOG_INFO, "%s read got fail , free the session", __FUNCTION__);
427 WRITE_LOG(LOG_DEBUG, "%s uart connectKey :%s session %s change to %d", __FUNCTION__,
534 1. Existing serial device, check whether a session is established, if not, go to establish
535 2. The connection is established but the serial device does not exist, delete the session
547 // check port have session
556 // check port have session
580 WRITE_LOG(LOG_FATAL, "malloc serial session failed for %s", Hdc::MaskString(connectKey).c_str());
609 WRITE_LOG(LOG_DEBUG, "%s %s register a session", __FUNCTION__, hUART->serialPort.c_str());
653 void HdcHostUART::OnTransferError(const HSession session)
655 if (session != nullptr) {
656 WRITE_LOG(LOG_FATAL, "%s:%s", __FUNCTION__, session->ToDebugString().c_str());
657 if (session->hUART != nullptr) {
658 if (IsDeviceOpened(*session->hUART)) {
661 server.EchoToClientsForSession(session->sessionId, echoStr);
668 CloseSerialPort(session->hUART);
669 UpdateUARTDaemonInfo(session->connectKey, session, STATUS_OFFLINE);
672 server.FreeSession(session->sessionId);
673 ClearUARTOutMap(session->sessionId);
678 void HdcHostUART::Restartession(const HSession session)
680 HdcUARTBase::Restartession(session);
681 // allow timer watcher make a new session.
682 if (session != nullptr and session->hUART != nullptr) {
684 session->hUART->serialPort.c_str());
685 CloseSerialPort(session->hUART); // huart will free , so we must clost it here
686 server.EchoToClientsForSession(session->sessionId,