Пример #1
0
        private void sendSubscribe(PEQMessageSubscribe msg)
        {
            PEQMessageSubscribe newMsg = (PEQMessageSubscribe)msg.Clone();
            newMsg._SenderID = _id;
            newMsg._SequenceNumber = 0x00;
            newMsg._HopCount = (byte)(msg._HopCount + 1);
            newMsg._nextHopCheat = _location;

            PEQTimerMessage timerEvent = new PEQTimerMessage(newMsg,
                _eventManager.CurrentClock + _TIMER_WAIT_SEND, this);
            _eventManager.AddEvent(timerEvent);
        }