Exemplo n.º 1
0
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();
	}
}
Exemplo n.º 2
0
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();
	}
}
Exemplo n.º 3
0
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;
}
Exemplo n.º 4
0
void ACS_Base::OnResponse(AppLayerChannel* c, APDU& arAPDU)
{
	LOGGER_BLOCK(c->GetLogger(), LEV_WARNING,
	             "Unexpected response with sequence: " << arAPDU.GetControl().SEQ);
}