void ACS_WaitForConfirm::OnTimeout(AppLayerChannel* c) { LOGGER_BLOCK(c->GetLogger(), LEV_WARNING, "Timeout while waiting for confirm"); if(!c->Retry(ACS_SendConfirmed::Inst())) { c->ChangeState(ACS_Idle::Inst()); c->DoFailure(); } }
void ACS_WaitForResponseBase::OnTimeout(AppLayerChannel* c) { LOGGER_BLOCK(c->GetLogger(), LEV_WARNING, "Timeout while waiting for response"); if(!c->Retry(ACS_SendExpectResponse::Inst())) { c->ChangeState(ACS_Idle::Inst()); c->DoFailure(); } }
void AS_Base::ChangeState(Slave* c, AS_Base* apState) { if (apState == AS_Closed::Inst() && c->mpTimeTimer) { c->mpTimeTimer->Cancel(); c->mpTimeTimer = NULL; } LOGGER_BLOCK(c->mpLogger, LEV_DEBUG, "State changed from " << c->mpState->Name() << " to " << apState->Name()); c->mpState = apState; }
void ACS_Base::OnResponse(AppLayerChannel* c, APDU& arAPDU) { LOGGER_BLOCK(c->GetLogger(), LEV_WARNING, "Unexpected response with sequence: " << arAPDU.GetControl().SEQ); }