Esempio n. 1
0
        public void AddTrackCallbackRequests(uint dwIP)
        {
            IPANDTICS add = new IPANDTICS(dwIP, MpdUtilities.GetTickCount());

            directCallbackRequests_.Insert(0, add);
            while (directCallbackRequests_.Count > 0)
            {
                if (MpdUtilities.GetTickCount() - directCallbackRequests_.Last().dwInserted > MuleConstants.ONE_MIN_MS * 3)
                {
                    directCallbackRequests_.Remove(directCallbackRequests_.Last());
                }
                else
                {
                    break;
                }
            }
        }
Esempio n. 2
0
        public void AddKadFirewallRequest(uint dwIP)
        {
            IPANDTICS add = new IPANDTICS(dwIP, MpdUtilities.GetTickCount());

            firewallCheckRequests_.Insert(0, add);
            while (firewallCheckRequests_.Count > 0)
            {
                if (MpdUtilities.GetTickCount() - firewallCheckRequests_.Last().dwInserted > MuleConstants.ONE_SEC_MS * 180)
                {
                    firewallCheckRequests_.Remove(firewallCheckRequests_.Last());
                }
                else
                {
                    break;
                }
            }
        }