Ejemplo n.º 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;
            }
        }
Ejemplo n.º 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;
            }
        }