Example #1
0
        /// <summary>
        /// Registers all the known interpreters
        /// </summary>
        private void InitIntepreters()
        {
            BasePacketInterpreter vI = null;

            vI = new CommandRunPacketInterpreter();
            foreach (byte vB in vI.AcceptedPacket())
            {
                this.mRegisteredIntepreters[vB] = vI;
            }


            vI = new MediaPlayerPacketInterpreter();
            foreach (byte vB in vI.AcceptedPacket())
            {
                this.mRegisteredIntepreters[vB] = vI;
            }
        }
Example #2
0
        /// <summary>
        /// Registers all the known interpreters
        /// </summary>
        private void InitIntepreters()
        {
            BasePacketInterpreter vI = null;

            vI = new CommandRunPacketInterpreter();
            foreach (byte vB in vI.AcceptedPacket()) {
                this.mRegisteredIntepreters[vB] = vI;
            }

            vI = new MediaPlayerPacketInterpreter();
            foreach (byte vB in vI.AcceptedPacket()) {
                this.mRegisteredIntepreters[vB] = vI;
            }
        }