예제 #1
0
        public static void run()
        {
            int millisecondsTimeout = 100;

            HostService.init();
            //NetworkDeviceWatcher.initWatcher();
            while (mRunStatus != 0)
            {
                idleEvent.WaitOne(millisecondsTimeout);
                if (mRunStatus == 1)
                {
                    //Sender.getInstance().checkSender();
                    SessionPackMgr.checkPackTimeout();
                    SessionPackMgr.clearCompletedOrCancel();
                    SessionPackMgr.checkSendTimeout();
                    Connector.checkReady();
                    Sender.getInstance().handler();
                    Receiver.getInstance().handler();
                    millisecondsTimeout = getIdleTime();
                }
            }
            mThread      = null;
            mThreadStart = null;
        }