Esempio n. 1
0
            private static void OnTimedEvent(Object source, ElapsedEventArgs e)
            {
                ACKTimer chrono = source as ACKTimer;

                if (chrono != null)
                {
                    chrono.EventStream.Add(TypeEvenement.ACKTimeout);
                    chrono.EstArme = false;
                }
            }
Esempio n. 2
0
        public CoucheLLC(Signal signal)
        {
            this.m_signal = signal;

            this.m_MACStreamIn  = new BlockingCollection <Trame>();
            this.m_MACStreamOut = new BlockingCollection <Trame>();

            this.m_eventStream     = new BlockingCollection <TypeEvenement>();
            this.m_reseauStreamIn  = new BlockingCollection <Paquet>();
            this.m_reseauStreamOut = new BlockingCollection <Paquet>();

            this.m_chrono   = new Chrono(m_eventStream);
            this.m_ackTimer = new ACKTimer(m_eventStream);
        }