예제 #1
0
파일: DhtNetwork.cs 프로젝트: nandub/DeOps
        public void SecondTimer()
        {
            // timers
            Cache.SecondTimer();

            TcpControl.SecondTimer();
            UdpControl.SecondTimer();
            RudpControl.SecondTimer();
            LightComm.SecondTimer();
            UPnPControl.SecondTimer();

            Routing.SecondTimer();
            Searches.SecondTimer();


            if (!IsLookup)
            {
                CheckLookupProxyMode();
            }


            CheckConnectionStatus();


            // established in dht
            if (FireStatusChange > 0)
            {
                FireStatusChange--;

                if (FireStatusChange == 0)
                {
                    Established = true;

                    FireStatusChangeEvent();
                }
            }
        }