/*! if someone killed the session, we set a timer to leave the session in 5 seconds */ void CMultiXWSServerServerSession::OnSessionKilled(CMultiXProcess *KillingProcess) { DebugPrint(1,"Killed\n"); if(m_pStream) m_pStream->End(); IdleTimer() = 5000; }
//! see CMultiXSession , call the base class with the default parameters CISO8583BackEndServerSession::CISO8583BackEndServerSession(const CMultiXSessionID &SessionID,CISO8583BackEndApp &Owner) : CMultiXSession(SessionID,Owner) { m_bRemoteGateway = false; m_bSignedON = false; IdleTimer() = 120000; // we assume that if nothing happens in a session for a period of 2 minutes, we can leave the session. // we might leave it earlier, if the creator of session kills it before the idle timer expires. }
void ABaseController::Tick(float deltaTime) { BBComp->SetValue<UBlackboardKeyType_Vector>(EnemyLocationID, Self->GetActorLocation()); if (StartIdleTimer) IdleTimer(deltaTime); else TimeElaspedSinceEnemyWentIdle = 0; }
//! see CMultiXSession::OnSendMsgFailed void CMultiXWSServerServerSession::OnSendMsgFailed(CMultiXAppMsg &OriginalMsg) { DebugPrint(1,"Send Msg Failed\n"); /* When no message is forwarded to another process, this failure indicates that a response to a message that was received before, failed to deliver. In that case we might undo some actions we did or just ignore the failure. In any case, once we failed to deliver a response, there is no use in holding the session alive, so we set a small time of 5 seconds, so we will leave the session unless new messages will arrive. If we forwarded a message to another process, we need to check the failure and decide what to do. */ IdleTimer() = 5000; }
/*! if someone killed the session, we set a timer to leave the session in 5 seconds */ void CISO8583BackEndServerSession::OnSessionKilled(CMultiXProcess *KillingProcess) { DebugPrint(1,"Killed\n"); IdleTimer() = 5000; }
void CMultiXWSServerServerSession::OnMemberLeft(CMultiXProcess *Process) { DebugPrint(2,"Member %d Left Session\n",Process->ProcessID()); IdleTimer() = 5000; }
/*! if someone killed the session, we set a timer to leave the session in 5 seconds */ void CISO8583AcquirerGatewayFEServerSession::OnSessionKilled(CMultiXProcess *KillingProcess) { DebugPrint(1,"Killed\n"); IdleTimer() = 5000; }
/*! if someone killed the session, we set a timer to leave the session in 5 seconds */ void CMultiplexerServerFEServerSession::OnSessionKilled(CMultiXProcess *KillingProcess) { DebugPrint(1,"Killed\n"); IdleTimer() = 5000; }